00001 #ifndef _ndescs2disk_h_ 00002 #define _ndescs2disk_h_ 00003 00004 #include "ros/this_node.h" 00005 #include "ros/names.h" 00006 #include "ros/node_handle.h" 00007 #include "ros/rate.h" 00008 00009 //#include "mutex.h" 00010 00011 #include "normal_descriptor_alg.h" 00012 #include <normal_descriptor_node/ndesc_pc.h> 00013 #include <normal_descriptor_node/ndesc.h> 00014 #include <string> 00015 00016 class Ndescs2Disk 00017 { 00018 private: 00019 //CMutex execution_mutex; 00020 std::string prefix_out_; 00021 ros::NodeHandle node_handle_; 00022 int counter_; 00023 bool keep_nan_points_; 00024 //int max_frames_; 00025 void write_point(FILE *pf, const normal_descriptor_node::ndesc &point); 00026 00027 // [publisher attributes] 00028 // [subscriber attributes] 00029 ros::Subscriber points_subscriber_; 00030 void points_callback(const normal_descriptor_node::ndesc_pc::ConstPtr& ndesc_pc_msg); 00031 // [service attributes] 00032 // [client attributes] 00033 // [action server attributes] 00034 // [action client attributes] 00035 public: 00053 Ndescs2Disk(char *pref_out);//, int max_frames); 00067 }; 00068 #endif 00069 00070 00071