hole_detection_alg_node.h
Go to the documentation of this file.
00001 // Copyright (C) 2010-2011 Institut de Robotica i Informatica Industrial, CSIC-UPC.
00002 // Author 
00003 // All rights reserved.
00004 //
00005 // This file is part of iri-ros-pkg
00006 // iri-ros-pkg is free software: you can redistribute it and/or modify
00007 // it under the terms of the GNU Lesser General Public License as published by
00008 // the Free Software Foundation, either version 3 of the License, or
00009 // at your option) any later version.
00010 //
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public License
00017 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 // 
00019 // IMPORTANT NOTE: This code has been generated through a script from the 
00020 // iri_ros_scripts. Please do NOT delete any comments to guarantee the correctness
00021 // of the scripts. ROS topics can be easly add by using those scripts. Please
00022 // refer to the IRI wiki page for more information:
00023 // http://wikiri.upc.es/index.php/Robotics_Lab
00024 
00025 #ifndef _hole_detection_alg_node_h_
00026 #define _hole_detection_alg_node_h_
00027 
00028 #include <iri_base_algorithm/iri_base_algorithm.h>
00029 #include "hole_detection_alg.h"
00030 
00031 #include <ros/ros.h>
00032 //#include <ros/publisher.h>
00033 
00034 #include <pcl_ros/point_cloud.h>
00035 #include <pcl/ros/conversions.h>
00036 #include <pcl/point_types.h>
00037 
00038 
00039 
00040 // [publisher subscriber headers]
00041 #include <sensor_msgs/PointCloud2.h>
00042 #include <sensor_msgs/PointCloud.h>
00043 #include <sensor_msgs/point_cloud_conversion.h>
00044 // [service client headers]
00045 
00046 // [action server client headers]
00047 
00048 using namespace std;
00049 
00054 class HoleDetectionAlgNode : public algorithm_base::IriBaseAlgorithm<HoleDetectionAlgorithm>
00055 {
00056   private:
00057                 
00058                 int hole_min_p;
00059     float box_y_end,box_z_ini,box_y_ini,box_z_end,box_x,Xl,Xc,Xr,Y;
00060 //    bool L,C,R;
00061                 
00062     // [publisher attributes]
00063     ros::Publisher hole_obstacle_publisher_;
00064     sensor_msgs::PointCloud2 PointCloud2_msg_;
00065     sensor_msgs::PointCloud PointCloud_msg_;    
00066 
00067 
00068     ros::Publisher hole_all_publisher_;    
00069     sensor_msgs::PointCloud2 PointCloud2_msg_all;
00070     pcl::PointCloud<pcl::PointXYZ> cloud_in;
00071     pcl::PointCloud<pcl::PointXYZRGB> cloud_in_rgb;
00072         
00073     // [subscriber attributes]
00074     ros::Subscriber input_subscriber_;
00075     void input_callback(const sensor_msgs::PointCloud2::ConstPtr& msg);
00076     CMutex input_mutex_;
00077 
00078     // [service attributes]
00079 
00080     // [client attributes]
00081 
00082     // [action server attributes]
00083     HoleDetectionAlgorithm hole_detect;
00084     // [action client attributes]
00085 
00086   public:
00093     HoleDetectionAlgNode(void);
00094 
00101     ~HoleDetectionAlgNode(void);
00102 
00103   protected:
00116     void mainNodeThread(void);
00117 
00130     void node_config_update(Config &config, uint32_t level);
00131 
00138     void addNodeDiagnostics(void);
00139 
00140     // [diagnostic functions]
00141     
00142     // [test functions]
00143 };
00144 
00145 #endif


iri_hole_detection
Author(s): asantamaria
autogenerated on Fri Dec 6 2013 20:21:38