Package org.robwork.sdurwsim
Class GraspTaskSimulator
- java.lang.Object
-
- org.robwork.sdurwsim.GraspTaskSimulator
-
public class GraspTaskSimulator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GraspTaskSimulator(long cPtr, boolean cMemoryOwn)
GraspTaskSimulator(DynamicWorkCellPtr dwc)
GraspTaskSimulator(DynamicWorkCellPtr dwc, int nrThreads)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(GraspTaskSimulator obj)
long
getNrTargets()
int
getNrTargetsDone()
GraspTaskPtr
getResult()
ThreadSimulatorPtr
getSimulator()
ThreadSimulatorPtrVector
getSimulators()
vector_i
getStat()
int
getStat(GraspResult.TestStatus status)
java.lang.String
getStatDescription()
GraspTaskPtr
getTasks()
void
init(DynamicWorkCellPtr dwc, State initState)
boolean
isFinished()
boolean
isRunning()
void
load(java.lang.String filename)
void
load(GraspTaskPtr graspTasks)
void
pauseSimulation()
void
resumeSimulation()
void
setAlwaysResting(boolean alwaysResting)
void
setSimTimeLimit(double limit)
void
setStepDelay(int delay)
void
setWallTimeLimit(double limit)
void
startSimulation(State initState)
-
-
-
Constructor Detail
-
GraspTaskSimulator
public GraspTaskSimulator(long cPtr, boolean cMemoryOwn)
-
GraspTaskSimulator
public GraspTaskSimulator(DynamicWorkCellPtr dwc, int nrThreads)
-
GraspTaskSimulator
public GraspTaskSimulator(DynamicWorkCellPtr dwc)
-
-
Method Detail
-
getCPtr
public static long getCPtr(GraspTaskSimulator obj)
-
delete
public void delete()
-
load
public void load(java.lang.String filename)
-
load
public void load(GraspTaskPtr graspTasks)
-
getTasks
public GraspTaskPtr getTasks()
-
getResult
public GraspTaskPtr getResult()
-
getNrTargets
public long getNrTargets()
-
getSimulator
public ThreadSimulatorPtr getSimulator()
-
getSimulators
public ThreadSimulatorPtrVector getSimulators()
-
init
public void init(DynamicWorkCellPtr dwc, State initState)
-
startSimulation
public void startSimulation(State initState)
-
pauseSimulation
public void pauseSimulation()
-
resumeSimulation
public void resumeSimulation()
-
isRunning
public boolean isRunning()
-
isFinished
public boolean isFinished()
-
getStat
public int getStat(GraspResult.TestStatus status)
-
getStat
public vector_i getStat()
-
getStatDescription
public java.lang.String getStatDescription()
-
getNrTargetsDone
public int getNrTargetsDone()
-
setAlwaysResting
public void setAlwaysResting(boolean alwaysResting)
-
setStepDelay
public void setStepDelay(int delay)
-
setWallTimeLimit
public void setWallTimeLimit(double limit)
-
setSimTimeLimit
public void setSimTimeLimit(double limit)
-
-