Package org.robwork.sdurwsim
Class SerialDeviceControllerPtr
- java.lang.Object
-
- org.robwork.sdurwsim.SerialDeviceControllerPtr
-
public class SerialDeviceControllerPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description SerialDeviceControllerPtr()Default constructor yielding a NULL-pointer.SerialDeviceControllerPtr(long cPtr, boolean cMemoryOwn)SerialDeviceControllerPtr(SerialDeviceController 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 SerialDeviceController__ref__()Dereferencing operator.voiddelete()SerialDeviceControllerderef()The pointer stored in the object.booleanequals(SerialDeviceController p)java.lang.StringgetControllerName()static longgetCPtr(SerialDeviceControllerPtr obj)SerialDeviceControllergetDeref()Member access operator.QgetQ()QgetQd()booleanisEnabled()booleanisMoving()booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipbooleanmoveLin(Transform3D target)move robot in a linear Cartesian pathbooleanmoveLin(Transform3D target, float speed)move robot in a linear Cartesian pathbooleanmoveLin(Transform3D target, float speed, float blend)move robot in a linear Cartesian pathbooleanmovePTP(Q target)move robot from point to pointbooleanmovePTP(Q target, float speed)move robot from point to pointbooleanmovePTP(Q target, float speed, float blend)move robot from point to pointbooleanmovePTP_T(Transform3D target)move robot from point to point but using a pose as target (require invkin)booleanmovePTP_T(Transform3D target, float speed)move robot from point to point but using a pose as target (require invkin)booleanmovePTP_T(Transform3D target, float speed, float blend)move robot from point to point but using a pose as target (require invkin)booleanmoveVelQ(Q target_joint_velocity)move robot in a servoing fasionbooleanmoveVelT(VelocityScrew6D vel)booleanpause()pause the robot, should be able to continue trajectoryvoidreset(State state)voidsetEnabled(boolean enabled)booleansetSafeModeEnabled(boolean enable)enable safe mode, so that robot stops when collisions are detectedbooleanstop()move robot with a hybrid position/force control hard stop the robot,
-
-
-
Constructor Detail
-
SerialDeviceControllerPtr
public SerialDeviceControllerPtr(long cPtr, boolean cMemoryOwn)
-
SerialDeviceControllerPtr
public SerialDeviceControllerPtr()
Default constructor yielding a NULL-pointer.
-
SerialDeviceControllerPtr
public SerialDeviceControllerPtr(SerialDeviceController ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(SerialDeviceControllerPtr obj)
-
delete
public void delete()
-
deref
public SerialDeviceController deref()
The pointer stored in the object.
-
__ref__
public SerialDeviceController __ref__()
Dereferencing operator.
-
getDeref
public SerialDeviceController getDeref()
Member access operator.
-
equals
public boolean equals(SerialDeviceController 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
-
moveLin
public boolean moveLin(Transform3D target, float speed, float blend)
move robot in a linear Cartesian path
-
moveLin
public boolean moveLin(Transform3D target, float speed)
move robot in a linear Cartesian path
-
moveLin
public boolean moveLin(Transform3D target)
move robot in a linear Cartesian path
-
movePTP
public boolean movePTP(Q target, float speed, float blend)
move robot from point to point
-
movePTP
public boolean movePTP(Q target, float speed)
move robot from point to point
-
movePTP
public boolean movePTP(Q target)
move robot from point to point
-
movePTP_T
public boolean movePTP_T(Transform3D target, float speed, float blend)
move robot from point to point but using a pose as target (require invkin)
-
movePTP_T
public boolean movePTP_T(Transform3D target, float speed)
move robot from point to point but using a pose as target (require invkin)
-
movePTP_T
public boolean movePTP_T(Transform3D target)
move robot from point to point but using a pose as target (require invkin)
-
moveVelQ
public boolean moveVelQ(Q target_joint_velocity)
move robot in a servoing fasion
-
moveVelT
public boolean moveVelT(VelocityScrew6D vel)
-
stop
public boolean stop()
move robot with a hybrid position/force control hard stop the robot,
-
pause
public boolean pause()
pause the robot, should be able to continue trajectory
-
setSafeModeEnabled
public boolean setSafeModeEnabled(boolean enable)
enable safe mode, so that robot stops when collisions are detected
-
getQ
public Q getQ()
-
getQd
public Q getQd()
-
isMoving
public boolean isMoving()
-
getControllerName
public java.lang.String getControllerName()
-
reset
public void reset(State state)
-
setEnabled
public void setEnabled(boolean enabled)
-
isEnabled
public boolean isEnabled()
-
-