sensor_message_gateway_nodelet.cpp
Go to the documentation of this file.
00001 
00060 #include "cob_people_detection/sensor_message_gateway_node.h"
00061 #include "cob_vision_utils/GlobalDefines.h"
00062 
00063 // ros
00064 #include <nodelet/nodelet.h>
00065 
00066 // point cloud
00067 #include <pcl/point_types.h>
00068 #include <pcl_ros/point_cloud.h>
00069 
00070 // boost
00071 #include <boost/bind.hpp>
00072 
00073 // this should really be in the implementation (.cpp file)
00074 #include <pluginlib/class_list_macros.h>
00075 
00076 namespace cob_people_detection
00077 {
00078 class SensorMessageGatewayNodelet: public nodelet::Nodelet
00079 {
00080 protected:
00081         ros::NodeHandle node_handle_;
00082         SensorMessageGatewayNode* sensor_message_gateway_;
00083 
00084 public:
00085         SensorMessageGatewayNodelet()
00086         {
00087                 sensor_message_gateway_ = 0;
00088         }
00089 
00090         ~SensorMessageGatewayNodelet()
00091         {
00092                 if (sensor_message_gateway_ != 0)
00093                         delete sensor_message_gateway_;
00094         }
00095 
00096         virtual void onInit()
00097         {
00098                 node_handle_ = getNodeHandle();
00099 
00100                 sensor_message_gateway_ = new SensorMessageGatewayNode(node_handle_);
00101         }
00102 };
00103 
00104 }
00105 // watch the capitalization carefully
00106 PLUGINLIB_DECLARE_CLASS(cob_people_detection, SensorMessageGatewayNodelet, cob_people_detection::SensorMessageGatewayNodelet, nodelet::Nodelet)


cob_people_detection
Author(s): Richard Bormann , Thomas Zwölfer
autogenerated on Fri Aug 28 2015 10:24:13