Package org.robwork.sdurwsim
Class ODESimulator
- java.lang.Object
-
- org.robwork.sdurwsim.PhysicsEngine
-
- org.robwork.sdurwsim.ODESimulator
-
public class ODESimulator extends PhysicsEngine
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ODESimulator.StepMethod
-
Constructor Summary
Constructors Constructor Description ODESimulator(long cPtr, boolean cMemoryOwn)
ODESimulator(DynamicWorkCellPtr dwc)
ODESimulator(DynamicWorkCellPtr dwc, ContactDetectorPtr detector)
-
Method Summary
-
Methods inherited from class org.robwork.sdurwsim.PhysicsEngine
getCPtr
-
-
-
-
Constructor Detail
-
ODESimulator
public ODESimulator(long cPtr, boolean cMemoryOwn)
-
ODESimulator
public ODESimulator(DynamicWorkCellPtr dwc, ContactDetectorPtr detector)
-
ODESimulator
public ODESimulator(DynamicWorkCellPtr dwc)
-
-
Method Detail
-
getCPtr
public static long getCPtr(ODESimulator obj)
-
delete
public void delete()
- Overrides:
delete
in classPhysicsEngine
-
load
public void load(DynamicWorkCellPtr dwc)
- Overrides:
load
in classPhysicsEngine
-
setContactDetector
public boolean setContactDetector(ContactDetectorPtr detector)
- Overrides:
setContactDetector
in classPhysicsEngine
-
step
public void step(double dt, State state)
- Overrides:
step
in classPhysicsEngine
-
resetScene
public void resetScene(State state)
- Overrides:
resetScene
in classPhysicsEngine
-
initPhysics
public void initPhysics(State state)
- Overrides:
initPhysics
in classPhysicsEngine
-
exitPhysics
public void exitPhysics()
- Overrides:
exitPhysics
in classPhysicsEngine
-
getTime
public double getTime()
- Overrides:
getTime
in classPhysicsEngine
-
setEnabled
public void setEnabled(BodyPtr body, boolean enabled)
- Overrides:
setEnabled
in classPhysicsEngine
-
setDynamicsEnabled
public void setDynamicsEnabled(BodyPtr body, boolean enabled)
- Overrides:
setDynamicsEnabled
in classPhysicsEngine
-
getPropertyMap
public PropertyMap getPropertyMap()
- Overrides:
getPropertyMap
in classPhysicsEngine
-
emitPropertyChanged
public void emitPropertyChanged()
- Overrides:
emitPropertyChanged
in classPhysicsEngine
-
addController
public void addController(SimulatedControllerPtr controller)
- Overrides:
addController
in classPhysicsEngine
-
removeController
public void removeController(SimulatedControllerPtr controller)
- Overrides:
removeController
in classPhysicsEngine
-
addBody
public void addBody(BodyPtr body, State state)
- Overrides:
addBody
in classPhysicsEngine
-
addDevice
public void addDevice(DynamicDevicePtr dev, State state)
- Overrides:
addDevice
in classPhysicsEngine
-
addSensor
public void addSensor(SimulatedSensorPtr sensor, State state)
- Overrides:
addSensor
in classPhysicsEngine
-
removeSensor
public void removeSensor(SimulatedSensorPtr sensor)
- Overrides:
removeSensor
in classPhysicsEngine
-
attach
public void attach(BodyPtr b1, BodyPtr b2)
- Overrides:
attach
in classPhysicsEngine
-
detach
public void detach(BodyPtr b1, BodyPtr b2)
- Overrides:
detach
in classPhysicsEngine
-
getSensors
public SWIGTYPE_p_std__vectorT_rw__core__PtrT_rwlibs__simulation__SimulatedSensor_t_t getSensors()
- Overrides:
getSensors
in classPhysicsEngine
-
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()
-
-