Point Cloud Library (PCL)  1.7.2
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  /** \brief Sequence number */
22  pcl::uint32_t seq;
23  /** \brief A timestamp associated with the time when the data was acquired
24  *
25  * The value represents microseconds since 1970-01-01 00:00:00 (the UNIX epoch).
26  */
27  pcl::uint64_t stamp;
28  /** \brief Coordinate frame ID */
29  std::string frame_id;
30 
31  typedef boost::shared_ptr<PCLHeader> Ptr;
32  typedef boost::shared_ptr<PCLHeader const> ConstPtr;
33  }; // struct PCLHeader
34 
35  typedef boost::shared_ptr<PCLHeader> HeaderPtr;
36  typedef boost::shared_ptr<PCLHeader const> HeaderConstPtr;
37 
38  inline std::ostream& operator << (std::ostream& out, const PCLHeader &h)
39  {
40  out << "seq: " << h.seq;
41  out << " stamp: " << h.stamp;
42  out << " frame_id: " << h.frame_id << std::endl;
43  return (out);
44  }
45 
46 } // namespace pcl
47 
48 #endif // PCL_ROSLIB_MESSAGE_HEADER_H
49 
boost::shared_ptr< PCLHeader const > HeaderConstPtr
Definition: PCLHeader.h:36
boost::shared_ptr< PCLHeader > Ptr
Definition: PCLHeader.h:31
std::string frame_id
Coordinate frame ID.
Definition: PCLHeader.h:29
pcl::uint32_t seq
Sequence number.
Definition: PCLHeader.h:22
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
boost::shared_ptr< PCLHeader > HeaderPtr
Definition: PCLHeader.h:35
boost::shared_ptr< PCLHeader const > ConstPtr
Definition: PCLHeader.h:32
pcl::uint64_t stamp
A timestamp associated with the time when the data was acquired.
Definition: PCLHeader.h:27