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


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:08