Point Cloud Library (PCL)  1.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Header.h
Go to the documentation of this file.
1 #ifndef PCL_ROSLIB_MESSAGE_HEADER_H
2 #define PCL_ROSLIB_MESSAGE_HEADER_H
3 #include <string>
4 #include <vector>
5 #include <boost/shared_ptr.hpp>
6 #include <pcl/pcl_macros.h>
7 #include <ostream>
8 
9 namespace std_msgs
10 {
11  struct Header
12  {
13  Header (): seq (0), stamp (), frame_id ()
14  {}
15 
16  pcl::uint32_t seq;
17  pcl::uint64_t stamp;
18 
19  std::string frame_id;
20 
21  typedef boost::shared_ptr<Header> Ptr;
22  typedef boost::shared_ptr<Header const> ConstPtr;
23  }; // struct Header
24 
25  typedef boost::shared_ptr<Header> HeaderPtr;
26  typedef boost::shared_ptr<Header const> HeaderConstPtr;
27 
28  inline std::ostream& operator << (std::ostream& out, const Header &h)
29  {
30  out << "seq: " << h.seq;
31  out << " stamp: " << h.stamp;
32  out << " frame_id: " << h.frame_id << std::endl;
33  return (out);
34  }
35 
36 } // namespace std_msgs
37 
38 #endif // PCL_ROSLIB_MESSAGE_HEADER_H
39