Interface for resettable nodes and nodelets. More...
#include <resettable.h>
Public Member Functions | |
virtual void | initRos (const ::ros::NodeHandle &pnh) |
Initialize the ROS part of the interface - subscriber to /reset and ~reset topics. More... | |
virtual void | reset ()=0 |
Do the resetting. Subclasses have to implement the logic. More... | |
Resettable (const ::cras::LogHelperPtr &log) | |
Create the resettable interface. To also wire up to the reset topics, call initRos(). More... | |
virtual | ~Resettable () |
Private Attributes | |
::std::unique_ptr<::cras::ResettablePrivate > | data |
Private implementation (PIMPL) data. More... | |
Interface for resettable nodes and nodelets.
This class subscribes the following topics:
/reset
(any type): When a message is received on this topic, reset() is called.~reset
(any type): When a message is received on this topic, reset() is called. Definition at line 31 of file resettable.h.
|
explicit |
Create the resettable interface. To also wire up to the reset topics, call initRos().
[in] | log | The logger to use for message logging. |
|
virtual |
|
virtual |
Initialize the ROS part of the interface - subscriber to /reset and ~reset topics.
[in] | pnh | The (private) node handle to setup the interface for. |
Reimplemented in cras::TimeJumpResettable.
|
pure virtual |
Do the resetting. Subclasses have to implement the logic.
Implemented in cras::NodeletWithSharedTfBuffer< NodeletType >, cras::NodeletWithSharedTfBuffer< BaseNodelet >, cras::NodeletWithSharedTfBuffer< ::nodelet::Nodelet >, and cras::NodeletManagerSharingTfBuffer.
|
private |
Private implementation (PIMPL) data.
Definition at line 53 of file resettable.h.