public class DefaultTimeMaster extends org.ros.node.AbstractNodeMain implements RosTimeUtil
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cl |
static java.lang.String |
name |
Constructor and Description |
---|
DefaultTimeMaster() |
Modifier and Type | Method and Description |
---|---|
org.ros.namespace.GraphName |
getDefaultNodeName()
Default name of the ROS node
|
float[] |
handleTime(float startTime,
float endTime)
Publish actual time (endTime) across the ROS network.
|
void |
onStart(org.ros.node.ConnectedNode connectedNode)
Method called after launching the node.
|
void |
simulationStopped()
If new script is launched, the TimeMaster does not have to be restarted.
|
public static final java.lang.String name
protected final java.lang.String cl
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)
handleTime
in interface RosTimeUtil
startTime
- startTime of the Nengo simulation stependTime
- stopTime of the Nengo simulation steppublic void simulationStopped()
simulationStopped
in interface RosTimeUtil