35 #ifndef IMAGE_TRANSPORT_IMAGE_TRANSPORT_H 36 #define IMAGE_TRANSPORT_IMAGE_TRANSPORT_H 62 Publisher advertise(
const std::string& base_topic, uint32_t queue_size,
bool latch =
false);
67 Publisher advertise(
const std::string& base_topic, uint32_t queue_size,
75 Subscriber subscribe(
const std::string& base_topic, uint32_t queue_size,
76 const boost::function<
void(
const sensor_msgs::ImageConstPtr&)>& callback,
84 void(*fp)(
const sensor_msgs::ImageConstPtr&),
87 return subscribe(base_topic, queue_size,
88 boost::function<
void(
const sensor_msgs::ImageConstPtr&)>(fp),
97 void(T::*fp)(
const sensor_msgs::ImageConstPtr&), T* obj,
100 return subscribe(base_topic, queue_size, boost::bind(fp, obj, _1),
ros::VoidPtr(), transport_hints);
108 void(T::*fp)(
const sensor_msgs::ImageConstPtr&),
112 return subscribe(base_topic, queue_size, boost::bind(fp, obj.get(), _1), obj, transport_hints);
118 CameraPublisher advertiseCamera(
const std::string& base_topic, uint32_t queue_size,
bool latch =
false);
124 CameraPublisher advertiseCamera(
const std::string& base_topic, uint32_t queue_size,
138 CameraSubscriber subscribeCamera(
const std::string& base_topic, uint32_t queue_size,
147 void(*fp)(
const sensor_msgs::ImageConstPtr&,
148 const sensor_msgs::CameraInfoConstPtr&),
161 void(T::*fp)(
const sensor_msgs::ImageConstPtr&,
162 const sensor_msgs::CameraInfoConstPtr&), T* obj,
165 return subscribeCamera(base_topic, queue_size, boost::bind(fp, obj, _1, _2),
ros::VoidPtr(),
175 void(T::*fp)(
const sensor_msgs::ImageConstPtr&,
176 const sensor_msgs::CameraInfoConstPtr&),
180 return subscribeCamera(base_topic, queue_size, boost::bind(fp, obj.get(), _1, _2), obj,
188 std::vector<std::string> getDeclaredTransports()
const;
193 std::vector<std::string> getLoadableTransports()
const;
Manages advertisements of multiple transport options on an Image topic.
boost::function< void(const SingleSubscriberPublisher &)> SubscriberStatusCallback
CameraSubscriber subscribeCamera(const std::string &base_topic, uint32_t queue_size, void(T::*fp)(const sensor_msgs::ImageConstPtr &, const sensor_msgs::CameraInfoConstPtr &), T *obj, const TransportHints &transport_hints=TransportHints())
Subscribe to a synchronized image & camera info topic pair, version for class member function with ba...
Manages advertisements for publishing camera images.
boost::function< void(const SingleSubscriberPublisher &)> SubscriberStatusCallback
Subscriber subscribe(const std::string &base_topic, uint32_t queue_size, void(T::*fp)(const sensor_msgs::ImageConstPtr &), T *obj, const TransportHints &transport_hints=TransportHints())
Subscribe to an image topic, version for class member function with bare pointer. ...
Manages a subscription callback on a specific topic that can be interpreted as an Image topic...
Manages a subscription callback on synchronized Image and CameraInfo topics.
boost::shared_ptr< Impl > ImplPtr
boost::weak_ptr< Impl > ImplWPtr
Subscriber subscribe(const std::string &base_topic, uint32_t queue_size, void(*fp)(const sensor_msgs::ImageConstPtr &), const TransportHints &transport_hints=TransportHints())
Subscribe to an image topic, version for bare function.
CameraSubscriber subscribeCamera(const std::string &base_topic, uint32_t queue_size, void(T::*fp)(const sensor_msgs::ImageConstPtr &, const sensor_msgs::CameraInfoConstPtr &), const boost::shared_ptr< T > &obj, const TransportHints &transport_hints=TransportHints())
Subscribe to a synchronized image & camera info topic pair, version for class member function with sh...
CameraSubscriber subscribeCamera(const std::string &base_topic, uint32_t queue_size, void(*fp)(const sensor_msgs::ImageConstPtr &, const sensor_msgs::CameraInfoConstPtr &), const TransportHints &transport_hints=TransportHints())
Subscribe to a synchronized image & camera info topic pair, version for bare function.
#define IMAGE_TRANSPORT_DECL
boost::function< void(const sensor_msgs::ImageConstPtr &, const sensor_msgs::CameraInfoConstPtr &)> Callback
Stores transport settings for an image topic subscription.
Advertise and subscribe to image topics.
Subscriber subscribe(const std::string &base_topic, uint32_t queue_size, void(T::*fp)(const sensor_msgs::ImageConstPtr &), const boost::shared_ptr< T > &obj, const TransportHints &transport_hints=TransportHints())
Subscribe to an image topic, version for class member function with shared_ptr.