stream_info.h
Go to the documentation of this file.
1 // Generated by gencpp from file realsense_legacy_msgs/stream_info.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef realsense_legacy_msgs_MESSAGE_STREAM_INFO_H
6 #define realsense_legacy_msgs_MESSAGE_STREAM_INFO_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 #include <sensor_msgs/CameraInfo.h>
20 
21 namespace realsense_legacy_msgs
22 {
23 template <class ContainerAllocator>
25 {
27 
29  : stream_type()
30  , fps(0)
31  , camera_info()
33  , width(0)
34  , height(0)
35  , encoding() {
36  }
37  stream_info_(const ContainerAllocator& _alloc)
38  : stream_type(_alloc)
39  , fps(0)
40  , camera_info(_alloc)
41  , stream_extrinsics(_alloc)
42  , width(0)
43  , height(0)
44  , encoding(_alloc) {
45  (void)_alloc;
46  }
47 
48 
49 
50  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _stream_type_type;
51  _stream_type_type stream_type;
52 
54  _fps_type fps;
55 
56  typedef ::sensor_msgs::CameraInfo_<ContainerAllocator> _camera_info_type;
57  _camera_info_type camera_info;
58 
59  typedef ::realsense_legacy_msgs::stream_extrinsics_<ContainerAllocator> _stream_extrinsics_type;
60  _stream_extrinsics_type stream_extrinsics;
61 
63  _width_type width;
64 
66  _height_type height;
67 
68  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _encoding_type;
69  _encoding_type encoding;
70 
71 
72 
73 
74  typedef std::shared_ptr< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> > Ptr;
75  typedef std::shared_ptr< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> const> ConstPtr;
76 
77 }; // struct stream_info_
78 
79 typedef ::realsense_legacy_msgs::stream_info_<std::allocator<void> > stream_info;
80 
81 typedef std::shared_ptr< ::realsense_legacy_msgs::stream_info > stream_infoPtr;
82 typedef std::shared_ptr< ::realsense_legacy_msgs::stream_info const> stream_infoConstPtr;
83 
84 // constants requiring out of line definition
85 
86 
87 
88 template<typename ContainerAllocator>
89 std::ostream& operator<<(std::ostream& s, const ::realsense_legacy_msgs::stream_info_<ContainerAllocator> & v)
90 {
92 return s;
93 }
94 
95 } // namespace realsense_legacy_msgs
96 
97 namespace rs2rosinternal
98 {
99 namespace message_traits
100 {
101 
102 
103 
104 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
105 // {'sensor_msgs': ['/opt/ros/kinetic/share/sensor_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'realsense_legacy_msgs': ['/home/administrator/ros/realsense_sdk_internal/sdk_internal/tools/realsense_legacy_msgs_generator/msg']}
106 
107 // !!!!!!!!!!! ['__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']
108 
109 
110 
111 
112 template <class ContainerAllocator>
113 struct IsFixedSize< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> >
114  : FalseType
115  { };
116 
117 template <class ContainerAllocator>
118 struct IsFixedSize< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> const>
119  : FalseType
120  { };
121 
122 template <class ContainerAllocator>
123 struct IsMessage< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> >
124  : TrueType
125  { };
126 
127 template <class ContainerAllocator>
128 struct IsMessage< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> const>
129  : TrueType
130  { };
131 
132 template <class ContainerAllocator>
133 struct HasHeader< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> >
134  : FalseType
135  { };
136 
137 template <class ContainerAllocator>
138 struct HasHeader< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> const>
139  : FalseType
140  { };
141 
142 
143 template<class ContainerAllocator>
144 struct MD5Sum< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> >
145 {
146  static const char* value()
147  {
148  return "bb1936d2159196ee8329f39f35277eb4";
149  }
150 
151  static const char* value(const ::realsense_legacy_msgs::stream_info_<ContainerAllocator>&) { return value(); }
152  static const uint64_t static_value1 = 0xbb1936d2159196eeULL;
153  static const uint64_t static_value2 = 0x8329f39f35277eb4ULL;
154 };
155 
156 template<class ContainerAllocator>
157 struct DataType< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> >
158 {
159  static const char* value()
160  {
161  return "realsense_legacy_msgs/stream_info";
162  }
163 
164  static const char* value(const ::realsense_legacy_msgs::stream_info_<ContainerAllocator>&) { return value(); }
165 };
166 
167 template<class ContainerAllocator>
168 struct Definition< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> >
169 {
170  static const char* value()
171  {
172  return "string stream_type\n\
173 uint32 fps\n\
174 sensor_msgs/CameraInfo camera_info\n\
175 realsense_legacy_msgs/stream_extrinsics stream_extrinsics\n\
176 uint32 width\n\
177 uint32 height \n\
178 string encoding\n\
179 \n\
180 ================================================================================\n\
181 MSG: sensor_msgs/CameraInfo\n\
182 # This message defines meta information for a camera. It should be in a\n\
183 # camera namespace on topic \"camera_info\" and accompanied by up to five\n\
184 # image topics named:\n\
185 #\n\
186 # image_raw - raw data from the camera driver, possibly Bayer encoded\n\
187 # image - monochrome, distorted\n\
188 # image_color - color, distorted\n\
189 # image_rect - monochrome, rectified\n\
190 # image_rect_color - color, rectified\n\
191 #\n\
192 # The image_pipeline contains packages (image_proc, stereo_image_proc)\n\
193 # for producing the four processed image topics from image_raw and\n\
194 # camera_info. The meaning of the camera parameters are described in\n\
195 # detail at http://www.ros.org/wiki/image_pipeline/CameraInfo.\n\
196 #\n\
197 # The image_geometry package provides a user-friendly interface to\n\
198 # common operations using this meta information. If you want to, e.g.,\n\
199 # project a 3d point into image coordinates, we strongly recommend\n\
200 # using image_geometry.\n\
201 #\n\
202 # If the camera is uncalibrated, the matrices D, K, R, P should be left\n\
203 # zeroed out. In particular, clients may assume that K[0] == 0.0\n\
204 # indicates an uncalibrated camera.\n\
205 \n\
206 #######################################################################\n\
207 # Image acquisition info #\n\
208 #######################################################################\n\
209 \n\
210 # Time of image acquisition, camera coordinate frame ID\n\
211 Header header # Header timestamp should be acquisition time of image\n\
212  # Header frame_id should be optical frame of camera\n\
213  # origin of frame should be optical center of camera\n\
214  # +x should point to the right in the image\n\
215  # +y should point down in the image\n\
216  # +z should point into the plane of the image\n\
217 \n\
218 \n\
219 #######################################################################\n\
220 # Calibration Parameters #\n\
221 #######################################################################\n\
222 # These are fixed during camera calibration. Their values will be the #\n\
223 # same in all messages until the camera is recalibrated. Note that #\n\
224 # self-calibrating systems may \"recalibrate\" frequently. #\n\
225 # #\n\
226 # The internal parameters can be used to warp a raw (distorted) image #\n\
227 # to: #\n\
228 # 1. An undistorted image (requires D and K) #\n\
229 # 2. A rectified image (requires D, K, R) #\n\
230 # The projection matrix P projects 3D points into the rectified image.#\n\
231 #######################################################################\n\
232 \n\
233 # The image dimensions with which the camera was calibrated. Normally\n\
234 # this will be the full camera resolution in pixels.\n\
235 uint32 height\n\
236 uint32 width\n\
237 \n\
238 # The distortion model used. Supported models are listed in\n\
239 # sensor_msgs/distortion_models.h. For most cameras, \"plumb_bob\" - a\n\
240 # simple model of radial and tangential distortion - is sufficient.\n\
241 string distortion_model\n\
242 \n\
243 # The distortion parameters, size depending on the distortion model.\n\
244 # For \"plumb_bob\", the 5 parameters are: (k1, k2, t1, t2, k3).\n\
245 float64[] D\n\
246 \n\
247 # Intrinsic camera matrix for the raw (distorted) images.\n\
248 # [fx 0 cx]\n\
249 # K = [ 0 fy cy]\n\
250 # [ 0 0 1]\n\
251 # Projects 3D points in the camera coordinate frame to 2D pixel\n\
252 # coordinates using the focal lengths (fx, fy) and principal point\n\
253 # (cx, cy).\n\
254 float64[9] K # 3x3 row-major matrix\n\
255 \n\
256 # Rectification matrix (stereo cameras only)\n\
257 # A rotation matrix aligning the camera coordinate system to the ideal\n\
258 # stereo image plane so that epipolar lines in both stereo images are\n\
259 # parallel.\n\
260 float64[9] R # 3x3 row-major matrix\n\
261 \n\
262 # Projection/camera matrix\n\
263 # [fx' 0 cx' Tx]\n\
264 # P = [ 0 fy' cy' Ty]\n\
265 # [ 0 0 1 0]\n\
266 # By convention, this matrix specifies the intrinsic (camera) matrix\n\
267 # of the processed (rectified) image. That is, the left 3x3 portion\n\
268 # is the normal camera intrinsic matrix for the rectified image.\n\
269 # It projects 3D points in the camera coordinate frame to 2D pixel\n\
270 # coordinates using the focal lengths (fx', fy') and principal point\n\
271 # (cx', cy') - these may differ from the values in K.\n\
272 # For monocular cameras, Tx = Ty = 0. Normally, monocular cameras will\n\
273 # also have R = the identity and P[1:3,1:3] = K.\n\
274 # For a stereo pair, the fourth column [Tx Ty 0]' is related to the\n\
275 # position of the optical center of the second camera in the first\n\
276 # camera's frame. We assume Tz = 0 so both cameras are in the same\n\
277 # stereo image plane. The first camera always has Tx = Ty = 0. For\n\
278 # the right (second) camera of a horizontal stereo pair, Ty = 0 and\n\
279 # Tx = -fx' * B, where B is the baseline between the cameras.\n\
280 # Given a 3D point [X Y Z]', the projection (x, y) of the point onto\n\
281 # the rectified image is given by:\n\
282 # [u v w]' = P * [X Y Z 1]'\n\
283 # x = u / w\n\
284 # y = v / w\n\
285 # This holds for both images of a stereo pair.\n\
286 float64[12] P # 3x4 row-major matrix\n\
287 \n\
288 \n\
289 #######################################################################\n\
290 # Operational Parameters #\n\
291 #######################################################################\n\
292 # These define the image region actually captured by the camera #\n\
293 # driver. Although they affect the geometry of the output image, they #\n\
294 # may be changed freely without recalibrating the camera. #\n\
295 #######################################################################\n\
296 \n\
297 # Binning refers here to any camera setting which combines rectangular\n\
298 # neighborhoods of pixels into larger \"super-pixels.\" It reduces the\n\
299 # resolution of the output image to\n\
300 # (width / binning_x) x (height / binning_y).\n\
301 # The default values binning_x = binning_y = 0 is considered the same\n\
302 # as binning_x = binning_y = 1 (no subsampling).\n\
303 uint32 binning_x\n\
304 uint32 binning_y\n\
305 \n\
306 # Region of interest (subwindow of full camera resolution), given in\n\
307 # full resolution (unbinned) image coordinates. A particular ROI\n\
308 # always denotes the same window of pixels on the camera sensor,\n\
309 # regardless of binning settings.\n\
310 # The default setting of roi (all values 0) is considered the same as\n\
311 # full resolution (roi.width = width, roi.height = height).\n\
312 RegionOfInterest roi\n\
313 \n\
314 ================================================================================\n\
315 MSG: std_msgs/Header\n\
316 # Standard metadata for higher-level stamped data types.\n\
317 # This is generally used to communicate timestamped data \n\
318 # in a particular coordinate frame.\n\
319 # \n\
320 # sequence ID: consecutively increasing ID \n\
321 uint32 seq\n\
322 #Two-integer timestamp that is expressed as:\n\
323 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
324 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
325 # time-handling sugar is provided by the client library\n\
326 time stamp\n\
327 #Frame this data is associated with\n\
328 # 0: no frame\n\
329 # 1: global frame\n\
330 string frame_id\n\
331 \n\
332 ================================================================================\n\
333 MSG: sensor_msgs/RegionOfInterest\n\
334 # This message is used to specify a region of interest within an image.\n\
335 #\n\
336 # When used to specify the ROI setting of the camera when the image was\n\
337 # taken, the height and width fields should either match the height and\n\
338 # width fields for the associated image; or height = width = 0\n\
339 # indicates that the full resolution image was captured.\n\
340 \n\
341 uint32 x_offset # Leftmost pixel of the ROI\n\
342  # (0 if the ROI includes the left edge of the image)\n\
343 uint32 y_offset # Topmost pixel of the ROI\n\
344  # (0 if the ROI includes the top edge of the image)\n\
345 uint32 height # Height of ROI\n\
346 uint32 width # Width of ROI\n\
347 \n\
348 # True if a distinct rectified ROI should be calculated from the \"raw\"\n\
349 # ROI in this message. Typically this should be False if the full image\n\
350 # is captured (ROI not used), and True if a subwindow is captured (ROI\n\
351 # used).\n\
352 bool do_rectify\n\
353 \n\
354 ================================================================================\n\
355 MSG: realsense_legacy_msgs/stream_extrinsics\n\
356 realsense_legacy_msgs/extrinsics extrinsics\n\
357 uint64 reference_point_id\n\
358 \n\
359 ================================================================================\n\
360 MSG: realsense_legacy_msgs/extrinsics\n\
361 float32[9] rotation # column-major 3x3 rotation matrix \n\
362 float32[3] translation # 3 element translation vector, in meters \n\
363 ";
364  }
365 
366  static const char* value(const ::realsense_legacy_msgs::stream_info_<ContainerAllocator>&) { return value(); }
367 };
368 
369 } // namespace message_traits
370 } // namespace rs2rosinternal
371 
372 namespace rs2rosinternal
373 {
374 namespace serialization
375 {
376 
377  template<class ContainerAllocator> struct Serializer< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> >
378  {
379  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
380  {
381  stream.next(m.stream_type);
382  stream.next(m.fps);
383  stream.next(m.camera_info);
384  stream.next(m.stream_extrinsics);
385  stream.next(m.width);
386  stream.next(m.height);
387  stream.next(m.encoding);
388  }
389 
391  }; // struct stream_info_
392 
393 } // namespace serialization
394 } // namespace rs2rosinternal
395 
396 namespace rs2rosinternal
397 {
398 namespace message_operations
399 {
400 
401 template<class ContainerAllocator>
402 struct Printer< ::realsense_legacy_msgs::stream_info_<ContainerAllocator> >
403 {
404  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::realsense_legacy_msgs::stream_info_<ContainerAllocator>& v)
405  {
406  s << indent << "stream_type: ";
407  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.stream_type);
408  s << indent << "fps: ";
409  Printer<uint32_t>::stream(s, indent + " ", v.fps);
410  s << indent << "camera_info: ";
411  s << std::endl;
412  Printer< ::sensor_msgs::CameraInfo_<ContainerAllocator> >::stream(s, indent + " ", v.camera_info);
413  s << indent << "stream_extrinsics: ";
414  s << std::endl;
416  s << indent << "width: ";
417  Printer<uint32_t>::stream(s, indent + " ", v.width);
418  s << indent << "height: ";
419  Printer<uint32_t>::stream(s, indent + " ", v.height);
420  s << indent << "encoding: ";
421  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.encoding);
422  }
423 };
424 
425 } // namespace message_operations
426 } // namespace rs2rosinternal
427 
428 #endif // realsense_legacy_msgs_MESSAGE_STREAM_INFO_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
::sensor_msgs::CameraInfo_< ContainerAllocator > _camera_info_type
Definition: stream_info.h:56
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
static const char * value(const ::realsense_legacy_msgs::stream_info_< ContainerAllocator > &)
Definition: stream_info.h:151
stream_info_(const ContainerAllocator &_alloc)
Definition: stream_info.h:37
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
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
static const char * value(const ::realsense_legacy_msgs::stream_info_< ContainerAllocator > &)
Definition: stream_info.h:366
GLint GLsizei GLsizei height
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _encoding_type
Definition: stream_info.h:68
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
static void stream(Stream &s, const std::string &indent, const ::realsense_legacy_msgs::stream_info_< ContainerAllocator > &v)
Definition: stream_info.h:404
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
stream_info_< ContainerAllocator > Type
Definition: stream_info.h:26
_stream_extrinsics_type stream_extrinsics
Definition: stream_info.h:60
std::shared_ptr< ::realsense_legacy_msgs::stream_info > stream_infoPtr
Definition: stream_info.h:81
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _stream_type_type
Definition: stream_info.h:50
std::shared_ptr< ::realsense_legacy_msgs::stream_info_< ContainerAllocator > const > ConstPtr
Definition: stream_info.h:75
static const char * value(const ::realsense_legacy_msgs::stream_info_< ContainerAllocator > &)
Definition: stream_info.h:164
Templated serialization class. Default implementation provides backwards compatibility with old messa...
std::shared_ptr< ::realsense_legacy_msgs::stream_info_< ContainerAllocator > > Ptr
Definition: stream_info.h:74
std::shared_ptr< ::realsense_legacy_msgs::stream_info const > stream_infoConstPtr
Definition: stream_info.h:82
::realsense_legacy_msgs::stream_extrinsics_< ContainerAllocator > _stream_extrinsics_type
Definition: stream_info.h:59
GLdouble v
::realsense_legacy_msgs::stream_info_< std::allocator< void > > stream_info
Definition: stream_info.h:79
GLint GLsizei width


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