CompressedImage.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/CompressedImage.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_COMPRESSEDIMAGE_H
6 #define SENSOR_MSGS_MESSAGE_COMPRESSEDIMAGE_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>
24 {
26 
28  : header()
29  , format()
30  , data() {
31  }
32  CompressedImage_(const ContainerAllocator& _alloc)
33  : header(_alloc)
34  , format(_alloc)
35  , data(_alloc) {
36  (void)_alloc;
37  }
38 
39 
40 
41  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
42  _header_type header;
43 
44  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _format_type;
45  _format_type format;
46 
47  typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _data_type;
48  _data_type data;
49 
50 
51 
52 
53  typedef std::shared_ptr< ::sensor_msgs::CompressedImage_<ContainerAllocator> > Ptr;
54  typedef std::shared_ptr< ::sensor_msgs::CompressedImage_<ContainerAllocator> const> ConstPtr;
55 
56 }; // struct CompressedImage_
57 
58 typedef ::sensor_msgs::CompressedImage_<std::allocator<void> > CompressedImage;
59 
60 typedef std::shared_ptr< ::sensor_msgs::CompressedImage > CompressedImagePtr;
61 typedef std::shared_ptr< ::sensor_msgs::CompressedImage const> CompressedImageConstPtr;
62 
63 // constants requiring out of line definition
64 
65 
66 
67 template<typename ContainerAllocator>
68 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::CompressedImage_<ContainerAllocator> & v)
69 {
71 return s;
72 }
73 
74 } // namespace sensor_msgs
75 
76 namespace rs2rosinternal
77 {
78 namespace message_traits
79 {
80 
81 
82 
83 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
84 // {'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']}
85 
86 // !!!!!!!!!!! ['__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']
87 
88 
89 
90 
91 template <class ContainerAllocator>
92 struct IsFixedSize< ::sensor_msgs::CompressedImage_<ContainerAllocator> >
93  : FalseType
94  { };
95 
96 template <class ContainerAllocator>
97 struct IsFixedSize< ::sensor_msgs::CompressedImage_<ContainerAllocator> const>
98  : FalseType
99  { };
100 
101 template <class ContainerAllocator>
102 struct IsMessage< ::sensor_msgs::CompressedImage_<ContainerAllocator> >
103  : TrueType
104  { };
105 
106 template <class ContainerAllocator>
107 struct IsMessage< ::sensor_msgs::CompressedImage_<ContainerAllocator> const>
108  : TrueType
109  { };
110 
111 template <class ContainerAllocator>
112 struct HasHeader< ::sensor_msgs::CompressedImage_<ContainerAllocator> >
113  : TrueType
114  { };
115 
116 template <class ContainerAllocator>
117 struct HasHeader< ::sensor_msgs::CompressedImage_<ContainerAllocator> const>
118  : TrueType
119  { };
120 
121 
122 template<class ContainerAllocator>
123 struct MD5Sum< ::sensor_msgs::CompressedImage_<ContainerAllocator> >
124 {
125  static const char* value()
126  {
127  return "8f7a12909da2c9d3332d540a0977563f";
128  }
129 
130  static const char* value(const ::sensor_msgs::CompressedImage_<ContainerAllocator>&) { return value(); }
131  static const uint64_t static_value1 = 0x8f7a12909da2c9d3ULL;
132  static const uint64_t static_value2 = 0x332d540a0977563fULL;
133 };
134 
135 template<class ContainerAllocator>
136 struct DataType< ::sensor_msgs::CompressedImage_<ContainerAllocator> >
137 {
138  static const char* value()
139  {
140  return "sensor_msgs/CompressedImage";
141  }
142 
143  static const char* value(const ::sensor_msgs::CompressedImage_<ContainerAllocator>&) { return value(); }
144 };
145 
146 template<class ContainerAllocator>
147 struct Definition< ::sensor_msgs::CompressedImage_<ContainerAllocator> >
148 {
149  static const char* value()
150  {
151  return "# This message contains a compressed image\n\
152 \n\
153 Header header # Header timestamp should be acquisition time of image\n\
154  # Header frame_id should be optical frame of camera\n\
155  # origin of frame should be optical center of cameara\n\
156  # +x should point to the right in the image\n\
157  # +y should point down in the image\n\
158  # +z should point into to plane of the image\n\
159 \n\
160 string format # Specifies the format of the data\n\
161  # Acceptable values:\n\
162  # jpeg, png\n\
163 uint8[] data # Compressed image buffer\n\
164 \n\
165 ================================================================================\n\
166 MSG: std_msgs/Header\n\
167 # Standard metadata for higher-level stamped data types.\n\
168 # This is generally used to communicate timestamped data \n\
169 # in a particular coordinate frame.\n\
170 # \n\
171 # sequence ID: consecutively increasing ID \n\
172 uint32 seq\n\
173 #Two-integer timestamp that is expressed as:\n\
174 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
175 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
176 # time-handling sugar is provided by the client library\n\
177 time stamp\n\
178 #Frame this data is associated with\n\
179 # 0: no frame\n\
180 # 1: global frame\n\
181 string frame_id\n\
182 ";
183  }
184 
185  static const char* value(const ::sensor_msgs::CompressedImage_<ContainerAllocator>&) { return value(); }
186 };
187 
188 } // namespace message_traits
189 } // namespace rs2rosinternal
190 
191 namespace rs2rosinternal
192 {
193 namespace serialization
194 {
195 
196  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::CompressedImage_<ContainerAllocator> >
197  {
198  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
199  {
200  stream.next(m.header);
201  stream.next(m.format);
202  stream.next(m.data);
203  }
204 
206  }; // struct CompressedImage_
207 
208 } // namespace serialization
209 } // namespace rs2rosinternal
210 
211 namespace rs2rosinternal
212 {
213 namespace message_operations
214 {
215 
216 template<class ContainerAllocator>
217 struct Printer< ::sensor_msgs::CompressedImage_<ContainerAllocator> >
218 {
219  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::CompressedImage_<ContainerAllocator>& v)
220  {
221  s << indent << "header: ";
222  s << std::endl;
224  s << indent << "format: ";
225  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.format);
226  s << indent << "data[]" << std::endl;
227  for (size_t i = 0; i < v.data.size(); ++i)
228  {
229  s << indent << " data[" << i << "]: ";
230  Printer<uint8_t>::stream(s, indent + " ", v.data[i]);
231  }
232  }
233 };
234 
235 } // namespace message_operations
236 } // namespace rs2rosinternal
237 
238 #endif // SENSOR_MSGS_MESSAGE_COMPRESSEDIMAGE_H
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
std::vector< uint8_t, typename ContainerAllocator::template rebind< uint8_t >::other > _data_type
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
CompressedImage_(const ContainerAllocator &_alloc)
GLdouble s
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
static const char * value(const ::sensor_msgs::CompressedImage_< ContainerAllocator > &)
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
std::shared_ptr< ::sensor_msgs::CompressedImage > CompressedImagePtr
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _format_type
::std_msgs::Header_< ContainerAllocator > _header_type
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
std::shared_ptr< ::sensor_msgs::CompressedImage const > CompressedImageConstPtr
std::shared_ptr< ::sensor_msgs::CompressedImage_< ContainerAllocator > > Ptr
static const char * value(const ::sensor_msgs::CompressedImage_< ContainerAllocator > &)
Stream base-class, provides common functionality for IStream and OStream.
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
GLint GLint GLsizei GLint GLenum format
#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.
CompressedImage_< ContainerAllocator > Type
static const char * value(const ::sensor_msgs::CompressedImage_< ContainerAllocator > &)
int i
::sensor_msgs::CompressedImage_< std::allocator< void > > CompressedImage
Templated serialization class. Default implementation provides backwards compatibility with old messa...
GLdouble v
std::shared_ptr< ::sensor_msgs::CompressedImage_< ContainerAllocator > const > ConstPtr
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::CompressedImage_< ContainerAllocator > &v)
Definition: parser.hpp:150


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