Point Cloud Library (PCL)  1.7.1
PCLHeader.h
1 #ifndef PCL_ROSLIB_MESSAGE_HEADER_H
2 #define PCL_ROSLIB_MESSAGE_HEADER_H
3 
4 #ifdef USE_ROS
5  #error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated
6 #endif
7 
8 #include <string>
9 #include <vector>
10 #include <boost/shared_ptr.hpp>
11 #include <pcl/pcl_macros.h>
12 #include <ostream>
13 
14 namespace pcl
15 {
16  struct PCLHeader
17  {
18  PCLHeader (): seq (0), stamp (), frame_id ()
19  {}
20 
21  pcl::uint32_t seq;
22  pcl::uint64_t stamp;
23 
24  std::string frame_id;
25 
26  typedef boost::shared_ptr<PCLHeader> Ptr;
27  typedef boost::shared_ptr<PCLHeader const> ConstPtr;
28  }; // struct PCLHeader
29 
30  typedef boost::shared_ptr<PCLHeader> HeaderPtr;
31  typedef boost::shared_ptr<PCLHeader const> HeaderConstPtr;
32 
33  inline std::ostream& operator << (std::ostream& out, const PCLHeader &h)
34  {
35  out << "seq: " << h.seq;
36  out << " stamp: " << h.stamp;
37  out << " frame_id: " << h.frame_id << std::endl;
38  return (out);
39  }
40 
41 } // namespace pcl
42 
43 #endif // PCL_ROSLIB_MESSAGE_HEADER_H
44