$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-erratic_robot/doc_stacks/2013-03-02_12-28-48.831118/erratic_robot/erratic_player/msg/RangeArray.msg */ 00002 #ifndef ERRATIC_PLAYER_MESSAGE_RANGEARRAY_H 00003 #define ERRATIC_PLAYER_MESSAGE_RANGEARRAY_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 "sensor_msgs/Range.h" 00018 00019 namespace erratic_player 00020 { 00021 template <class ContainerAllocator> 00022 struct RangeArray_ { 00023 typedef RangeArray_<ContainerAllocator> Type; 00024 00025 RangeArray_() 00026 : ranges() 00027 { 00028 } 00029 00030 RangeArray_(const ContainerAllocator& _alloc) 00031 : ranges(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::sensor_msgs::Range_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::Range_<ContainerAllocator> >::other > _ranges_type; 00036 std::vector< ::sensor_msgs::Range_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::Range_<ContainerAllocator> >::other > ranges; 00037 00038 00039 ROS_DEPRECATED uint32_t get_ranges_size() const { return (uint32_t)ranges.size(); } 00040 ROS_DEPRECATED void set_ranges_size(uint32_t size) { ranges.resize((size_t)size); } 00041 ROS_DEPRECATED void get_ranges_vec(std::vector< ::sensor_msgs::Range_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::Range_<ContainerAllocator> >::other > & vec) const { vec = this->ranges; } 00042 ROS_DEPRECATED void set_ranges_vec(const std::vector< ::sensor_msgs::Range_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::Range_<ContainerAllocator> >::other > & vec) { this->ranges = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "erratic_player/RangeArray"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "b72db098d4ed346ce682a1d5e70d327c"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "sensor_msgs/Range[] ranges\n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: sensor_msgs/Range\n\ 00062 # Single range reading from an active ranger that emits energy and reports\n\ 00063 # one range reading that is valid along an arc at the distance measured. \n\ 00064 # This message is not appropriate for fixed-range obstacle detectors, \n\ 00065 # such as the Sharp GP2D15. This message is also not appropriate for laser \n\ 00066 # scanners. See the LaserScan message if you are working with a laser scanner.\n\ 00067 \n\ 00068 Header header # timestamp in the header is the time the ranger\n\ 00069 # returned the distance reading\n\ 00070 \n\ 00071 # Radiation type enums\n\ 00072 # If you want a value added to this list, send an email to the ros-users list\n\ 00073 uint8 ULTRASOUND=0\n\ 00074 uint8 INFRARED=1\n\ 00075 \n\ 00076 uint8 radiation_type # the type of radiation used by the sensor\n\ 00077 # (sound, IR, etc) [enum]\n\ 00078 \n\ 00079 float32 field_of_view # the size of the arc that the distance reading is\n\ 00080 # valid for [rad]\n\ 00081 # the object causing the range reading may have\n\ 00082 # been anywhere within -field_of_view/2 and\n\ 00083 # field_of_view/2 at the measured range. \n\ 00084 # 0 angle corresponds to the x-axis of the sensor.\n\ 00085 \n\ 00086 float32 min_range # minimum range value [m]\n\ 00087 float32 max_range # maximum range value [m]\n\ 00088 \n\ 00089 float32 range # range data [m]\n\ 00090 # (Note: values < range_min or > range_max\n\ 00091 # should be discarded)\n\ 00092 \n\ 00093 ================================================================================\n\ 00094 MSG: std_msgs/Header\n\ 00095 # Standard metadata for higher-level stamped data types.\n\ 00096 # This is generally used to communicate timestamped data \n\ 00097 # in a particular coordinate frame.\n\ 00098 # \n\ 00099 # sequence ID: consecutively increasing ID \n\ 00100 uint32 seq\n\ 00101 #Two-integer timestamp that is expressed as:\n\ 00102 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00103 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00104 # time-handling sugar is provided by the client library\n\ 00105 time stamp\n\ 00106 #Frame this data is associated with\n\ 00107 # 0: no frame\n\ 00108 # 1: global frame\n\ 00109 string frame_id\n\ 00110 \n\ 00111 "; } 00112 public: 00113 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00114 00115 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00116 00117 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00118 { 00119 ros::serialization::OStream stream(write_ptr, 1000000000); 00120 ros::serialization::serialize(stream, ranges); 00121 return stream.getData(); 00122 } 00123 00124 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00125 { 00126 ros::serialization::IStream stream(read_ptr, 1000000000); 00127 ros::serialization::deserialize(stream, ranges); 00128 return stream.getData(); 00129 } 00130 00131 ROS_DEPRECATED virtual uint32_t serializationLength() const 00132 { 00133 uint32_t size = 0; 00134 size += ros::serialization::serializationLength(ranges); 00135 return size; 00136 } 00137 00138 typedef boost::shared_ptr< ::erratic_player::RangeArray_<ContainerAllocator> > Ptr; 00139 typedef boost::shared_ptr< ::erratic_player::RangeArray_<ContainerAllocator> const> ConstPtr; 00140 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00141 }; // struct RangeArray 00142 typedef ::erratic_player::RangeArray_<std::allocator<void> > RangeArray; 00143 00144 typedef boost::shared_ptr< ::erratic_player::RangeArray> RangeArrayPtr; 00145 typedef boost::shared_ptr< ::erratic_player::RangeArray const> RangeArrayConstPtr; 00146 00147 00148 template<typename ContainerAllocator> 00149 std::ostream& operator<<(std::ostream& s, const ::erratic_player::RangeArray_<ContainerAllocator> & v) 00150 { 00151 ros::message_operations::Printer< ::erratic_player::RangeArray_<ContainerAllocator> >::stream(s, "", v); 00152 return s;} 00153 00154 } // namespace erratic_player 00155 00156 namespace ros 00157 { 00158 namespace message_traits 00159 { 00160 template<class ContainerAllocator> struct IsMessage< ::erratic_player::RangeArray_<ContainerAllocator> > : public TrueType {}; 00161 template<class ContainerAllocator> struct IsMessage< ::erratic_player::RangeArray_<ContainerAllocator> const> : public TrueType {}; 00162 template<class ContainerAllocator> 00163 struct MD5Sum< ::erratic_player::RangeArray_<ContainerAllocator> > { 00164 static const char* value() 00165 { 00166 return "b72db098d4ed346ce682a1d5e70d327c"; 00167 } 00168 00169 static const char* value(const ::erratic_player::RangeArray_<ContainerAllocator> &) { return value(); } 00170 static const uint64_t static_value1 = 0xb72db098d4ed346cULL; 00171 static const uint64_t static_value2 = 0xe682a1d5e70d327cULL; 00172 }; 00173 00174 template<class ContainerAllocator> 00175 struct DataType< ::erratic_player::RangeArray_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "erratic_player/RangeArray"; 00179 } 00180 00181 static const char* value(const ::erratic_player::RangeArray_<ContainerAllocator> &) { return value(); } 00182 }; 00183 00184 template<class ContainerAllocator> 00185 struct Definition< ::erratic_player::RangeArray_<ContainerAllocator> > { 00186 static const char* value() 00187 { 00188 return "sensor_msgs/Range[] ranges\n\ 00189 \n\ 00190 ================================================================================\n\ 00191 MSG: sensor_msgs/Range\n\ 00192 # Single range reading from an active ranger that emits energy and reports\n\ 00193 # one range reading that is valid along an arc at the distance measured. \n\ 00194 # This message is not appropriate for fixed-range obstacle detectors, \n\ 00195 # such as the Sharp GP2D15. This message is also not appropriate for laser \n\ 00196 # scanners. See the LaserScan message if you are working with a laser scanner.\n\ 00197 \n\ 00198 Header header # timestamp in the header is the time the ranger\n\ 00199 # returned the distance reading\n\ 00200 \n\ 00201 # Radiation type enums\n\ 00202 # If you want a value added to this list, send an email to the ros-users list\n\ 00203 uint8 ULTRASOUND=0\n\ 00204 uint8 INFRARED=1\n\ 00205 \n\ 00206 uint8 radiation_type # the type of radiation used by the sensor\n\ 00207 # (sound, IR, etc) [enum]\n\ 00208 \n\ 00209 float32 field_of_view # the size of the arc that the distance reading is\n\ 00210 # valid for [rad]\n\ 00211 # the object causing the range reading may have\n\ 00212 # been anywhere within -field_of_view/2 and\n\ 00213 # field_of_view/2 at the measured range. \n\ 00214 # 0 angle corresponds to the x-axis of the sensor.\n\ 00215 \n\ 00216 float32 min_range # minimum range value [m]\n\ 00217 float32 max_range # maximum range value [m]\n\ 00218 \n\ 00219 float32 range # range data [m]\n\ 00220 # (Note: values < range_min or > range_max\n\ 00221 # should be discarded)\n\ 00222 \n\ 00223 ================================================================================\n\ 00224 MSG: std_msgs/Header\n\ 00225 # Standard metadata for higher-level stamped data types.\n\ 00226 # This is generally used to communicate timestamped data \n\ 00227 # in a particular coordinate frame.\n\ 00228 # \n\ 00229 # sequence ID: consecutively increasing ID \n\ 00230 uint32 seq\n\ 00231 #Two-integer timestamp that is expressed as:\n\ 00232 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00233 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00234 # time-handling sugar is provided by the client library\n\ 00235 time stamp\n\ 00236 #Frame this data is associated with\n\ 00237 # 0: no frame\n\ 00238 # 1: global frame\n\ 00239 string frame_id\n\ 00240 \n\ 00241 "; 00242 } 00243 00244 static const char* value(const ::erratic_player::RangeArray_<ContainerAllocator> &) { return value(); } 00245 }; 00246 00247 } // namespace message_traits 00248 } // namespace ros 00249 00250 namespace ros 00251 { 00252 namespace serialization 00253 { 00254 00255 template<class ContainerAllocator> struct Serializer< ::erratic_player::RangeArray_<ContainerAllocator> > 00256 { 00257 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00258 { 00259 stream.next(m.ranges); 00260 } 00261 00262 ROS_DECLARE_ALLINONE_SERIALIZER; 00263 }; // struct RangeArray_ 00264 } // namespace serialization 00265 } // namespace ros 00266 00267 namespace ros 00268 { 00269 namespace message_operations 00270 { 00271 00272 template<class ContainerAllocator> 00273 struct Printer< ::erratic_player::RangeArray_<ContainerAllocator> > 00274 { 00275 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::erratic_player::RangeArray_<ContainerAllocator> & v) 00276 { 00277 s << indent << "ranges[]" << std::endl; 00278 for (size_t i = 0; i < v.ranges.size(); ++i) 00279 { 00280 s << indent << " ranges[" << i << "]: "; 00281 s << std::endl; 00282 s << indent; 00283 Printer< ::sensor_msgs::Range_<ContainerAllocator> >::stream(s, indent + " ", v.ranges[i]); 00284 } 00285 } 00286 }; 00287 00288 00289 } // namespace message_operations 00290 } // namespace ros 00291 00292 #endif // ERRATIC_PLAYER_MESSAGE_RANGEARRAY_H 00293