PointField.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/PointField.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_POINTFIELD_H
6 #define SENSOR_MSGS_MESSAGE_POINTFIELD_H
7 
8 
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 sensor_msgs
20 {
21 template <class ContainerAllocator>
23 {
25 
27  : name()
28  , offset(0)
29  , datatype(0)
30  , count(0) {
31  }
32  PointField_(const ContainerAllocator& _alloc)
33  : name(_alloc)
34  , offset(0)
35  , datatype(0)
36  , count(0) {
37  (void)_alloc;
38  }
39 
40 
41 
42  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
43  _name_type name;
44 
46  _offset_type offset;
47 
49  _datatype_type datatype;
50 
52  _count_type count;
53 
54 
55  enum { INT8 = 1u };
56  enum { UINT8 = 2u };
57  enum { INT16 = 3u };
58  enum { UINT16 = 4u };
59  enum { INT32 = 5u };
60  enum { UINT32 = 6u };
61  enum { FLOAT32 = 7u };
62  enum { FLOAT64 = 8u };
63 
64 
67 
68 }; // struct PointField_
69 
70 typedef ::sensor_msgs::PointField_<std::allocator<void> > PointField;
71 
74 
75 // constants requiring out of line definition
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 
93 
94 
95 template<typename ContainerAllocator>
96 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::PointField_<ContainerAllocator> & v)
97 {
99 return s;
100 }
101 
102 } // namespace sensor_msgs
103 
104 namespace rs2rosinternal
105 {
106 namespace message_traits
107 {
108 
109 
110 
111 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
112 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'sensor_msgs': ['/tmp/binarydeb/ros-kinetic-sensor-msgs-1.12.5/msg']}
113 
114 // !!!!!!!!!!! ['__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']
115 
116 
117 
118 
119 template <class ContainerAllocator>
120 struct IsFixedSize< ::sensor_msgs::PointField_<ContainerAllocator> >
121  : FalseType
122  { };
123 
124 template <class ContainerAllocator>
125 struct IsFixedSize< ::sensor_msgs::PointField_<ContainerAllocator> const>
126  : FalseType
127  { };
128 
129 template <class ContainerAllocator>
130 struct IsMessage< ::sensor_msgs::PointField_<ContainerAllocator> >
131  : TrueType
132  { };
133 
134 template <class ContainerAllocator>
135 struct IsMessage< ::sensor_msgs::PointField_<ContainerAllocator> const>
136  : TrueType
137  { };
138 
139 template <class ContainerAllocator>
140 struct HasHeader< ::sensor_msgs::PointField_<ContainerAllocator> >
141  : FalseType
142  { };
143 
144 template <class ContainerAllocator>
145 struct HasHeader< ::sensor_msgs::PointField_<ContainerAllocator> const>
146  : FalseType
147  { };
148 
149 
150 template<class ContainerAllocator>
151 struct MD5Sum< ::sensor_msgs::PointField_<ContainerAllocator> >
152 {
153  static const char* value()
154  {
155  return "268eacb2962780ceac86cbd17e328150";
156  }
157 
158  static const char* value(const ::sensor_msgs::PointField_<ContainerAllocator>&) { return value(); }
159  static const uint64_t static_value1 = 0x268eacb2962780ceULL;
160  static const uint64_t static_value2 = 0xac86cbd17e328150ULL;
161 };
162 
163 template<class ContainerAllocator>
164 struct DataType< ::sensor_msgs::PointField_<ContainerAllocator> >
165 {
166  static const char* value()
167  {
168  return "sensor_msgs/PointField";
169  }
170 
171  static const char* value(const ::sensor_msgs::PointField_<ContainerAllocator>&) { return value(); }
172 };
173 
174 template<class ContainerAllocator>
175 struct Definition< ::sensor_msgs::PointField_<ContainerAllocator> >
176 {
177  static const char* value()
178  {
179  return "# This message holds the description of one point entry in the\n\
180 # PointCloud2 message format.\n\
181 uint8 INT8 = 1\n\
182 uint8 UINT8 = 2\n\
183 uint8 INT16 = 3\n\
184 uint8 UINT16 = 4\n\
185 uint8 INT32 = 5\n\
186 uint8 UINT32 = 6\n\
187 uint8 FLOAT32 = 7\n\
188 uint8 FLOAT64 = 8\n\
189 \n\
190 string name # Name of field\n\
191 uint32 offset # Offset from start of point struct\n\
192 uint8 datatype # Datatype enumeration, see above\n\
193 uint32 count # How many elements in the field\n\
194 ";
195  }
196 
197  static const char* value(const ::sensor_msgs::PointField_<ContainerAllocator>&) { return value(); }
198 };
199 
200 } // namespace message_traits
201 } // namespace rs2rosinternal
202 
203 namespace rs2rosinternal
204 {
205 namespace serialization
206 {
207 
208  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::PointField_<ContainerAllocator> >
209  {
210  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
211  {
212  stream.next(m.name);
213  stream.next(m.offset);
214  stream.next(m.datatype);
215  stream.next(m.count);
216  }
217 
219  }; // struct PointField_
220 
221 } // namespace serialization
222 } // namespace rs2rosinternal
223 
224 namespace rs2rosinternal
225 {
226 namespace message_operations
227 {
228 
229 template<class ContainerAllocator>
230 struct Printer< ::sensor_msgs::PointField_<ContainerAllocator> >
231 {
232  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::PointField_<ContainerAllocator>& v)
233  {
234  s << indent << "name: ";
235  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
236  s << indent << "offset: ";
237  Printer<uint32_t>::stream(s, indent + " ", v.offset);
238  s << indent << "datatype: ";
239  Printer<uint8_t>::stream(s, indent + " ", v.datatype);
240  s << indent << "count: ";
241  Printer<uint32_t>::stream(s, indent + " ", v.count);
242  }
243 };
244 
245 } // namespace message_operations
246 } // namespace rs2rosinternal
247 
248 #endif // SENSOR_MSGS_MESSAGE_POINTFIELD_H
boost::shared_ptr< ::sensor_msgs::PointField const > PointFieldConstPtr
Definition: PointField.h:73
_datatype_type datatype
Definition: PointField.h:49
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
GLuint const GLchar * name
PointField_< ContainerAllocator > Type
Definition: PointField.h:24
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
boost::shared_ptr< ::sensor_msgs::PointField_< ContainerAllocator > const > ConstPtr
Definition: PointField.h:66
static const char * value(const ::sensor_msgs::PointField_< ContainerAllocator > &)
Definition: PointField.h:158
GLdouble s
const GLfloat * m
Definition: glext.h:6814
boost::shared_ptr< ::sensor_msgs::PointField > PointFieldPtr
Definition: PointField.h:72
Specialize to provide the md5sum for a message.
static const char * value(const ::sensor_msgs::PointField_< ContainerAllocator > &)
Definition: PointField.h:171
static const char * value(const ::sensor_msgs::PointField_< ContainerAllocator > &)
Definition: PointField.h:197
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
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
unsigned char uint8_t
Definition: stdint.h:78
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
Stream base-class, provides common functionality for IStream and OStream.
unsigned int uint32_t
Definition: stdint.h:80
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
boost::shared_ptr< ::sensor_msgs::PointField_< ContainerAllocator > > Ptr
Definition: PointField.h:65
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _name_type
Definition: PointField.h:42
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::PointField_< ContainerAllocator > &v)
Definition: PointField.h:232
GLint GLsizei count
Templated serialization class. Default implementation provides backwards compatibility with old messa...
::sensor_msgs::PointField_< std::allocator< void > > PointField
Definition: PointField.h:70
GLdouble v
PointField_(const ContainerAllocator &_alloc)
Definition: PointField.h:32
GLintptr offset


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