00001 #include <std_msgs/Header.h> 00002 #include <pcl/PCLHeader.h> 00003 #ifndef RGBDSLAM_MYHEADER 00004 #define RGBDSLAM_MYHEADER 00005 00007 class myHeader { 00008 public: 00009 myHeader(); 00010 myHeader(pcl::PCLHeader h); 00011 myHeader(std_msgs::Header rh); 00012 myHeader(uint32_t aseq, ros::Time astamp, std::string aframe_id); 00013 00014 std_msgs::Header toRosHeader(); 00015 void fromRosHeader(std_msgs::Header rh); 00016 00017 operator pcl::PCLHeader(); 00018 operator std_msgs::Header(); 00019 00020 uint32_t seq; 00021 ros::Time stamp; 00022 std::string frame_id; 00023 }; 00024 #endif