Range.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/Range.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_RANGE_H
6 #define SENSOR_MSGS_MESSAGE_RANGE_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 <std_msgs/Header.h>
19 
20 namespace sensor_msgs
21 {
22 template <class ContainerAllocator>
23 struct Range_
24 {
26 
28  : header()
29  , radiation_type(0)
30  , field_of_view(0.0)
31  , min_range(0.0)
32  , max_range(0.0)
33  , range(0.0) {
34  }
35  Range_(const ContainerAllocator& _alloc)
36  : header(_alloc)
37  , radiation_type(0)
38  , field_of_view(0.0)
39  , min_range(0.0)
40  , max_range(0.0)
41  , range(0.0) {
42  (void)_alloc;
43  }
44 
45 
46 
47  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
48  _header_type header;
49 
51  _radiation_type_type radiation_type;
52 
53  typedef float _field_of_view_type;
54  _field_of_view_type field_of_view;
55 
56  typedef float _min_range_type;
57  _min_range_type min_range;
58 
59  typedef float _max_range_type;
60  _max_range_type max_range;
61 
62  typedef float _range_type;
63  _range_type range;
64 
65 
66  enum { ULTRASOUND = 0u };
67  enum { INFRARED = 1u };
68 
69 
72 
73 }; // struct Range_
74 
75 typedef ::sensor_msgs::Range_<std::allocator<void> > Range;
76 
79 
80 // constants requiring out of line definition
81 
82 
83 
84 
85 
86 
87 
88 template<typename ContainerAllocator>
89 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::Range_<ContainerAllocator> & v)
90 {
92 return s;
93 }
94 
95 } // namespace sensor_msgs
96 
97 namespace rs2rosinternal
98 {
99 namespace message_traits
100 {
101 
102 
103 
104 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
105 // {'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']}
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< ::sensor_msgs::Range_<ContainerAllocator> >
114  : FalseType
115  { };
116 
117 template <class ContainerAllocator>
118 struct IsFixedSize< ::sensor_msgs::Range_<ContainerAllocator> const>
119  : FalseType
120  { };
121 
122 template <class ContainerAllocator>
123 struct IsMessage< ::sensor_msgs::Range_<ContainerAllocator> >
124  : TrueType
125  { };
126 
127 template <class ContainerAllocator>
128 struct IsMessage< ::sensor_msgs::Range_<ContainerAllocator> const>
129  : TrueType
130  { };
131 
132 template <class ContainerAllocator>
133 struct HasHeader< ::sensor_msgs::Range_<ContainerAllocator> >
134  : TrueType
135  { };
136 
137 template <class ContainerAllocator>
138 struct HasHeader< ::sensor_msgs::Range_<ContainerAllocator> const>
139  : TrueType
140  { };
141 
142 
143 template<class ContainerAllocator>
144 struct MD5Sum< ::sensor_msgs::Range_<ContainerAllocator> >
145 {
146  static const char* value()
147  {
148  return "c005c34273dc426c67a020a87bc24148";
149  }
150 
151  static const char* value(const ::sensor_msgs::Range_<ContainerAllocator>&) { return value(); }
152  static const uint64_t static_value1 = 0xc005c34273dc426cULL;
153  static const uint64_t static_value2 = 0x67a020a87bc24148ULL;
154 };
155 
156 template<class ContainerAllocator>
157 struct DataType< ::sensor_msgs::Range_<ContainerAllocator> >
158 {
159  static const char* value()
160  {
161  return "sensor_msgs/Range";
162  }
163 
164  static const char* value(const ::sensor_msgs::Range_<ContainerAllocator>&) { return value(); }
165 };
166 
167 template<class ContainerAllocator>
168 struct Definition< ::sensor_msgs::Range_<ContainerAllocator> >
169 {
170  static const char* value()
171  {
172  return "# Single range reading from an active ranger that emits energy and reports\n\
173 # one range reading that is valid along an arc at the distance measured. \n\
174 # This message is not appropriate for laser scanners. See the LaserScan\n\
175 # message if you are working with a laser scanner.\n\
176 \n\
177 # This message also can represent a fixed-distance (binary) ranger. This\n\
178 # sensor will have min_range===max_range===distance of detection.\n\
179 # These sensors follow REP 117 and will output -Inf if the object is detected\n\
180 # and +Inf if the object is outside of the detection range.\n\
181 \n\
182 Header header # timestamp in the header is the time the ranger\n\
183  # returned the distance reading\n\
184 \n\
185 # Radiation type enums\n\
186 # If you want a value added to this list, send an email to the ros-users list\n\
187 uint8 ULTRASOUND=0\n\
188 uint8 INFRARED=1\n\
189 \n\
190 uint8 radiation_type # the type of radiation used by the sensor\n\
191  # (sound, IR, etc) [enum]\n\
192 \n\
193 float32 field_of_view # the size of the arc that the distance reading is\n\
194  # valid for [rad]\n\
195  # the object causing the range reading may have\n\
196  # been anywhere within -field_of_view/2 and\n\
197  # field_of_view/2 at the measured range. \n\
198  # 0 angle corresponds to the x-axis of the sensor.\n\
199 \n\
200 float32 min_range # minimum range value [m]\n\
201 float32 max_range # maximum range value [m]\n\
202  # Fixed distance rangers require min_range==max_range\n\
203 \n\
204 float32 range # range data [m]\n\
205  # (Note: values < range_min or > range_max\n\
206  # should be discarded)\n\
207  # Fixed distance rangers only output -Inf or +Inf.\n\
208  # -Inf represents a detection within fixed distance.\n\
209  # (Detection too close to the sensor to quantify)\n\
210  # +Inf represents no detection within the fixed distance.\n\
211  # (Object out of range)\n\
212 ================================================================================\n\
213 MSG: std_msgs/Header\n\
214 # Standard metadata for higher-level stamped data types.\n\
215 # This is generally used to communicate timestamped data \n\
216 # in a particular coordinate frame.\n\
217 # \n\
218 # sequence ID: consecutively increasing ID \n\
219 uint32 seq\n\
220 #Two-integer timestamp that is expressed as:\n\
221 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
222 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
223 # time-handling sugar is provided by the client library\n\
224 time stamp\n\
225 #Frame this data is associated with\n\
226 # 0: no frame\n\
227 # 1: global frame\n\
228 string frame_id\n\
229 ";
230  }
231 
232  static const char* value(const ::sensor_msgs::Range_<ContainerAllocator>&) { return value(); }
233 };
234 
235 } // namespace message_traits
236 } // namespace rs2rosinternal
237 
238 namespace rs2rosinternal
239 {
240 namespace serialization
241 {
242 
243  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::Range_<ContainerAllocator> >
244  {
245  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
246  {
247  stream.next(m.header);
248  stream.next(m.radiation_type);
249  stream.next(m.field_of_view);
250  stream.next(m.min_range);
251  stream.next(m.max_range);
252  stream.next(m.range);
253  }
254 
256  }; // struct Range_
257 
258 } // namespace serialization
259 } // namespace rs2rosinternal
260 
261 namespace rs2rosinternal
262 {
263 namespace message_operations
264 {
265 
266 template<class ContainerAllocator>
267 struct Printer< ::sensor_msgs::Range_<ContainerAllocator> >
268 {
269  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::Range_<ContainerAllocator>& v)
270  {
271  s << indent << "header: ";
272  s << std::endl;
274  s << indent << "radiation_type: ";
275  Printer<uint8_t>::stream(s, indent + " ", v.radiation_type);
276  s << indent << "field_of_view: ";
277  Printer<float>::stream(s, indent + " ", v.field_of_view);
278  s << indent << "min_range: ";
279  Printer<float>::stream(s, indent + " ", v.min_range);
280  s << indent << "max_range: ";
281  Printer<float>::stream(s, indent + " ", v.max_range);
282  s << indent << "range: ";
283  Printer<float>::stream(s, indent + " ", v.range);
284  }
285 };
286 
287 } // namespace message_operations
288 } // namespace rs2rosinternal
289 
290 #endif // SENSOR_MSGS_MESSAGE_RANGE_H
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: Range.h:47
GLdouble s
float _min_range_type
Definition: Range.h:56
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
boost::shared_ptr< ::sensor_msgs::Range > RangePtr
Definition: Range.h:77
::sensor_msgs::Range_< std::allocator< void > > Range
Definition: Range.h:75
_max_range_type max_range
Definition: Range.h:60
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
boost::shared_ptr< ::sensor_msgs::Range const > RangeConstPtr
Definition: Range.h:78
GLsizei const GLchar *const * string
boost::shared_ptr< ::sensor_msgs::Range_< ContainerAllocator > > Ptr
Definition: Range.h:70
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
float _field_of_view_type
Definition: Range.h:53
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::Range_< ContainerAllocator > &v)
Definition: Range.h:269
Stream base-class, provides common functionality for IStream and OStream.
float _max_range_type
Definition: Range.h:59
boost::shared_ptr< ::sensor_msgs::Range_< ContainerAllocator > const > ConstPtr
Definition: Range.h:71
_header_type header
Definition: Range.h:48
_min_range_type min_range
Definition: Range.h:57
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
static const char * value(const ::sensor_msgs::Range_< ContainerAllocator > &)
Definition: Range.h:232
#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.
static const char * value(const ::sensor_msgs::Range_< ContainerAllocator > &)
Definition: Range.h:164
uint8_t _radiation_type_type
Definition: Range.h:50
float _range_type
Definition: Range.h:62
Range_(const ContainerAllocator &_alloc)
Definition: Range.h:35
GLsizei range
Range_< ContainerAllocator > Type
Definition: Range.h:25
_radiation_type_type radiation_type
Definition: Range.h:51
Templated serialization class. Default implementation provides backwards compatibility with old messa...
_field_of_view_type field_of_view
Definition: Range.h:54
GLdouble v
_range_type range
Definition: Range.h:63
static const char * value(const ::sensor_msgs::Range_< ContainerAllocator > &)
Definition: Range.h:151


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