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;
43 
44  typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits< ContainerAllocator >::template rebind_alloc< char > > _format_type;
46 
47  typedef std::vector<uint8_t, typename std::allocator_traits< ContainerAllocator >::template rebind_alloc< uint8_t > > _data_type;
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  : std::false_type
94  { };
95 
96 template <class ContainerAllocator>
97 struct IsFixedSize< ::sensor_msgs::CompressedImage_<ContainerAllocator> const>
98  : std::false_type
99  { };
100 
101 template <class ContainerAllocator>
102 struct IsMessage< ::sensor_msgs::CompressedImage_<ContainerAllocator> >
103  : std::true_type
104  { };
105 
106 template <class ContainerAllocator>
107 struct IsMessage< ::sensor_msgs::CompressedImage_<ContainerAllocator> const>
108  : std::true_type
109  { };
110 
111 template <class ContainerAllocator>
112 struct HasHeader< ::sensor_msgs::CompressedImage_<ContainerAllocator> >
113  : std::true_type
114  { };
115 
116 template <class ContainerAllocator>
117 struct HasHeader< ::sensor_msgs::CompressedImage_<ContainerAllocator> const>
118  : std::true_type
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 std::allocator_traits< ContainerAllocator >::template rebind_alloc< char > > >::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
format
GLint GLint GLsizei GLint GLenum format
Definition: glad/glad/glad.h:1412
sensor_msgs::CompressedImage_::header
_header_type header
Definition: CompressedImage.h:42
sensor_msgs::CompressedImage_::CompressedImage_
CompressedImage_(const ContainerAllocator &_alloc)
Definition: CompressedImage.h:32
sensor_msgs::CompressedImage_::format
_format_type format
Definition: CompressedImage.h:45
data
Definition: parser.hpp:153
v
GLdouble v
Definition: glad/glad/glad.h:2144
string
GLsizei const GLchar *const * string
Definition: glad/glad/glad.h:2861
rs2rosinternal::serialization::Serializer< ::sensor_msgs::CompressedImage_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: CompressedImage.h:198
void
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
rs2rosinternal::message_traits::Definition< ::sensor_msgs::CompressedImage_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::CompressedImage_< ContainerAllocator > &)
Definition: CompressedImage.h:185
rs2rosinternal::message_traits::IsFixedSize
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
Definition: message_traits.h:81
rs2rosinternal::message_traits::DataType< ::sensor_msgs::CompressedImage_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::CompressedImage_< ContainerAllocator > &)
Definition: CompressedImage.h:143
rs2rosinternal
Definition: datatypes.h:39
sensor_msgs::CompressedImage_::_data_type
std::vector< uint8_t, typename std::allocator_traits< ContainerAllocator >::template rebind_alloc< uint8_t > > _data_type
Definition: CompressedImage.h:47
rs2rosinternal::message_traits::Definition< ::sensor_msgs::CompressedImage_< ContainerAllocator > >::value
static const char * value()
Definition: CompressedImage.h:149
rs2rosinternal::message_traits::MD5Sum< ::sensor_msgs::CompressedImage_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::CompressedImage_< ContainerAllocator > &)
Definition: CompressedImage.h:130
serialization.h
rs2rosinternal::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:90
m
std::mutex m
Definition: test-waiting-on.cpp:126
sensor_msgs::CompressedImage_
Definition: CompressedImage.h:23
sensor_msgs::CompressedImage_::CompressedImage_
CompressedImage_()
Definition: CompressedImage.h:27
builtin_message_traits.h
rs2rosinternal::message_traits::MD5Sum< ::sensor_msgs::CompressedImage_< ContainerAllocator > >::value
static const char * value()
Definition: CompressedImage.h:125
sensor_msgs::operator<<
std::ostream & operator<<(std::ostream &s, const ::sensor_msgs::BatteryState_< ContainerAllocator > &v)
Definition: BatteryState.h:186
uint64_t
unsigned __int64 uint64_t
Definition: stdint.h:90
i
int i
Definition: rs-pcl-color.cpp:54
sensor_msgs::CompressedImage_::_header_type
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: CompressedImage.h:41
sensor_msgs::CompressedImage_::Ptr
std::shared_ptr< ::sensor_msgs::CompressedImage_< ContainerAllocator > > Ptr
Definition: CompressedImage.h:53
sensor_msgs::CompressedImage_::_format_type
std::basic_string< char, std::char_traits< char >, typename std::allocator_traits< ContainerAllocator >::template rebind_alloc< char > > _format_type
Definition: CompressedImage.h:44
sensor_msgs::CompressedImage
::sensor_msgs::CompressedImage_< std::allocator< void > > CompressedImage
Definition: CompressedImage.h:58
std_msgs::Header_
Definition: Header.h:22
test-device-discovery.stream
stream
Definition: test-device-discovery.py:295
sensor_msgs::CompressedImageConstPtr
std::shared_ptr< ::sensor_msgs::CompressedImage const > CompressedImageConstPtr
Definition: CompressedImage.h:61
rspy.log.indent
def indent(str, line_prefix=' ')
Definition: log.py:122
sensor_msgs::CompressedImage_::data
_data_type data
Definition: CompressedImage.h:48
rs2rosinternal::message_operations::Printer< ::sensor_msgs::CompressedImage_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::CompressedImage_< ContainerAllocator > &v)
Definition: CompressedImage.h:219
sensor_msgs::CompressedImage_::Type
CompressedImage_< ContainerAllocator > Type
Definition: CompressedImage.h:25
rs2rosinternal::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:130
rs2rosinternal::message_traits::DataType< ::sensor_msgs::CompressedImage_< ContainerAllocator > >::value
static const char * value()
Definition: CompressedImage.h:138
rs2rosinternal::message_traits::MD5Sum
Specialize to provide the md5sum for a message.
Definition: message_traits.h:96
sensor_msgs::CompressedImagePtr
std::shared_ptr< ::sensor_msgs::CompressedImage > CompressedImagePtr
Definition: CompressedImage.h:60
rs2rosinternal::serialization::Serializer
Templated serialization class. Default implementation provides backwards compatibility with old messa...
Definition: third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h:111
rs2rosinternal::message_traits::HasHeader
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
Definition: message_traits.h:85
ROS_DECLARE_ALLINONE_SERIALIZER
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
Definition: third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h:66
rs2rosinternal::message_operations::Printer::stream
static void stream(Stream &s, const std::string &indent, const M &value)
Definition: message_operations.h:42
rs2rosinternal::message_operations::Printer
Definition: message_operations.h:39
rs2rosinternal::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:113
sensor_msgs::CompressedImage_::ConstPtr
std::shared_ptr< ::sensor_msgs::CompressedImage_< ContainerAllocator > const > ConstPtr
Definition: CompressedImage.h:54
rs2rosinternal::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h:694
sensor_msgs
Tools for manipulating sensor_msgs.
Definition: image-msg.h:23
s
GLdouble s
Definition: glad/glad/glad.h:2441
Header.h
types.h
message_operations.h


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:01