public class NodeFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
me |
static org.ros.node.NodeMainExecutor |
nme |
static NameProvider |
np |
static boolean |
printCommands |
static boolean |
printOut |
Constructor and Description |
---|
NodeFactory() |
Modifier and Type | Method and Description |
---|---|
protected static void |
inform(java.util.List<java.lang.String> command,
java.lang.String type) |
static void |
initGroupOfNodes(NodeGroup g)
Create group of external nodes, modify their namespace or names so
that each node in the ROS network has unique (complete) name
|
static void |
killModem(ModemContainer m)
Shut down the modem, tell the NameProvider to remove the modem
name from the list
|
static void |
killNode(JavaNodeContainer j)
Tells the NameProvider that node is being closed
|
static void |
killNode(NativeNodeContainer n)
This just tells the NameProvider that node is no longer running
|
static java.lang.String[] |
namesOfRunningNodes() |
static int |
numOfRunningNodes()
Get number of currently running ROS nodes.
|
public static boolean printCommands
public static final boolean printOut
protected static final java.lang.String me
public static final org.ros.node.NodeMainExecutor nme
public static final NameProvider np
public static void initGroupOfNodes(NodeGroup g)
g
- group of node configurations, where are nodes also storedprotected static void inform(java.util.List<java.lang.String> command, java.lang.String type)
public static int numOfRunningNodes()
public static java.lang.String[] namesOfRunningNodes()
public static void killNode(JavaNodeContainer j)
j
- public static void killNode(NativeNodeContainer n)
n
- node which is about to be closedpublic static void killModem(ModemContainer m)
m
- modem container itself