Package org.robwork.sdurwsim
Class DynamicWorkCellCPtr
- java.lang.Object
-
- org.robwork.sdurwsim.DynamicWorkCellCPtr
-
public class DynamicWorkCellCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description DynamicWorkCellCPtr()
Default constructor yielding a NULL-pointer.DynamicWorkCellCPtr(long cPtr, boolean cMemoryOwn)
DynamicWorkCellCPtr(DynamicWorkCell 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 DynamicWorkCell
__ref__()
Dereferencing operator.void
delete()
DynamicWorkCell
deref()
The pointer stored in the object.boolean
equals(DynamicWorkCell p)
SWIGTYPE_p_Body__Ptr
findBody(java.lang.String name)
find a specific body with name nameSWIGTYPE_p_Constraint__Ptr
findConstraint(java.lang.String name)
find a specific constraint with name nameSimulatedControllerPtr
findController(java.lang.String name)
Find a simulated controller.SWIGTYPE_p_DynamicDevice__Ptr
findDevice(java.lang.String name)
find a dynamic device of name nameSimulatedSensorPtr
findSensor(java.lang.String name)
find a sensorSWIGTYPE_p_std__vectorT_Body__Ptr_t
getBodies()
gets a list of all bodies in the dynamic workcellBodyPtr
getBody(java.lang.String name)
SWIGTYPE_p_std__vectorT_Constraint__Ptr_t
getConstraints()
gets a list of all constraints in the dynamic workcellSWIGTYPE_p_std__vectorT_rw__core__PtrT_rwlibs__simulation__SimulatedController_t_t
getControllers()
gets a list of all controllers in the dynamic workcellstatic long
getCPtr(DynamicWorkCellCPtr obj)
DynamicWorkCell
getDeref()
Member access operator.SWIGTYPE_p_std__vectorT_DynamicDevice__Ptr_t
getDynamicDevices()
gets a list of all dynamic devices in the dynamic workcellVector3D
getGravity()
get the gravity in this dynamic workcellSWIGTYPE_p_std__vectorT_rw__core__PtrT_rwlibs__simulation__SimulatedSensor_t_t
getSensors()
get the list of sensorsWorkCellPtr
getWorkcell()
gets the default kinematic workcellWorkCellPtr
getWorkCell()
gets the default kinematic workcellboolean
inDevice(SWIGTYPE_p_rw__core__PtrT_Body_const_t body)
tests if a body is part of a deviceboolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
DynamicWorkCellCPtr
public DynamicWorkCellCPtr(long cPtr, boolean cMemoryOwn)
-
DynamicWorkCellCPtr
public DynamicWorkCellCPtr()
Default constructor yielding a NULL-pointer.
-
DynamicWorkCellCPtr
public DynamicWorkCellCPtr(DynamicWorkCell ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(DynamicWorkCellCPtr obj)
-
delete
public void delete()
-
deref
public DynamicWorkCell deref()
The pointer stored in the object.
-
__ref__
public DynamicWorkCell __ref__()
Dereferencing operator.
-
getDeref
public DynamicWorkCell getDeref()
Member access operator.
-
equals
public boolean equals(DynamicWorkCell 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
-
getBodies
public SWIGTYPE_p_std__vectorT_Body__Ptr_t getBodies()
gets a list of all bodies in the dynamic workcell
-
findBody
public SWIGTYPE_p_Body__Ptr findBody(java.lang.String name)
find a specific body with name name- Parameters:
name
- [in] name of body- Returns:
- body if found, NULL otherwise
-
getConstraints
public SWIGTYPE_p_std__vectorT_Constraint__Ptr_t getConstraints()
gets a list of all constraints in the dynamic workcell
-
findConstraint
public SWIGTYPE_p_Constraint__Ptr findConstraint(java.lang.String name)
find a specific constraint with name name- Parameters:
name
- [in] name of constraint- Returns:
- constraint if found, NULL otherwise
-
getDynamicDevices
public SWIGTYPE_p_std__vectorT_DynamicDevice__Ptr_t getDynamicDevices()
gets a list of all dynamic devices in the dynamic workcell- Returns:
- a list of dynamic devices.
-
findDevice
public SWIGTYPE_p_DynamicDevice__Ptr findDevice(java.lang.String name)
find a dynamic device of name name- Parameters:
name
- [in] name of device- Returns:
- a device with name name or null
-
getControllers
public SWIGTYPE_p_std__vectorT_rw__core__PtrT_rwlibs__simulation__SimulatedController_t_t getControllers()
gets a list of all controllers in the dynamic workcell
-
getSensors
public SWIGTYPE_p_std__vectorT_rw__core__PtrT_rwlibs__simulation__SimulatedSensor_t_t getSensors()
get the list of sensors
-
findSensor
public SimulatedSensorPtr findSensor(java.lang.String name)
find a sensor- Parameters:
name
- [in] the sensor- Returns:
-
findController
public SimulatedControllerPtr findController(java.lang.String name)
Find a simulated controller.- Parameters:
name
- [in] name of the controller.- Returns:
- the simulated controller if found, NULL otherwise.
-
getBody
public BodyPtr getBody(java.lang.String name)
-
getWorkcell
public WorkCellPtr getWorkcell()
gets the default kinematic workcell
-
getWorkCell
public WorkCellPtr getWorkCell()
gets the default kinematic workcell
-
inDevice
public boolean inDevice(SWIGTYPE_p_rw__core__PtrT_Body_const_t body)
tests if a body is part of a device- Parameters:
body
- [in] the body to test for.- Returns:
- true if body is part of the device.
-
getGravity
public Vector3D getGravity()
get the gravity in this dynamic workcell- Returns:
- gravity
-
-