Go to the documentation of this file.
20 #include <topic_tools/shape_shifter.h>
82 ::std::unique_ptr<::cras::GenericLazyPubSub>
pubSub;
93 virtual void onReset(const ::ros::MessageEvent<const ::topic_tools::ShapeShifter>&);
98 void reset()
override;
109 ::std::unique_ptr<::cras::RateLimiter>
limiter;
Nodelet for throttling messages on a topic.
::std::unique_ptr<::cras::GenericLazyPubSub > pubSub
The lazy pair of subscriber and publisher.
virtual void onReset(const ::ros::MessageEvent< const ::topic_tools::ShapeShifter > &)
Called when the rate limiter should be reset. The incoming message can be of any type and should not ...
Lazy subscriber that subscribes only when a paired publisher has subscribers. Version for unknown mes...
::ros::Subscriber resetSub
Subscriber to the reset topic.
::std::mutex limiterMutex
Mutex for working with the limiter.
void processMessage(const ::ros::MessageEvent< const ::topic_tools::ShapeShifter > &event, ::ros::Publisher &pub)
Publish the incoming message if the rate limiter allows.
void reset() override
Reset the rate limiter, e.g. after a time jump.
::std::unique_ptr<::cras::RateLimiter > limiter
The rate limiter used for limiting output rate.
cras_topic_tools
Author(s): Martin Pecka
autogenerated on Tue Nov 26 2024 03:49:18