public interface Node
Modifier and Type | Method and Description |
---|---|
void |
addListener(NodeListener listener)
Add a new
NodeListener to the Node . |
void |
executeCancellableLoop(CancellableLoop cancellableLoop)
|
org.apache.commons.logging.Log |
getLog() |
java.net.URI |
getMasterUri() |
org.ros.message.MessageSerializationFactory |
getMessageSerializationFactory() |
GraphName |
getName() |
NodeNameResolver |
getResolver() |
java.util.concurrent.ScheduledExecutorService |
getScheduledExecutorService() |
org.ros.message.MessageFactory |
getServiceRequestMessageFactory() |
org.ros.message.MessageFactory |
getServiceResponseMessageFactory() |
org.ros.message.MessageFactory |
getTopicMessageFactory() |
java.net.URI |
getUri() |
GraphName |
resolveName(GraphName name)
Resolve the given name, using ROS conventions, into a full ROS namespace
name.
|
GraphName |
resolveName(java.lang.String name) |
void |
shutdown()
Shut the node down.
|
GraphName resolveName(GraphName name)
name
- the name to resolveGraphName resolveName(java.lang.String name)
resolveName(GraphName)
NodeNameResolver getResolver()
NodeNameResolver
for this namespacejava.net.URI getUri()
URI
of this Node
java.net.URI getMasterUri()
URI
of MasterXmlRpcEndpoint
that this node is
attached to.org.apache.commons.logging.Log getLog()
org.ros.message.MessageSerializationFactory getMessageSerializationFactory()
MessageSerializationFactory
used by this nodeorg.ros.message.MessageFactory getTopicMessageFactory()
MessageFactory
used by this nodeorg.ros.message.MessageFactory getServiceResponseMessageFactory()
MessageFactory
used by this node for service responsesorg.ros.message.MessageFactory getServiceRequestMessageFactory()
MessageFactory
used by this node for service requestsvoid addListener(NodeListener listener)
NodeListener
to the Node
.listener
- the NodeListener
to addjava.util.concurrent.ScheduledExecutorService getScheduledExecutorService()
ScheduledExecutorService
that this Node
usesvoid executeCancellableLoop(CancellableLoop cancellableLoop)
CancellableLoop
using the Node
's
ScheduledExecutorService
. The CancellableLoop
will be
canceled when the Node
starts shutting down.
Any blocking calls executed in the provided CancellableLoop
can
potentially delay Node
shutdown and should be avoided.
cancellableLoop
- the CancellableLoop
to executevoid shutdown()