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


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