public class DefaultTimeSlave extends org.ros.node.AbstractNodeMain implements RosTimeUtil
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
name |
static int |
waitTime |
Constructor and Description |
---|
DefaultTimeSlave() |
Modifier and Type | Method and Description |
---|---|
org.ros.namespace.GraphName |
getDefaultNodeName() |
float[] |
handleTime(float startTime,
float endTime)
Three possibilities:
-time master: this method publishes stopTime to the Clock topic, @see http://wiki.ros.org/Clock
and returns unchanged values of startTIme and stopTime
-time ignored: does nothing, returns unchanged values
-time slave: reads the Clock value
|
void |
onStart(org.ros.node.ConnectedNode connectedNode) |
void |
simulationStopped()
Used to indicate that the script was reloaded during the application run.
|
public static int waitTime
public static final java.lang.String name
public org.ros.namespace.GraphName getDefaultNodeName()
getDefaultNodeName
in interface org.ros.node.NodeMain
public void onStart(org.ros.node.ConnectedNode connectedNode)
onStart
in interface org.ros.node.NodeListener
onStart
in class org.ros.node.AbstractNodeMain
public float[] handleTime(float startTime, float endTime)
RosTimeUtil
handleTime
in interface RosTimeUtil
startTime
- startTime of the Nengo simulation stependTime
- stopTime of the Nengo simulation steppublic void simulationStopped()
RosTimeUtil
simulationStopped
in interface RosTimeUtil