Image.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/Image.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_IMAGE_H
6 #define SENSOR_MSGS_MESSAGE_IMAGE_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 #include <std_msgs/Header.h>
19 
20 namespace sensor_msgs
21 {
22 template <class ContainerAllocator>
23 struct Image_
24 {
26 
28  : header()
29  , height(0)
30  , width(0)
31  , encoding()
32  , is_bigendian(0)
33  , step(0)
34  , data() {
35  }
36  Image_(const ContainerAllocator& _alloc)
37  : header(_alloc)
38  , height(0)
39  , width(0)
40  , encoding(_alloc)
41  , is_bigendian(0)
42  , step(0)
43  , data(_alloc) {
44  (void)_alloc;
45  }
46 
47 
48 
49  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
50  _header_type header;
51 
53  _height_type height;
54 
56  _width_type width;
57 
58  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _encoding_type;
59  _encoding_type encoding;
60 
62  _is_bigendian_type is_bigendian;
63 
65  _step_type step;
66 
67  typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _data_type;
68  _data_type data;
69 
70 
71 
72 
73  typedef std::shared_ptr< ::sensor_msgs::Image_<ContainerAllocator> > Ptr;
74  typedef std::shared_ptr< ::sensor_msgs::Image_<ContainerAllocator> const> ConstPtr;
75 
76 }; // struct Image_
77 
78 typedef ::sensor_msgs::Image_<std::allocator<void> > Image;
79 
80 typedef std::shared_ptr< ::sensor_msgs::Image > ImagePtr;
81 typedef std::shared_ptr< ::sensor_msgs::Image const> ImageConstPtr;
82 
83 // constants requiring out of line definition
84 
85 
86 
87 template<typename ContainerAllocator>
88 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::Image_<ContainerAllocator> & v)
89 {
91 return s;
92 }
93 
94 } // namespace sensor_msgs
95 
96 namespace rs2rosinternal
97 {
98 namespace message_traits
99 {
100 
101 
102 
103 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
104 // {'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']}
105 
106 // !!!!!!!!!!! ['__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']
107 
108 
109 
110 
111 template <class ContainerAllocator>
112 struct IsFixedSize< ::sensor_msgs::Image_<ContainerAllocator> >
113  : FalseType
114  { };
115 
116 template <class ContainerAllocator>
117 struct IsFixedSize< ::sensor_msgs::Image_<ContainerAllocator> const>
118  : FalseType
119  { };
120 
121 template <class ContainerAllocator>
122 struct IsMessage< ::sensor_msgs::Image_<ContainerAllocator> >
123  : TrueType
124  { };
125 
126 template <class ContainerAllocator>
127 struct IsMessage< ::sensor_msgs::Image_<ContainerAllocator> const>
128  : TrueType
129  { };
130 
131 template <class ContainerAllocator>
132 struct HasHeader< ::sensor_msgs::Image_<ContainerAllocator> >
133  : TrueType
134  { };
135 
136 template <class ContainerAllocator>
137 struct HasHeader< ::sensor_msgs::Image_<ContainerAllocator> const>
138  : TrueType
139  { };
140 
141 
142 template<class ContainerAllocator>
143 struct MD5Sum< ::sensor_msgs::Image_<ContainerAllocator> >
144 {
145  static const char* value()
146  {
147  return "060021388200f6f0f447d0fcd9c64743";
148  }
149 
150  static const char* value(const ::sensor_msgs::Image_<ContainerAllocator>&) { return value(); }
151  static const uint64_t static_value1 = 0x060021388200f6f0ULL;
152  static const uint64_t static_value2 = 0xf447d0fcd9c64743ULL;
153 };
154 
155 template<class ContainerAllocator>
156 struct DataType< ::sensor_msgs::Image_<ContainerAllocator> >
157 {
158  static const char* value()
159  {
160  return "sensor_msgs/Image";
161  }
162 
163  static const char* value(const ::sensor_msgs::Image_<ContainerAllocator>&) { return value(); }
164 };
165 
166 template<class ContainerAllocator>
167 struct Definition< ::sensor_msgs::Image_<ContainerAllocator> >
168 {
169  static const char* value()
170  {
171  return "# This message contains an uncompressed image\n\
172 # (0, 0) is at top-left corner of image\n\
173 #\n\
174 \n\
175 Header header # Header timestamp should be acquisition time of image\n\
176  # Header frame_id should be optical frame of camera\n\
177  # origin of frame should be optical center of cameara\n\
178  # +x should point to the right in the image\n\
179  # +y should point down in the image\n\
180  # +z should point into to plane of the image\n\
181  # If the frame_id here and the frame_id of the CameraInfo\n\
182  # message associated with the image conflict\n\
183  # the behavior is undefined\n\
184 \n\
185 uint32 height # image height, that is, number of rows\n\
186 uint32 width # image width, that is, number of columns\n\
187 \n\
188 # The legal values for encoding are in file src/image_encodings.cpp\n\
189 # If you want to standardize a new string format, join\n\
190 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
191 \n\
192 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\
193  # taken from the list of strings in include/sensor_msgs/image_encodings.h\n\
194 \n\
195 uint8 is_bigendian # is this data bigendian?\n\
196 uint32 step # Full row length in bytes\n\
197 uint8[] data # actual matrix data, size is (step * rows)\n\
198 \n\
199 ================================================================================\n\
200 MSG: std_msgs/Header\n\
201 # Standard metadata for higher-level stamped data types.\n\
202 # This is generally used to communicate timestamped data \n\
203 # in a particular coordinate frame.\n\
204 # \n\
205 # sequence ID: consecutively increasing ID \n\
206 uint32 seq\n\
207 #Two-integer timestamp that is expressed as:\n\
208 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
209 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
210 # time-handling sugar is provided by the client library\n\
211 time stamp\n\
212 #Frame this data is associated with\n\
213 # 0: no frame\n\
214 # 1: global frame\n\
215 string frame_id\n\
216 ";
217  }
218 
219  static const char* value(const ::sensor_msgs::Image_<ContainerAllocator>&) { return value(); }
220 };
221 
222 } // namespace message_traits
223 } // namespace rs2rosinternal
224 
225 namespace rs2rosinternal
226 {
227 namespace serialization
228 {
229 
230  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::Image_<ContainerAllocator> >
231  {
232  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
233  {
234  stream.next(m.header);
235  stream.next(m.height);
236  stream.next(m.width);
237  stream.next(m.encoding);
238  stream.next(m.is_bigendian);
239  stream.next(m.step);
240  stream.next(m.data);
241  }
242 
244  }; // struct Image_
245 
246 } // namespace serialization
247 } // namespace rs2rosinternal
248 
249 namespace rs2rosinternal
250 {
251 namespace message_operations
252 {
253 
254 template<class ContainerAllocator>
255 struct Printer< ::sensor_msgs::Image_<ContainerAllocator> >
256 {
257  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::Image_<ContainerAllocator>& v)
258  {
259  s << indent << "header: ";
260  s << std::endl;
262  s << indent << "height: ";
263  Printer<uint32_t>::stream(s, indent + " ", v.height);
264  s << indent << "width: ";
265  Printer<uint32_t>::stream(s, indent + " ", v.width);
266  s << indent << "encoding: ";
267  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.encoding);
268  s << indent << "is_bigendian: ";
269  Printer<uint8_t>::stream(s, indent + " ", v.is_bigendian);
270  s << indent << "step: ";
271  Printer<uint32_t>::stream(s, indent + " ", v.step);
272  s << indent << "data[]" << std::endl;
273  for (size_t i = 0; i < v.data.size(); ++i)
274  {
275  s << indent << " data[" << i << "]: ";
276  Printer<uint8_t>::stream(s, indent + " ", v.data[i]);
277  }
278  }
279 };
280 
281 } // namespace message_operations
282 } // namespace rs2rosinternal
283 
284 #endif // SENSOR_MSGS_MESSAGE_IMAGE_H
_width_type width
Definition: Image.h:56
_encoding_type encoding
Definition: Image.h:59
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLdouble s
std::shared_ptr< ::sensor_msgs::Image_< ContainerAllocator > const > ConstPtr
Definition: Image.h:74
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
::sensor_msgs::Image_< std::allocator< void > > Image
Definition: Image.h:78
static const char * value(const ::sensor_msgs::Image_< ContainerAllocator > &)
Definition: Image.h:219
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
uint32_t _width_type
Definition: Image.h:55
std::shared_ptr< ::sensor_msgs::Image const > ImageConstPtr
Definition: Image.h:81
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.
Image_(const ContainerAllocator &_alloc)
Definition: Image.h:36
Image_< ContainerAllocator > Type
Definition: Image.h:25
_data_type data
Definition: Image.h:68
unsigned int uint32_t
Definition: stdint.h:80
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
GLint GLsizei GLsizei height
#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.
uint32_t _step_type
Definition: Image.h:64
std::vector< uint8_t, typename ContainerAllocator::template rebind< uint8_t >::other > _data_type
Definition: Image.h:67
std::shared_ptr< ::sensor_msgs::Image_< ContainerAllocator > > Ptr
Definition: Image.h:73
_header_type header
Definition: Image.h:50
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::Image_< ContainerAllocator > &v)
Definition: Image.h:257
static const char * value(const ::sensor_msgs::Image_< ContainerAllocator > &)
Definition: Image.h:163
_height_type height
Definition: Image.h:53
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _encoding_type
Definition: Image.h:58
_is_bigendian_type is_bigendian
Definition: Image.h:62
int i
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: Image.h:49
Templated serialization class. Default implementation provides backwards compatibility with old messa...
static const char * value(const ::sensor_msgs::Image_< ContainerAllocator > &)
Definition: Image.h:150
_step_type step
Definition: Image.h:65
GLdouble v
Definition: parser.hpp:150
GLint GLsizei width
std::shared_ptr< ::sensor_msgs::Image > ImagePtr
Definition: Image.h:80
uint32_t _height_type
Definition: Image.h:52
uint8_t _is_bigendian_type
Definition: Image.h:61


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