node.h
Go to the documentation of this file.
00001 #ifndef __VISP_AUTO_TRACKER_NODE_H__
00002 #define __VISP_AUTO_TRACKER_NODE_H__
00003 #include "ros/ros.h"
00004 
00005 #include "visp/vpConfig.h"
00006 #include "libauto_tracker/tracking.h"
00007 #include <string>
00008 
00009 #include "message_filters/subscriber.h"
00010 #include "message_filters/time_synchronizer.h"
00011 #include "sensor_msgs/CameraInfo.h"
00012 #include "sensor_msgs/Image.h"
00013 #include "geometry_msgs/PoseStamped.h"
00014 #include "geometry_msgs/PoseWithCovarianceStamped.h"
00015 #include "std_msgs/Header.h"
00016 #include <sstream>
00017 
00018 namespace visp_auto_tracker{
00019         class Node{
00020         private:
00021                 boost::mutex lock_;
00022                 ros::NodeHandle n_;
00023                 unsigned long queue_size_;
00024                 std::string tracker_config_path_;
00025                 std::string model_description_;
00026                 std::string model_path_;
00027                 bool debug_display_;
00028 
00029                 vpImage<vpRGBa> I_;
00030                 std_msgs::Header image_header_;
00031                 bool got_image_;
00032                 vpCameraParameters cam_;
00033 
00034                 tracking::Tracker* t_;
00035 
00036 
00037             void waitForImage();
00038 
00039             void frameCallback(const sensor_msgs::ImageConstPtr& image, const sensor_msgs::CameraInfoConstPtr& cam_info);
00040 
00041         public:
00042                 Node();
00043                 void spin();
00044         };
00045 };
00046 #endif


visp_auto_tracker
Author(s): Filip Novotny, Fabien Spindler/Fabien.Spindler@inria.fr
autogenerated on Sat Dec 28 2013 17:46:16