$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-art_vehicle/doc_stacks/2013-03-01_14-08-11.497537/art_vehicle/art_msgs/msg/WayPoint.msg */ 00002 #ifndef ART_MSGS_MESSAGE_WAYPOINT_H 00003 #define ART_MSGS_MESSAGE_WAYPOINT_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 "geometry_msgs/Point32.h" 00018 #include "art_msgs/MapID.h" 00019 00020 namespace art_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct WayPoint_ { 00024 typedef WayPoint_<ContainerAllocator> Type; 00025 00026 WayPoint_() 00027 : latitude(0.0) 00028 , longitude(0.0) 00029 , mapxy() 00030 , id() 00031 , index(0) 00032 , is_entry(false) 00033 , is_exit(false) 00034 , is_goal(false) 00035 , is_lane_change(false) 00036 , is_spot(false) 00037 , is_stop(false) 00038 , is_perimeter(false) 00039 , checkpoint_id(0) 00040 , lane_width(0.0) 00041 { 00042 } 00043 00044 WayPoint_(const ContainerAllocator& _alloc) 00045 : latitude(0.0) 00046 , longitude(0.0) 00047 , mapxy(_alloc) 00048 , id(_alloc) 00049 , index(0) 00050 , is_entry(false) 00051 , is_exit(false) 00052 , is_goal(false) 00053 , is_lane_change(false) 00054 , is_spot(false) 00055 , is_stop(false) 00056 , is_perimeter(false) 00057 , checkpoint_id(0) 00058 , lane_width(0.0) 00059 { 00060 } 00061 00062 typedef double _latitude_type; 00063 double latitude; 00064 00065 typedef double _longitude_type; 00066 double longitude; 00067 00068 typedef ::geometry_msgs::Point32_<ContainerAllocator> _mapxy_type; 00069 ::geometry_msgs::Point32_<ContainerAllocator> mapxy; 00070 00071 typedef ::art_msgs::MapID_<ContainerAllocator> _id_type; 00072 ::art_msgs::MapID_<ContainerAllocator> id; 00073 00074 typedef uint16_t _index_type; 00075 uint16_t index; 00076 00077 typedef uint8_t _is_entry_type; 00078 uint8_t is_entry; 00079 00080 typedef uint8_t _is_exit_type; 00081 uint8_t is_exit; 00082 00083 typedef uint8_t _is_goal_type; 00084 uint8_t is_goal; 00085 00086 typedef uint8_t _is_lane_change_type; 00087 uint8_t is_lane_change; 00088 00089 typedef uint8_t _is_spot_type; 00090 uint8_t is_spot; 00091 00092 typedef uint8_t _is_stop_type; 00093 uint8_t is_stop; 00094 00095 typedef uint8_t _is_perimeter_type; 00096 uint8_t is_perimeter; 00097 00098 typedef int32_t _checkpoint_id_type; 00099 int32_t checkpoint_id; 00100 00101 typedef float _lane_width_type; 00102 float lane_width; 00103 00104 00105 private: 00106 static const char* __s_getDataType_() { return "art_msgs/WayPoint"; } 00107 public: 00108 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00109 00110 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00111 00112 private: 00113 static const char* __s_getMD5Sum_() { return "93d7bd4ade2e33f8e836f5cd46c71e50"; } 00114 public: 00115 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00116 00117 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00118 00119 private: 00120 static const char* __s_getMessageDefinition_() { return "# Way-point attributes\n\ 00121 # $Id: WayPoint.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\ 00122 \n\ 00123 float64 latitude # latitude in degrees\n\ 00124 float64 longitude # longitude in degrees\n\ 00125 geometry_msgs/Point32 mapxy # MapXY position\n\ 00126 MapID id # way-point ID\n\ 00127 uint16 index # parser index of waypoint\n\ 00128 \n\ 00129 # way-point flags\n\ 00130 bool is_entry # lane or zone exit point\n\ 00131 bool is_exit # lane or zone entry point\n\ 00132 bool is_goal # this is a goal checkpoint\n\ 00133 bool is_lane_change # change lanes after here\n\ 00134 bool is_spot # parking spot\n\ 00135 bool is_stop # stop line here\n\ 00136 bool is_perimeter # zone perimeter point\n\ 00137 int32 checkpoint_id # checkpoint ID or zero\n\ 00138 float32 lane_width\n\ 00139 \n\ 00140 ================================================================================\n\ 00141 MSG: geometry_msgs/Point32\n\ 00142 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00143 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00144 # \n\ 00145 # This recommendation is to promote interoperability. \n\ 00146 #\n\ 00147 # This message is designed to take up less space when sending\n\ 00148 # lots of points at once, as in the case of a PointCloud. \n\ 00149 \n\ 00150 float32 x\n\ 00151 float32 y\n\ 00152 float32 z\n\ 00153 ================================================================================\n\ 00154 MSG: art_msgs/MapID\n\ 00155 # Road map identifier for segments, lanes and way-points.\n\ 00156 # $Id: MapID.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\ 00157 \n\ 00158 uint16 NULL_ID = 65535\n\ 00159 \n\ 00160 uint16 seg # segment ID\n\ 00161 uint16 lane # lane ID\n\ 00162 uint16 pt # way-point ID\n\ 00163 \n\ 00164 "; } 00165 public: 00166 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00167 00168 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00169 00170 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00171 { 00172 ros::serialization::OStream stream(write_ptr, 1000000000); 00173 ros::serialization::serialize(stream, latitude); 00174 ros::serialization::serialize(stream, longitude); 00175 ros::serialization::serialize(stream, mapxy); 00176 ros::serialization::serialize(stream, id); 00177 ros::serialization::serialize(stream, index); 00178 ros::serialization::serialize(stream, is_entry); 00179 ros::serialization::serialize(stream, is_exit); 00180 ros::serialization::serialize(stream, is_goal); 00181 ros::serialization::serialize(stream, is_lane_change); 00182 ros::serialization::serialize(stream, is_spot); 00183 ros::serialization::serialize(stream, is_stop); 00184 ros::serialization::serialize(stream, is_perimeter); 00185 ros::serialization::serialize(stream, checkpoint_id); 00186 ros::serialization::serialize(stream, lane_width); 00187 return stream.getData(); 00188 } 00189 00190 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00191 { 00192 ros::serialization::IStream stream(read_ptr, 1000000000); 00193 ros::serialization::deserialize(stream, latitude); 00194 ros::serialization::deserialize(stream, longitude); 00195 ros::serialization::deserialize(stream, mapxy); 00196 ros::serialization::deserialize(stream, id); 00197 ros::serialization::deserialize(stream, index); 00198 ros::serialization::deserialize(stream, is_entry); 00199 ros::serialization::deserialize(stream, is_exit); 00200 ros::serialization::deserialize(stream, is_goal); 00201 ros::serialization::deserialize(stream, is_lane_change); 00202 ros::serialization::deserialize(stream, is_spot); 00203 ros::serialization::deserialize(stream, is_stop); 00204 ros::serialization::deserialize(stream, is_perimeter); 00205 ros::serialization::deserialize(stream, checkpoint_id); 00206 ros::serialization::deserialize(stream, lane_width); 00207 return stream.getData(); 00208 } 00209 00210 ROS_DEPRECATED virtual uint32_t serializationLength() const 00211 { 00212 uint32_t size = 0; 00213 size += ros::serialization::serializationLength(latitude); 00214 size += ros::serialization::serializationLength(longitude); 00215 size += ros::serialization::serializationLength(mapxy); 00216 size += ros::serialization::serializationLength(id); 00217 size += ros::serialization::serializationLength(index); 00218 size += ros::serialization::serializationLength(is_entry); 00219 size += ros::serialization::serializationLength(is_exit); 00220 size += ros::serialization::serializationLength(is_goal); 00221 size += ros::serialization::serializationLength(is_lane_change); 00222 size += ros::serialization::serializationLength(is_spot); 00223 size += ros::serialization::serializationLength(is_stop); 00224 size += ros::serialization::serializationLength(is_perimeter); 00225 size += ros::serialization::serializationLength(checkpoint_id); 00226 size += ros::serialization::serializationLength(lane_width); 00227 return size; 00228 } 00229 00230 typedef boost::shared_ptr< ::art_msgs::WayPoint_<ContainerAllocator> > Ptr; 00231 typedef boost::shared_ptr< ::art_msgs::WayPoint_<ContainerAllocator> const> ConstPtr; 00232 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00233 }; // struct WayPoint 00234 typedef ::art_msgs::WayPoint_<std::allocator<void> > WayPoint; 00235 00236 typedef boost::shared_ptr< ::art_msgs::WayPoint> WayPointPtr; 00237 typedef boost::shared_ptr< ::art_msgs::WayPoint const> WayPointConstPtr; 00238 00239 00240 template<typename ContainerAllocator> 00241 std::ostream& operator<<(std::ostream& s, const ::art_msgs::WayPoint_<ContainerAllocator> & v) 00242 { 00243 ros::message_operations::Printer< ::art_msgs::WayPoint_<ContainerAllocator> >::stream(s, "", v); 00244 return s;} 00245 00246 } // namespace art_msgs 00247 00248 namespace ros 00249 { 00250 namespace message_traits 00251 { 00252 template<class ContainerAllocator> struct IsMessage< ::art_msgs::WayPoint_<ContainerAllocator> > : public TrueType {}; 00253 template<class ContainerAllocator> struct IsMessage< ::art_msgs::WayPoint_<ContainerAllocator> const> : public TrueType {}; 00254 template<class ContainerAllocator> 00255 struct MD5Sum< ::art_msgs::WayPoint_<ContainerAllocator> > { 00256 static const char* value() 00257 { 00258 return "93d7bd4ade2e33f8e836f5cd46c71e50"; 00259 } 00260 00261 static const char* value(const ::art_msgs::WayPoint_<ContainerAllocator> &) { return value(); } 00262 static const uint64_t static_value1 = 0x93d7bd4ade2e33f8ULL; 00263 static const uint64_t static_value2 = 0xe836f5cd46c71e50ULL; 00264 }; 00265 00266 template<class ContainerAllocator> 00267 struct DataType< ::art_msgs::WayPoint_<ContainerAllocator> > { 00268 static const char* value() 00269 { 00270 return "art_msgs/WayPoint"; 00271 } 00272 00273 static const char* value(const ::art_msgs::WayPoint_<ContainerAllocator> &) { return value(); } 00274 }; 00275 00276 template<class ContainerAllocator> 00277 struct Definition< ::art_msgs::WayPoint_<ContainerAllocator> > { 00278 static const char* value() 00279 { 00280 return "# Way-point attributes\n\ 00281 # $Id: WayPoint.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\ 00282 \n\ 00283 float64 latitude # latitude in degrees\n\ 00284 float64 longitude # longitude in degrees\n\ 00285 geometry_msgs/Point32 mapxy # MapXY position\n\ 00286 MapID id # way-point ID\n\ 00287 uint16 index # parser index of waypoint\n\ 00288 \n\ 00289 # way-point flags\n\ 00290 bool is_entry # lane or zone exit point\n\ 00291 bool is_exit # lane or zone entry point\n\ 00292 bool is_goal # this is a goal checkpoint\n\ 00293 bool is_lane_change # change lanes after here\n\ 00294 bool is_spot # parking spot\n\ 00295 bool is_stop # stop line here\n\ 00296 bool is_perimeter # zone perimeter point\n\ 00297 int32 checkpoint_id # checkpoint ID or zero\n\ 00298 float32 lane_width\n\ 00299 \n\ 00300 ================================================================================\n\ 00301 MSG: geometry_msgs/Point32\n\ 00302 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00303 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00304 # \n\ 00305 # This recommendation is to promote interoperability. \n\ 00306 #\n\ 00307 # This message is designed to take up less space when sending\n\ 00308 # lots of points at once, as in the case of a PointCloud. \n\ 00309 \n\ 00310 float32 x\n\ 00311 float32 y\n\ 00312 float32 z\n\ 00313 ================================================================================\n\ 00314 MSG: art_msgs/MapID\n\ 00315 # Road map identifier for segments, lanes and way-points.\n\ 00316 # $Id: MapID.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\ 00317 \n\ 00318 uint16 NULL_ID = 65535\n\ 00319 \n\ 00320 uint16 seg # segment ID\n\ 00321 uint16 lane # lane ID\n\ 00322 uint16 pt # way-point ID\n\ 00323 \n\ 00324 "; 00325 } 00326 00327 static const char* value(const ::art_msgs::WayPoint_<ContainerAllocator> &) { return value(); } 00328 }; 00329 00330 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::WayPoint_<ContainerAllocator> > : public TrueType {}; 00331 } // namespace message_traits 00332 } // namespace ros 00333 00334 namespace ros 00335 { 00336 namespace serialization 00337 { 00338 00339 template<class ContainerAllocator> struct Serializer< ::art_msgs::WayPoint_<ContainerAllocator> > 00340 { 00341 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00342 { 00343 stream.next(m.latitude); 00344 stream.next(m.longitude); 00345 stream.next(m.mapxy); 00346 stream.next(m.id); 00347 stream.next(m.index); 00348 stream.next(m.is_entry); 00349 stream.next(m.is_exit); 00350 stream.next(m.is_goal); 00351 stream.next(m.is_lane_change); 00352 stream.next(m.is_spot); 00353 stream.next(m.is_stop); 00354 stream.next(m.is_perimeter); 00355 stream.next(m.checkpoint_id); 00356 stream.next(m.lane_width); 00357 } 00358 00359 ROS_DECLARE_ALLINONE_SERIALIZER; 00360 }; // struct WayPoint_ 00361 } // namespace serialization 00362 } // namespace ros 00363 00364 namespace ros 00365 { 00366 namespace message_operations 00367 { 00368 00369 template<class ContainerAllocator> 00370 struct Printer< ::art_msgs::WayPoint_<ContainerAllocator> > 00371 { 00372 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::WayPoint_<ContainerAllocator> & v) 00373 { 00374 s << indent << "latitude: "; 00375 Printer<double>::stream(s, indent + " ", v.latitude); 00376 s << indent << "longitude: "; 00377 Printer<double>::stream(s, indent + " ", v.longitude); 00378 s << indent << "mapxy: "; 00379 s << std::endl; 00380 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.mapxy); 00381 s << indent << "id: "; 00382 s << std::endl; 00383 Printer< ::art_msgs::MapID_<ContainerAllocator> >::stream(s, indent + " ", v.id); 00384 s << indent << "index: "; 00385 Printer<uint16_t>::stream(s, indent + " ", v.index); 00386 s << indent << "is_entry: "; 00387 Printer<uint8_t>::stream(s, indent + " ", v.is_entry); 00388 s << indent << "is_exit: "; 00389 Printer<uint8_t>::stream(s, indent + " ", v.is_exit); 00390 s << indent << "is_goal: "; 00391 Printer<uint8_t>::stream(s, indent + " ", v.is_goal); 00392 s << indent << "is_lane_change: "; 00393 Printer<uint8_t>::stream(s, indent + " ", v.is_lane_change); 00394 s << indent << "is_spot: "; 00395 Printer<uint8_t>::stream(s, indent + " ", v.is_spot); 00396 s << indent << "is_stop: "; 00397 Printer<uint8_t>::stream(s, indent + " ", v.is_stop); 00398 s << indent << "is_perimeter: "; 00399 Printer<uint8_t>::stream(s, indent + " ", v.is_perimeter); 00400 s << indent << "checkpoint_id: "; 00401 Printer<int32_t>::stream(s, indent + " ", v.checkpoint_id); 00402 s << indent << "lane_width: "; 00403 Printer<float>::stream(s, indent + " ", v.lane_width); 00404 } 00405 }; 00406 00407 00408 } // namespace message_operations 00409 } // namespace ros 00410 00411 #endif // ART_MSGS_MESSAGE_WAYPOINT_H 00412