|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Node
A node in the ROS graph.
Method Summary | |
---|---|
void |
addListener(NodeListener listener)
Add a new NodeListener to the Node . |
void |
executeCancellableLoop(CancellableLoop cancellableLoop)
Executes a CancellableLoop using the Node 's
ScheduledExecutorService . |
org.apache.commons.logging.Log |
getLog()
|
java.net.URI |
getMasterUri()
|
MessageSerializationFactory |
getMessageSerializationFactory()
|
GraphName |
getName()
|
NodeNameResolver |
getResolver()
|
java.util.concurrent.ScheduledExecutorService |
getScheduledExecutorService()
|
MessageFactory |
getServiceRequestMessageFactory()
|
MessageFactory |
getServiceResponseMessageFactory()
|
MessageFactory |
getTopicMessageFactory()
|
java.net.URI |
getUri()
|
void |
removeListener(NodeListener listener)
Remove a NodeListener from the Node . |
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. |
Method Detail |
---|
GraphName getName()
Node
, e.g. "/foo/bar/boop"GraphName resolveName(GraphName name)
name
- the name to resolve
GraphName 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()
MessageSerializationFactory getMessageSerializationFactory()
MessageSerializationFactory
used by this nodeMessageFactory getTopicMessageFactory()
MessageFactory
used by this nodeMessageFactory getServiceResponseMessageFactory()
MessageFactory
used by this node for service responsesMessageFactory getServiceRequestMessageFactory()
MessageFactory
used by this node for service requestsvoid addListener(NodeListener listener)
NodeListener
to the Node
.
listener
- the NodeListener
to addvoid removeListener(NodeListener listener)
NodeListener
from the Node
.
If the given NodeListener
is not registered, this has no effect.
listener
- the NodeListener
to removejava.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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |