Go to the documentation of this file.
22 struct ResettablePrivate;
44 virtual void reset() = 0;
50 virtual void initRos(const ::ros::NodeHandle& pnh);
53 ::std::unique_ptr<::cras::ResettablePrivate>
data;
56 struct TimeJumpResettablePrivate;
107 void initRos(const ::ros::NodeHandle& pnh)
override;
126 ::std::unique_ptr<::cras::TimeJumpResettablePrivate>
data;
::std::unique_ptr<::cras::ResettablePrivate > data
Private implementation (PIMPL) data.
Interface for resettable nodes and nodelets.
virtual void reset()=0
Do the resetting. Subclasses have to implement the logic.
~TimeJumpResettable() override
Resettable(const ::cras::LogHelperPtr &log)
Create the resettable interface. To also wire up to the reset topics, call initRos().
virtual void stopAutoCheckTimeJump()
Stop the timer that automatically checks for time jumps.
void startAutoCheckTimeJump()
Start a background 1 Hz timer that automatically checks for time jumps.
Interface for resettable nodes and nodelets. Automatic reset on time jumps.
::std::unique_ptr<::cras::TimeJumpResettablePrivate > data
Private implementation (PIMPL) data.
::cras::LogHelper::Ptr LogHelperPtr
Pointer to LogHelper.
void checkTimeJump()
Check if ROS time has not jumped back. If it did, call reset().
void initRos(const ::ros::NodeHandle &pnh) override
Initialize the ROS part of the interface - subscriber to /reset and ~reset topics,...
TimeJumpResettable(const ::cras::LogHelperPtr &log)
Create the resettable interface. To also wire up to the reset topics and time jump resets,...
virtual void initRos(const ::ros::NodeHandle &pnh)
Initialize the ROS part of the interface - subscriber to /reset and ~reset topics.
cras_cpp_common
Author(s): Martin Pecka
autogenerated on Tue Nov 26 2024 03:49:04