Class SyncVelocityRampPtr


  • public class SyncVelocityRampPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • SyncVelocityRampPtr

        public SyncVelocityRampPtr​(long cPtr,
                                   boolean cMemoryOwn)
      • SyncVelocityRampPtr

        public SyncVelocityRampPtr()
        Default constructor yielding a NULL-pointer.
      • SyncVelocityRampPtr

        public SyncVelocityRampPtr​(SyncVelocityRamp ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • setTarget

        public void setTarget​(Q qstart,
                              Q qend)
        Specifies from and to where a ramp should be generated.
        Parameters:
        qstart - [in] The start configuration
        qend - [in] The end configuration
      • duration

        public double duration()
        Returns the time it takes to run the profile
        Returns:
        The duration
      • getExtremumVelocities

        public Q getExtremumVelocities()
        Returns the extremum of the velocities for the joints
        Returns:
        Joint extremum velocities
      • getExtremumAccelerations

        public Q getExtremumAccelerations()
        Returns the extremum of the acceleration for the joints
        Returns:
        Joint extremum accelerations
      • x

        public Q x​(double t)
        Returns the configuration for time t

        If t<0 or t>duration() it returns the start and end configurations respectively.

        Parameters:
        t - [in] time
        Returns:
        Configuration at time t
      • dx

        public Q dx​(double t)
        Returns the velocities for time t

        If t<0 or t>duration() it returns velocities corresponding to t=0 and t=duration(),
        respectively.

        Parameters:
        t - [in] time
        Returns:
        Velocities at time t
      • ddx

        public Q ddx​(double t)
        Returns the accelerations for time t

        If t<0 or t>duration() it returns accelerations corresponding to t=0 and t=duration(),
        respectively.

        Parameters:
        t - [in] time
        Returns:
        Accelerations at time t