Package org.robwork.sdurw_simulation
Class Simulator.UpdateInfo
- java.lang.Object
-
- org.robwork.sdurw_simulation.Simulator.UpdateInfo
-
- Enclosing class:
- Simulator
public static class Simulator.UpdateInfo extends java.lang.Object
step info is used when updating controllers, devices and bodies.
-
-
Constructor Summary
Constructors Constructor Description UpdateInfo()
constructorUpdateInfo(double dt_step)
constructorUpdateInfo(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(Simulator.UpdateInfo obj)
double
getDt()
the timestep which is about to take placedouble
getDt_prev()
the timestep taken in previous step.boolean
getRollback()
if true then the previous step was unsuccessfull and a new step with
new parameters is executed.double
getTime()
current simulation timevoid
setDt(double value)
the timestep which is about to take placevoid
setDt_prev(double value)
the timestep taken in previous step.void
setRollback(boolean value)
if true then the previous step was unsuccessfull and a new step with
new parameters is executed.void
setTime(double value)
current simulation time
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(Simulator.UpdateInfo obj)
-
delete
public void delete()
-
setDt
public void setDt(double value)
the timestep which is about to take place
-
getDt
public double getDt()
the timestep which is about to take place
-
setDt_prev
public void setDt_prev(double value)
the timestep taken in previous step.
-
getDt_prev
public double getDt_prev()
the timestep taken in previous step.
-
setTime
public void setTime(double value)
current simulation time
-
getTime
public double getTime()
current simulation time
-
setRollback
public void setRollback(boolean value)
if true then the previous step was unsuccessfull and a new step with
new parameters is executed. Typically the dt is reduces. The time should be the same
as previous call.
-
getRollback
public boolean getRollback()
if true then the previous step was unsuccessfull and a new step with
new parameters is executed. Typically the dt is reduces. The time should be the same
as previous call.
-
-