Go to the documentation of this file.00001
00002 #ifndef LSE_SENSOR_MSGS_MESSAGE_RANGE_H
00003 #define LSE_SENSOR_MSGS_MESSAGE_RANGE_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "std_msgs/Header.h"
00018
00019 namespace lse_sensor_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct Range_ {
00023 typedef Range_<ContainerAllocator> Type;
00024
00025 Range_()
00026 : header()
00027 , radiation_type(0)
00028 , field_of_view(0.0)
00029 , min_range(0.0)
00030 , max_range(0.0)
00031 , range(0.0)
00032 {
00033 }
00034
00035 Range_(const ContainerAllocator& _alloc)
00036 : header(_alloc)
00037 , radiation_type(0)
00038 , field_of_view(0.0)
00039 , min_range(0.0)
00040 , max_range(0.0)
00041 , range(0.0)
00042 {
00043 }
00044
00045 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00046 ::std_msgs::Header_<ContainerAllocator> header;
00047
00048 typedef uint8_t _radiation_type_type;
00049 uint8_t radiation_type;
00050
00051 typedef float _field_of_view_type;
00052 float field_of_view;
00053
00054 typedef float _min_range_type;
00055 float min_range;
00056
00057 typedef float _max_range_type;
00058 float max_range;
00059
00060 typedef float _range_type;
00061 float range;
00062
00063 enum { ULTRASOUND = 0 };
00064 enum { INFRARED = 1 };
00065
00066 typedef boost::shared_ptr< ::lse_sensor_msgs::Range_<ContainerAllocator> > Ptr;
00067 typedef boost::shared_ptr< ::lse_sensor_msgs::Range_<ContainerAllocator> const> ConstPtr;
00068 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00069 };
00070 typedef ::lse_sensor_msgs::Range_<std::allocator<void> > Range;
00071
00072 typedef boost::shared_ptr< ::lse_sensor_msgs::Range> RangePtr;
00073 typedef boost::shared_ptr< ::lse_sensor_msgs::Range const> RangeConstPtr;
00074
00075
00076 template<typename ContainerAllocator>
00077 std::ostream& operator<<(std::ostream& s, const ::lse_sensor_msgs::Range_<ContainerAllocator> & v)
00078 {
00079 ros::message_operations::Printer< ::lse_sensor_msgs::Range_<ContainerAllocator> >::stream(s, "", v);
00080 return s;}
00081
00082 }
00083
00084 namespace ros
00085 {
00086 namespace message_traits
00087 {
00088 template<class ContainerAllocator> struct IsMessage< ::lse_sensor_msgs::Range_<ContainerAllocator> > : public TrueType {};
00089 template<class ContainerAllocator> struct IsMessage< ::lse_sensor_msgs::Range_<ContainerAllocator> const> : public TrueType {};
00090 template<class ContainerAllocator>
00091 struct MD5Sum< ::lse_sensor_msgs::Range_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "c005c34273dc426c67a020a87bc24148";
00095 }
00096
00097 static const char* value(const ::lse_sensor_msgs::Range_<ContainerAllocator> &) { return value(); }
00098 static const uint64_t static_value1 = 0xc005c34273dc426cULL;
00099 static const uint64_t static_value2 = 0x67a020a87bc24148ULL;
00100 };
00101
00102 template<class ContainerAllocator>
00103 struct DataType< ::lse_sensor_msgs::Range_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "lse_sensor_msgs/Range";
00107 }
00108
00109 static const char* value(const ::lse_sensor_msgs::Range_<ContainerAllocator> &) { return value(); }
00110 };
00111
00112 template<class ContainerAllocator>
00113 struct Definition< ::lse_sensor_msgs::Range_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "# Single range reading from an active ranger that emits energy and reports\n\
00117 # one range reading that is valid along an arc at the distance measured. \n\
00118 # This message is not appropriate for fixed-range obstacle detectors, \n\
00119 # such as the Sharp GP2D15. This message is also not appropriate for laser \n\
00120 # scanners. See the LaserScan message if you are working with a laser scanner.\n\
00121 \n\
00122 Header header # timestamp in the header is the time the ranger\n\
00123 # returned the distance reading\n\
00124 \n\
00125 # Radiation type enums\n\
00126 # If you want a value added to this list, send an email to the ros-users list\n\
00127 uint8 ULTRASOUND=0\n\
00128 uint8 INFRARED=1\n\
00129 \n\
00130 uint8 radiation_type # the type of radiation used by the sensor\n\
00131 # (sound, IR, etc) [enum]\n\
00132 \n\
00133 float32 field_of_view # the size of the arc that the distance reading is\n\
00134 # valid for [rad]\n\
00135 # the object causing the range reading may have\n\
00136 # been anywhere along -field_of_view/2 and\n\
00137 # field_of_view/2 at range. 0 angle corresponds\n\
00138 # to the x-axis of the sensor.\n\
00139 \n\
00140 float32 min_range # minimum range value [m]\n\
00141 float32 max_range # maximum range value [m]\n\
00142 \n\
00143 float32 range # range data [m]\n\
00144 # (Note: values < range_min or > range_max\n\
00145 # should be discarded)\n\
00146 \n\
00147 ================================================================================\n\
00148 MSG: std_msgs/Header\n\
00149 # Standard metadata for higher-level stamped data types.\n\
00150 # This is generally used to communicate timestamped data \n\
00151 # in a particular coordinate frame.\n\
00152 # \n\
00153 # sequence ID: consecutively increasing ID \n\
00154 uint32 seq\n\
00155 #Two-integer timestamp that is expressed as:\n\
00156 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00157 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00158 # time-handling sugar is provided by the client library\n\
00159 time stamp\n\
00160 #Frame this data is associated with\n\
00161 # 0: no frame\n\
00162 # 1: global frame\n\
00163 string frame_id\n\
00164 \n\
00165 ";
00166 }
00167
00168 static const char* value(const ::lse_sensor_msgs::Range_<ContainerAllocator> &) { return value(); }
00169 };
00170
00171 template<class ContainerAllocator> struct HasHeader< ::lse_sensor_msgs::Range_<ContainerAllocator> > : public TrueType {};
00172 template<class ContainerAllocator> struct HasHeader< const ::lse_sensor_msgs::Range_<ContainerAllocator> > : public TrueType {};
00173 }
00174 }
00175
00176 namespace ros
00177 {
00178 namespace serialization
00179 {
00180
00181 template<class ContainerAllocator> struct Serializer< ::lse_sensor_msgs::Range_<ContainerAllocator> >
00182 {
00183 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00184 {
00185 stream.next(m.header);
00186 stream.next(m.radiation_type);
00187 stream.next(m.field_of_view);
00188 stream.next(m.min_range);
00189 stream.next(m.max_range);
00190 stream.next(m.range);
00191 }
00192
00193 ROS_DECLARE_ALLINONE_SERIALIZER;
00194 };
00195 }
00196 }
00197
00198 namespace ros
00199 {
00200 namespace message_operations
00201 {
00202
00203 template<class ContainerAllocator>
00204 struct Printer< ::lse_sensor_msgs::Range_<ContainerAllocator> >
00205 {
00206 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::lse_sensor_msgs::Range_<ContainerAllocator> & v)
00207 {
00208 s << indent << "header: ";
00209 s << std::endl;
00210 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00211 s << indent << "radiation_type: ";
00212 Printer<uint8_t>::stream(s, indent + " ", v.radiation_type);
00213 s << indent << "field_of_view: ";
00214 Printer<float>::stream(s, indent + " ", v.field_of_view);
00215 s << indent << "min_range: ";
00216 Printer<float>::stream(s, indent + " ", v.min_range);
00217 s << indent << "max_range: ";
00218 Printer<float>::stream(s, indent + " ", v.max_range);
00219 s << indent << "range: ";
00220 Printer<float>::stream(s, indent + " ", v.range);
00221 }
00222 };
00223
00224
00225 }
00226 }
00227
00228 #endif // LSE_SENSOR_MSGS_MESSAGE_RANGE_H
00229