18 #ifndef TFVISUALIZER_H 19 #define TFVISUALIZER_H 25 #include <boost/shared_ptr.hpp> 26 #include <opencv/cv.h> 27 #include <sensor_msgs/Image.h> 28 #include <sensor_msgs/image_encodings.h> 29 #include <sensor_msgs/CameraInfo.h> 30 #include <tf/transform_broadcaster.h> 31 #include <image_transport/image_transport.h> 32 #include <image_geometry/pinhole_camera_model.h> 33 #include <tf/transform_listener.h> 41 explicit TF_Visualizer(
const std::vector<std::string>& frame_ids, std::string camera_input_topic, std::string camera_output_topic);
42 void imageCb(
const sensor_msgs::ImageConstPtr& image_msg,
const sensor_msgs::CameraInfoConstPtr& info_msg);
48 image_transport::ImageTransport
it_;
49 image_transport::CameraSubscriber
sub_;
50 image_transport::Publisher
pub_;
62 #endif // TFVISUALIZER_H
image_transport::Publisher pub_
std::vector< std::string > frame_ids_
image_geometry::PinholeCameraModel cam_model_
void imageCb(const sensor_msgs::ImageConstPtr &image_msg, const sensor_msgs::CameraInfoConstPtr &info_msg)
std::string camera_input_topic_
image_transport::ImageTransport it_
tf::TransformListener tf_listener_
std::string camera_output_topic_
image_transport::CameraSubscriber sub_
TF_Visualizer(const std::vector< std::string > &frame_ids, std::string camera_input_topic, std::string camera_output_topic)