20 #ifndef INCLUDE_FKIE_MESSAGE_FILTERS_IMAGE_SUBSCRIBER_H_ 21 #define INCLUDE_FKIE_MESSAGE_FILTERS_IMAGE_SUBSCRIBER_H_ 25 #include <sensor_msgs/Image.h> 94 virtual std::string
topic()
const noexcept
override;
112 void cb(
const sensor_msgs::ImageConstPtr&);
113 std::shared_ptr<image_transport::ImageTransport>
it_;
virtual std::string topic() const noexcept override
Return the subscribed topic name.
Base class for data providers.
void set_subscribe_options(const image_transport::ImageTransport &it, const std::string &base_topic, uint32_t queue_size, const image_transport::TransportHints &transport_hints=image_transport::TransportHints()) noexcept
Configure ROS topic that is to be subscribed.
virtual bool is_configured() const noexcept override
Check if the ROS subscriber is properly configured.
image_transport::Subscriber sub_
virtual void subscribe_on_demand(PublisherBase &pub)
Subscribe to the configured ROS topic whenever the given publisher is active.
virtual void subscribe()
Subscribe to the configured ROS topic.
Base class for ROS subscribers in a filter pipeline.
virtual void subscribe_impl() noexcept override
Create a ROS subscriber.
virtual void unsubscribe_impl() noexcept override
Shut the ROS subscriber down.
ImageSubscriber() noexcept
Constructs an empty subscriber.
void cb(const sensor_msgs::ImageConstPtr &)
virtual void unsubscribe()
Unsubscribe from the configured ROS topic.
Subscribe to a ROS image topic as data provider.
std::shared_ptr< image_transport::ImageTransport > it_
image_transport::TransportHints hints_