Header.h
Go to the documentation of this file.
1 // Generated by gencpp from file std_msgs/Header.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef STD_MSGS_MESSAGE_HEADER_H
6 #define STD_MSGS_MESSAGE_HEADER_H
7 
8 #include <memory>
9 #include <string>
10 #include <vector>
11 #include <map>
12 
13 #include <ros/types.h>
14 #include <ros/serialization.h>
16 #include <ros/message_operations.h>
17 
18 
19 namespace std_msgs
20 {
21 template <class ContainerAllocator>
22 struct Header_
23 {
25 
27  : seq(0)
28  , stamp()
29  , frame_id() {
30  }
31  Header_(const ContainerAllocator& _alloc)
32  : seq(0)
33  , stamp()
34  , frame_id(_alloc) {
35  (void)_alloc;
36  }
37 
38 
39 
41  _seq_type seq;
42 
44  _stamp_type stamp;
45 
46  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _frame_id_type;
47  _frame_id_type frame_id;
48 
49 
50 
51 
52  typedef std::shared_ptr< ::std_msgs::Header_<ContainerAllocator> > Ptr;
53  typedef std::shared_ptr< ::std_msgs::Header_<ContainerAllocator> const> ConstPtr;
54 
55 }; // struct Header_
56 
57 typedef ::std_msgs::Header_<std::allocator<void> > Header;
58 
59 typedef std::shared_ptr< ::std_msgs::Header > HeaderPtr;
60 typedef std::shared_ptr< ::std_msgs::Header const> HeaderConstPtr;
61 
62 // constants requiring out of line definition
63 
64 
65 
66 template<typename ContainerAllocator>
67 std::ostream& operator<<(std::ostream& s, const ::std_msgs::Header_<ContainerAllocator> & v)
68 {
70 return s;
71 }
72 
73 } // namespace std_msgs
74 
75 namespace rs2rosinternal
76 {
77 namespace message_traits
78 {
79 
80 
81 
82 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
83 // {'std_msgs': ['/tmp/binarydeb/ros-kinetic-std-msgs-0.5.10/msg']}
84 
85 // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
86 
87 
88 
89 
90 template <class ContainerAllocator>
91 struct IsFixedSize< ::std_msgs::Header_<ContainerAllocator> >
92  : FalseType
93  { };
94 
95 template <class ContainerAllocator>
96 struct IsFixedSize< ::std_msgs::Header_<ContainerAllocator> const>
97  : FalseType
98  { };
99 
100 template <class ContainerAllocator>
101 struct IsMessage< ::std_msgs::Header_<ContainerAllocator> >
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
106 struct IsMessage< ::std_msgs::Header_<ContainerAllocator> const>
107  : TrueType
108  { };
109 
110 template <class ContainerAllocator>
111 struct HasHeader< ::std_msgs::Header_<ContainerAllocator> >
112  : FalseType
113  { };
114 
115 template <class ContainerAllocator>
116 struct HasHeader< ::std_msgs::Header_<ContainerAllocator> const>
117  : FalseType
118  { };
119 
120 
121 template<class ContainerAllocator>
122 struct MD5Sum< ::std_msgs::Header_<ContainerAllocator> >
123 {
124  static const char* value()
125  {
126  return "2176decaecbce78abc3b96ef049fabed";
127  }
128 
129  static const char* value(const ::std_msgs::Header_<ContainerAllocator>&) { return value(); }
130  static const uint64_t static_value1 = 0x2176decaecbce78aULL;
131  static const uint64_t static_value2 = 0xbc3b96ef049fabedULL;
132 };
133 
134 template<class ContainerAllocator>
135 struct DataType< ::std_msgs::Header_<ContainerAllocator> >
136 {
137  static const char* value()
138  {
139  return "std_msgs/Header";
140  }
141 
142  static const char* value(const ::std_msgs::Header_<ContainerAllocator>&) { return value(); }
143 };
144 
145 template<class ContainerAllocator>
146 struct Definition< ::std_msgs::Header_<ContainerAllocator> >
147 {
148  static const char* value()
149  {
150  return "# Standard metadata for higher-level stamped data types.\n\
151 # This is generally used to communicate timestamped data \n\
152 # in a particular coordinate frame.\n\
153 # \n\
154 # sequence ID: consecutively increasing ID \n\
155 uint32 seq\n\
156 #Two-integer timestamp that is expressed as:\n\
157 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
158 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
159 # time-handling sugar is provided by the client library\n\
160 time stamp\n\
161 #Frame this data is associated with\n\
162 # 0: no frame\n\
163 # 1: global frame\n\
164 string frame_id\n\
165 ";
166  }
167 
168  static const char* value(const ::std_msgs::Header_<ContainerAllocator>&) { return value(); }
169 };
170 
171 } // namespace message_traits
172 } // namespace rs2rosinternal
173 
174 namespace rs2rosinternal
175 {
176 namespace serialization
177 {
178 
179  template<class ContainerAllocator> struct Serializer< ::std_msgs::Header_<ContainerAllocator> >
180  {
181  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
182  {
183  stream.next(m.seq);
184  stream.next(m.stamp);
185  stream.next(m.frame_id);
186  }
187 
189  }; // struct Header_
190 
191 } // namespace serialization
192 } // namespace rs2rosinternal
193 
194 namespace rs2rosinternal
195 {
196 namespace message_operations
197 {
198 
199 template<class ContainerAllocator>
200 struct Printer< ::std_msgs::Header_<ContainerAllocator> >
201 {
202  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::std_msgs::Header_<ContainerAllocator>& v)
203  {
204  s << indent << "seq: ";
205  Printer<uint32_t>::stream(s, indent + " ", v.seq);
206  s << indent << "stamp: ";
207  Printer<rs2rosinternal::Time>::stream(s, indent + " ", v.stamp);
208  s << indent << "frame_id: ";
209  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.frame_id);
210  }
211 };
212 
213 } // namespace message_operations
214 } // namespace rs2rosinternal
215 
216 #endif // STD_MSGS_MESSAGE_HEADER_H
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLdouble s
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
uint32_t _seq_type
Definition: Header.h:40
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
std::shared_ptr< ::std_msgs::Header const > HeaderConstPtr
Definition: Header.h:60
GLsizei const GLchar *const * string
Specialize to provide the datatype for a message.
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
GLuint GLuint stream
Definition: glext.h:1790
Definition: context.cpp:29
static const char * value(const ::std_msgs::Header_< ContainerAllocator > &)
Definition: Header.h:142
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
Header_(const ContainerAllocator &_alloc)
Definition: Header.h:31
Stream base-class, provides common functionality for IStream and OStream.
std::shared_ptr< ::std_msgs::Header > HeaderPtr
Definition: Header.h:59
static void stream(Stream &s, const std::string &indent, const ::std_msgs::Header_< ContainerAllocator > &v)
Definition: Header.h:202
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _frame_id_type
Definition: Header.h:46
unsigned int uint32_t
Definition: stdint.h:80
_seq_type seq
Definition: Header.h:41
static const char * value(const ::std_msgs::Header_< ContainerAllocator > &)
Definition: Header.h:168
::std_msgs::Header_< std::allocator< void > > Header
Definition: Header.h:57
Time representation. May either represent wall clock time or ROS clock time.
Definition: time.h:177
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
Definition: Bool.h:19
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
static const char * value(const ::std_msgs::Header_< ContainerAllocator > &)
Definition: Header.h:129
std::shared_ptr< ::std_msgs::Header_< ContainerAllocator > const > ConstPtr
Definition: Header.h:53
rs2rosinternal::Time _stamp_type
Definition: Header.h:43
_frame_id_type frame_id
Definition: Header.h:47
_stamp_type stamp
Definition: Header.h:44
Templated serialization class. Default implementation provides backwards compatibility with old messa...
GLdouble v
Header_< ContainerAllocator > Type
Definition: Header.h:24
std::shared_ptr< ::std_msgs::Header_< ContainerAllocator > > Ptr
Definition: Header.h:52


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:16