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