Package org.robwork.sdurw_control
Class SyncVelocityRampPtr
- java.lang.Object
-
- org.robwork.sdurw_control.SyncVelocityRampPtr
-
public class SyncVelocityRampPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description SyncVelocityRampPtr()Default constructor yielding a NULL-pointer.SyncVelocityRampPtr(long cPtr, boolean cMemoryOwn)SyncVelocityRampPtr(SyncVelocityRamp ptr)Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncVelocityRamp__ref__()Dereferencing operator.SyncVelocityRampCPtrcptr()Qddx(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.
voiddelete()SyncVelocityRampderef()The pointer stored in the object.doubleduration()Returns the time it takes to run the profileQdx(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.
booleanequals(SyncVelocityRamp p)static longgetCPtr(SyncVelocityRampPtr obj)SyncVelocityRampgetDeref()Member access operator.QgetExtremumAccelerations()Returns the extremum of the acceleration for the jointsQgetExtremumVelocities()Returns the extremum of the velocities for the jointsbooleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipvoidsetTarget(Q qstart, Q qend)Specifies from and to where a ramp should be generated.Qx(double t)Returns the configuration for time t
If t<0 or t>duration() it returns the start and end configurations respectively.
-
-
-
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
-
getCPtr
public static long getCPtr(SyncVelocityRampPtr obj)
-
delete
public void delete()
-
deref
public SyncVelocityRamp deref()
The pointer stored in the object.
-
__ref__
public SyncVelocityRamp __ref__()
Dereferencing operator.
-
getDeref
public SyncVelocityRamp getDeref()
Member access operator.
-
equals
public boolean equals(SyncVelocityRamp p)
-
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
-
cptr
public SyncVelocityRampCPtr cptr()
-
setTarget
public void setTarget(Q qstart, Q qend)
Specifies from and to where a ramp should be generated.- Parameters:
qstart- [in] The start configurationqend- [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
-
-