Package org.robwork.sdurwsim
Class ODESimulatorPtr
- java.lang.Object
-
- org.robwork.sdurwsim.ODESimulatorPtr
-
public class ODESimulatorPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description ODESimulatorPtr()
Default constructor yielding a NULL-pointer.ODESimulatorPtr(long cPtr, boolean cMemoryOwn)
ODESimulatorPtr(ODESimulator ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
-
-
-
Constructor Detail
-
ODESimulatorPtr
public ODESimulatorPtr(long cPtr, boolean cMemoryOwn)
-
ODESimulatorPtr
public ODESimulatorPtr()
Default constructor yielding a NULL-pointer.
-
ODESimulatorPtr
public ODESimulatorPtr(ODESimulator ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(ODESimulatorPtr obj)
-
delete
public void delete()
-
deref
public ODESimulator deref()
The pointer stored in the object.
-
__ref__
public ODESimulator __ref__()
Dereferencing operator.
-
getDeref
public ODESimulator getDeref()
Member access operator.
-
equals
public boolean equals(ODESimulator 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
-
load
public void load(DynamicWorkCellPtr dwc)
-
setContactDetector
public boolean setContactDetector(ContactDetectorPtr detector)
-
step
public void step(double dt, State state)
-
resetScene
public void resetScene(State state)
-
initPhysics
public void initPhysics(State state)
-
exitPhysics
public void exitPhysics()
-
getTime
public double getTime()
-
setEnabled
public void setEnabled(BodyPtr body, boolean enabled)
-
setDynamicsEnabled
public void setDynamicsEnabled(BodyPtr body, boolean enabled)
-
getPropertyMap
public PropertyMap getPropertyMap()
-
emitPropertyChanged
public void emitPropertyChanged()
-
addController
public void addController(SimulatedControllerPtr controller)
-
removeController
public void removeController(SimulatedControllerPtr controller)
-
addDevice
public void addDevice(DynamicDevicePtr dev, State state)
-
addSensor
public void addSensor(SimulatedSensorPtr sensor, State state)
-
removeSensor
public void removeSensor(SimulatedSensorPtr sensor)
-
getSensors
public SWIGTYPE_p_std__vectorT_rw__core__PtrT_rwlibs__simulation__SimulatedSensor_t_t getSensors()
-
setStepMethod
public void setStepMethod(ODESimulator.StepMethod method)
-
isInitialized
public boolean isInitialized()
-
getDynamicWorkCell
public DynamicWorkCellPtr getDynamicWorkCell()
-
getGravity
public Vector3D getGravity()
-
addEmulatedContact
public void addEmulatedContact(Vector3D pos, Vector3D force, Vector3D normal, Body b)
-
setContactLoggingEnabled
public void setContactLoggingEnabled(boolean enable)
-
getContactCnt
public int getContactCnt()
-
getMaxSeperatingDistance
public double getMaxSeperatingDistance()
-
-