public class RosUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
me |
static boolean |
nodesShouldStop |
Constructor and Description |
---|
RosUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addGroup(NodeGroup g)
RosUtils should remember all currently running groups
in order to be able to stop them if necessary.
|
static boolean |
autorun() |
static boolean |
coreRunning() |
static int |
getNumOfGroups() |
static RosTimeUtil |
getTimeUtil() |
static void |
prefferJroscore(boolean prefer)
if C++ roscore found, which one prefer?
|
static void |
removeGroup(NodeGroup g) |
static boolean |
rqtRunning() |
static void |
setAutorun(boolean autorun)
Start core and other utilities automatically?
|
static void |
setRqtAutorun(boolean autorun)
Should the RQT start automatically?
|
static void |
setTimeIgnore() |
static void |
setTimeMaster()
sets the NengoROS as a time master (selected by default).
|
static void |
setTimeSlave() |
static void |
stopAllNodes() |
static void |
utilsShallStart()
By default, if any ROS node is launched, this is called and tries
to launch ROS Core, RQT, TimeMaster and ParamServer.
|
static void |
utilsShallStop()
When the Nengo application stops, do this:
|
public static boolean nodesShouldStop
public static final java.lang.String me
public static void setAutorun(boolean autorun)
autorun
- public static boolean autorun()
public static void utilsShallStart()
public static void setTimeMaster()
public static void setTimeSlave()
public static void setTimeIgnore()
public static void stopAllNodes()
public static void addGroup(NodeGroup g)
g
- public static void removeGroup(NodeGroup g)
public static int getNumOfGroups()
public static void utilsShallStop()
public static void prefferJroscore(boolean prefer)
prefer
- public static void setRqtAutorun(boolean autorun)
autorun
- public static boolean rqtRunning()
public static boolean coreRunning()
public static RosTimeUtil getTimeUtil()