Package org.ros.node
Class AbstractNodeMain
java.lang.Object
org.ros.node.AbstractNodeMain
- All Implemented Interfaces:
NodeListener,NodeMain
- Direct Known Subclasses:
NativeNodeMain
A
NodeMain which provides empty defaults for all signals.- Author:
- damonkohler@google.com (Damon Kohler)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when theNodeexperiences an unrecoverable error.voidonShutdown(Node node) Called when theConnectedNodehas started shutting down.voidonShutdownComplete(Node node) Called when theNodehas shut down.voidonStart(ConnectedNode connectedNode) Called when theNodehas started and successfully connected to the master.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ros.node.NodeMain
getDefaultNodeName
-
Constructor Details
-
AbstractNodeMain
public AbstractNodeMain()
-
-
Method Details
-
onStart
Description copied from interface:NodeListenerCalled when theNodehas started and successfully connected to the master.- Specified by:
onStartin interfaceNodeListener- Parameters:
connectedNode- theConnectedNodethat has been started
-
onShutdown
Description copied from interface:NodeListenerCalled when theConnectedNodehas started shutting down. Shutdown will be delayed, although not indefinitely, until allNodeListeners have returned from this method.Since this method can potentially delay
ConnectedNodeshutdown, it is preferred to useNodeListener.onShutdownComplete(Node)whenConnectedNoderesources are not required during the method call.- Specified by:
onShutdownin interfaceNodeListener- Parameters:
node- theNodethat has started shutting down
-
onShutdownComplete
Description copied from interface:NodeListenerCalled when theNodehas shut down.- Specified by:
onShutdownCompletein interfaceNodeListener- Parameters:
node- theNodethat has shut down
-
onError
Description copied from interface:NodeListenerCalled when theNodeexperiences an unrecoverable error.- Specified by:
onErrorin interfaceNodeListener- Parameters:
node- theNodethat experienced the errorthrowable- theThrowabledescribing the error condition
-