|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ros.node.AbstractNodeMain
public abstract class AbstractNodeMain
A NodeMain which provides empty defaults for all signals.
| Constructor Summary | |
|---|---|
AbstractNodeMain()
|
|
| Method Summary | |
|---|---|
void |
onError(Node node,
java.lang.Throwable throwable)
Called when the Node experiences an unrecoverable error. |
void |
onShutdown(Node node)
Called when the ConnectedNode has started shutting down. |
void |
onShutdownComplete(Node node)
Called when the Node has shut down. |
void |
onStart(ConnectedNode connectedNode)
Called when the Node has started and successfully connected to the
master. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ros.node.NodeMain |
|---|
getDefaultNodeName |
| Constructor Detail |
|---|
public AbstractNodeMain()
| Method Detail |
|---|
public void onStart(ConnectedNode connectedNode)
NodeListenerNode has started and successfully connected to the
master.
onStart in interface NodeListenerconnectedNode - the ConnectedNode that has been startedpublic void onShutdown(Node node)
NodeListenerConnectedNode has started shutting down. Shutdown
will be delayed, although not indefinitely, until all NodeListeners
have returned from this method.
Since this method can potentially delay ConnectedNode shutdown, it
is preferred to use NodeListener.onShutdownComplete(Node) when
ConnectedNode resources are not required during the method call.
onShutdown in interface NodeListenernode - the Node that has started shutting downpublic void onShutdownComplete(Node node)
NodeListenerNode has shut down.
onShutdownComplete in interface NodeListenernode - the Node that has shut down
public void onError(Node node,
java.lang.Throwable throwable)
NodeListenerNode experiences an unrecoverable error.
onError in interface NodeListenernode - the Node that experienced the errorthrowable - the Throwable describing the error condition
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||