Go to the documentation of this file.
6 #ifndef SENSOR_MSGS_MESSAGE_RANGE_H
7 #define SENSOR_MSGS_MESSAGE_RANGE_H
14 #include <ros/types.h>
15 #include <ros/serialization.h>
16 #include <ros/builtin_message_traits.h>
17 #include <ros/message_operations.h>
23 template <
class ContainerAllocator>
36 Range_(
const ContainerAllocator& _alloc)
71 typedef std::shared_ptr< ::sensor_msgs::Range_<ContainerAllocator> >
Ptr;
72 typedef std::shared_ptr< ::sensor_msgs::Range_<ContainerAllocator>
const>
ConstPtr;
76 typedef ::sensor_msgs::Range_<std::allocator<void> >
Range;
78 typedef std::shared_ptr< ::sensor_msgs::Range >
RangePtr;
89 template<
typename ContainerAllocator>
90 std::ostream&
operator<<(std::ostream& s, const ::sensor_msgs::Range_<ContainerAllocator> & v)
100 namespace message_traits
113 template <
class ContainerAllocator>
118 template <
class ContainerAllocator>
123 template <
class ContainerAllocator>
128 template <
class ContainerAllocator>
133 template <
class ContainerAllocator>
138 template <
class ContainerAllocator>
144 template<
class ContainerAllocator>
149 return "c005c34273dc426c67a020a87bc24148";
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;
157 template<
class ContainerAllocator>
162 return "sensor_msgs/Range";
165 static const char*
value(const ::sensor_msgs::Range_<ContainerAllocator>&) {
return value(); }
168 template<
class ContainerAllocator>
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\
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\
183 Header header # timestamp in the header is the time the ranger\n\
184 # returned the distance reading\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\
191 uint8 radiation_type # the type of radiation used by the sensor\n\
192 # (sound, IR, etc) [enum]\n\
194 float32 field_of_view # the size of the arc that the distance reading is\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\
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\
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\
219 # sequence ID: consecutively increasing ID \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\
226 #Frame this data is associated with\n\
233 static const char*
value(const ::sensor_msgs::Range_<ContainerAllocator>&) {
return value(); }
241 namespace serialization
246 template<
typename Stream,
typename T>
inline static void allInOne(
Stream& stream, T m)
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);
264 namespace message_operations
267 template<
class ContainerAllocator>
270 template<
typename Stream>
static void stream(Stream& s,
const std::string&
indent, const ::sensor_msgs::Range_<ContainerAllocator>& v)
275 s <<
indent <<
"radiation_type: ";
277 s <<
indent <<
"field_of_view: ";
291 #endif // SENSOR_MSGS_MESSAGE_RANGE_H
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
static const char * value(const ::sensor_msgs::Range_< ContainerAllocator > &)
static const char * value(const ::sensor_msgs::Range_< ContainerAllocator > &)
float _field_of_view_type
Templated serialization class. Default implementation provides backwards compatibility with old messa...
::std_msgs::Header_< ContainerAllocator > _header_type
Range_< ContainerAllocator > Type
static const char * value()
static void stream(Stream &s, const std::string &indent, const M &value)
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
static const char * value()
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::Range_< ContainerAllocator > &v)
Specialize to provide the datatype for a message.
uint8_t _radiation_type_type
Specialize to provide the definition for a message.
Range_(const ContainerAllocator &_alloc)
std::ostream & operator<<(std::ostream &s, const ::sensor_msgs::BatteryState_< ContainerAllocator > &v)
static void allInOne(Stream &stream, T m)
_field_of_view_type field_of_view
_radiation_type_type radiation_type
_max_range_type max_range
std::shared_ptr< ::sensor_msgs::Range const > RangeConstPtr
::sensor_msgs::Range_< std::allocator< void > > Range
std::shared_ptr< ::sensor_msgs::Range_< ContainerAllocator > const > ConstPtr
static const char * value()
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Specialize to provide the md5sum for a message.
std::shared_ptr< ::sensor_msgs::Range_< ContainerAllocator > > Ptr
std::shared_ptr< ::sensor_msgs::Range > RangePtr
static const char * value(const ::sensor_msgs::Range_< ContainerAllocator > &)
Stream base-class, provides common functionality for IStream and OStream.
_min_range_type min_range
Tools for manipulating sensor_msgs.
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:10