3 #include <opencv2/highgui/highgui.hpp> 15 ROS_ERROR(
"Could not convert from '%s' to 'bgr8'.", msg->encoding.c_str());
19 int main(
int argc,
char **argv) {
22 cv::namedWindow(
"view");
23 cv::startWindowThread();
27 cv::destroyWindow(
"view");
CvImageConstPtr toCvShare(const sensor_msgs::ImageConstPtr &source, const std::string &encoding=std::string())
Subscriber subscribe(const std::string &base_topic, uint32_t queue_size, const boost::function< void(const sensor_msgs::ImageConstPtr &)> &callback, const ros::VoidPtr &tracked_object=ros::VoidPtr(), const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spin(Spinner &spinner)
void imageCallback(const sensor_msgs::ImageConstPtr &msg)
int main(int argc, char **argv)