PCLHeader.h
Go to the documentation of this file.
00001 #ifndef PCL_ROSLIB_MESSAGE_HEADER_H
00002 #define PCL_ROSLIB_MESSAGE_HEADER_H
00003 
00004 #ifdef USE_ROS
00005    #error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated
00006 #endif 
00007 
00008 #include <string>
00009 #include <vector>
00010 #include <boost/shared_ptr.hpp>
00011 #include <pcl/pcl_macros.h>
00012 #include <ostream>
00013 
00014 namespace pcl
00015 {
00016   struct PCLHeader
00017   {
00018     PCLHeader (): seq (0), stamp (), frame_id ()
00019     {}
00020 
00021     pcl::uint32_t seq;
00022     pcl::uint64_t stamp;
00023 
00024     std::string frame_id;
00025 
00026     typedef boost::shared_ptr<PCLHeader> Ptr;
00027     typedef boost::shared_ptr<PCLHeader const> ConstPtr;
00028   }; // struct PCLHeader
00029 
00030   typedef boost::shared_ptr<PCLHeader> HeaderPtr;
00031   typedef boost::shared_ptr<PCLHeader const> HeaderConstPtr;
00032 
00033   inline std::ostream& operator << (std::ostream& out, const PCLHeader &h)
00034   {
00035     out << "seq: " << h.seq;
00036     out << " stamp: " << h.stamp;
00037     out << " frame_id: " << h.frame_id << std::endl;
00038     return (out);
00039   }
00040 
00041 } // namespace pcl
00042 
00043 #endif // PCL_ROSLIB_MESSAGE_HEADER_H
00044 


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:28:14