00001
00002 #ifndef ART_MSGS_MESSAGE_ARTLANES_H
00003 #define ART_MSGS_MESSAGE_ARTLANES_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 "std_msgs/Header.h"
00014 #include "art_msgs/ArtQuadrilateral.h"
00015
00016 namespace art_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct ArtLanes_ : public ros::Message
00020 {
00021 typedef ArtLanes_<ContainerAllocator> Type;
00022
00023 ArtLanes_()
00024 : header()
00025 , polygons()
00026 {
00027 }
00028
00029 ArtLanes_(const ContainerAllocator& _alloc)
00030 : header(_alloc)
00031 , polygons(_alloc)
00032 {
00033 }
00034
00035 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00036 ::std_msgs::Header_<ContainerAllocator> header;
00037
00038 typedef std::vector< ::art_msgs::ArtQuadrilateral_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::art_msgs::ArtQuadrilateral_<ContainerAllocator> >::other > _polygons_type;
00039 std::vector< ::art_msgs::ArtQuadrilateral_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::art_msgs::ArtQuadrilateral_<ContainerAllocator> >::other > polygons;
00040
00041
00042 ROS_DEPRECATED uint32_t get_polygons_size() const { return (uint32_t)polygons.size(); }
00043 ROS_DEPRECATED void set_polygons_size(uint32_t size) { polygons.resize((size_t)size); }
00044 ROS_DEPRECATED void get_polygons_vec(std::vector< ::art_msgs::ArtQuadrilateral_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::art_msgs::ArtQuadrilateral_<ContainerAllocator> >::other > & vec) const { vec = this->polygons; }
00045 ROS_DEPRECATED void set_polygons_vec(const std::vector< ::art_msgs::ArtQuadrilateral_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::art_msgs::ArtQuadrilateral_<ContainerAllocator> >::other > & vec) { this->polygons = vec; }
00046 private:
00047 static const char* __s_getDataType_() { return "art_msgs/ArtLanes"; }
00048 public:
00049 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00050
00051 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00052
00053 private:
00054 static const char* __s_getMD5Sum_() { return "384de56fb723b4265b396fcf86b17531"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00057
00058 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00059
00060 private:
00061 static const char* __s_getMessageDefinition_() { return "# ART lanes message\n\
00062 # $Id: ArtLanes.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00063 \n\
00064 Header header\n\
00065 ArtQuadrilateral[] polygons\n\
00066 \n\
00067 ================================================================================\n\
00068 MSG: std_msgs/Header\n\
00069 # Standard metadata for higher-level stamped data types.\n\
00070 # This is generally used to communicate timestamped data \n\
00071 # in a particular coordinate frame.\n\
00072 # \n\
00073 # sequence ID: consecutively increasing ID \n\
00074 uint32 seq\n\
00075 #Two-integer timestamp that is expressed as:\n\
00076 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00077 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00078 # time-handling sugar is provided by the client library\n\
00079 time stamp\n\
00080 #Frame this data is associated with\n\
00081 # 0: no frame\n\
00082 # 1: global frame\n\
00083 string frame_id\n\
00084 \n\
00085 ================================================================================\n\
00086 MSG: art_msgs/ArtQuadrilateral\n\
00087 # ART quadrilateral polygon\n\
00088 # $Id: ArtQuadrilateral.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00089 \n\
00090 # Each of these polygons is a quadrilateral. The four vertex points\n\
00091 # are ordered relative to the heading of the lane containing it.\n\
00092 \n\
00093 geometry_msgs/Polygon poly\n\
00094 int32 bottom_left = 0\n\
00095 int32 top_left = 1\n\
00096 int32 top_right = 2\n\
00097 int32 bottom_right = 3\n\
00098 int32 quad_size = 4\n\
00099 \n\
00100 geometry_msgs/Point midpoint # Middle of the polygon\n\
00101 \n\
00102 float32 heading # average of right and left boundary headings\n\
00103 float32 length # length of the polygon\n\
00104 int32 poly_id # unique MapLanes ID\n\
00105 \n\
00106 bool is_stop # this poly has a stop waypoint\n\
00107 bool is_transition # not a lane polygon, no waypoint\n\
00108 bool contains_way # both start_way and end_way are the contained waypoint\n\
00109 \n\
00110 MapID start_way\n\
00111 MapID end_way\n\
00112 \n\
00113 LaneMarking left_boundary\n\
00114 LaneMarking right_boundary\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: geometry_msgs/Polygon\n\
00118 #A specification of a polygon where the first and last points are assumed to be connected\n\
00119 geometry_msgs/Point32[] points\n\
00120 \n\
00121 ================================================================================\n\
00122 MSG: geometry_msgs/Point32\n\
00123 # This contains the position of a point in free space(with 32 bits of precision).\n\
00124 # It is recommeded to use Point wherever possible instead of Point32. \n\
00125 # \n\
00126 # This recommendation is to promote interoperability. \n\
00127 #\n\
00128 # This message is designed to take up less space when sending\n\
00129 # lots of points at once, as in the case of a PointCloud. \n\
00130 \n\
00131 float32 x\n\
00132 float32 y\n\
00133 float32 z\n\
00134 ================================================================================\n\
00135 MSG: geometry_msgs/Point\n\
00136 # This contains the position of a point in free space\n\
00137 float64 x\n\
00138 float64 y\n\
00139 float64 z\n\
00140 \n\
00141 ================================================================================\n\
00142 MSG: art_msgs/MapID\n\
00143 # Road map identifier for segments, lanes and way-points.\n\
00144 # $Id: MapID.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00145 \n\
00146 uint16 NULL_ID = 65535\n\
00147 \n\
00148 uint16 seg # segment ID\n\
00149 uint16 lane # lane ID\n\
00150 uint16 pt # way-point ID\n\
00151 \n\
00152 ================================================================================\n\
00153 MSG: art_msgs/LaneMarking\n\
00154 # Route Network Definition File lane marking\n\
00155 # $Id: LaneMarking.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00156 \n\
00157 int16 DOUBLE_YELLOW = 0\n\
00158 int16 SOLID_YELLOW = 1\n\
00159 int16 SOLID_WHITE = 2\n\
00160 int16 BROKEN_WHITE = 3\n\
00161 int16 UNDEFINED = 4\n\
00162 \n\
00163 int16 lane_marking\n\
00164 \n\
00165 "; }
00166 public:
00167 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00168
00169 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00170
00171 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00172 {
00173 ros::serialization::OStream stream(write_ptr, 1000000000);
00174 ros::serialization::serialize(stream, header);
00175 ros::serialization::serialize(stream, polygons);
00176 return stream.getData();
00177 }
00178
00179 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00180 {
00181 ros::serialization::IStream stream(read_ptr, 1000000000);
00182 ros::serialization::deserialize(stream, header);
00183 ros::serialization::deserialize(stream, polygons);
00184 return stream.getData();
00185 }
00186
00187 ROS_DEPRECATED virtual uint32_t serializationLength() const
00188 {
00189 uint32_t size = 0;
00190 size += ros::serialization::serializationLength(header);
00191 size += ros::serialization::serializationLength(polygons);
00192 return size;
00193 }
00194
00195 typedef boost::shared_ptr< ::art_msgs::ArtLanes_<ContainerAllocator> > Ptr;
00196 typedef boost::shared_ptr< ::art_msgs::ArtLanes_<ContainerAllocator> const> ConstPtr;
00197 };
00198 typedef ::art_msgs::ArtLanes_<std::allocator<void> > ArtLanes;
00199
00200 typedef boost::shared_ptr< ::art_msgs::ArtLanes> ArtLanesPtr;
00201 typedef boost::shared_ptr< ::art_msgs::ArtLanes const> ArtLanesConstPtr;
00202
00203
00204 template<typename ContainerAllocator>
00205 std::ostream& operator<<(std::ostream& s, const ::art_msgs::ArtLanes_<ContainerAllocator> & v)
00206 {
00207 ros::message_operations::Printer< ::art_msgs::ArtLanes_<ContainerAllocator> >::stream(s, "", v);
00208 return s;}
00209
00210 }
00211
00212 namespace ros
00213 {
00214 namespace message_traits
00215 {
00216 template<class ContainerAllocator>
00217 struct MD5Sum< ::art_msgs::ArtLanes_<ContainerAllocator> > {
00218 static const char* value()
00219 {
00220 return "384de56fb723b4265b396fcf86b17531";
00221 }
00222
00223 static const char* value(const ::art_msgs::ArtLanes_<ContainerAllocator> &) { return value(); }
00224 static const uint64_t static_value1 = 0x384de56fb723b426ULL;
00225 static const uint64_t static_value2 = 0x5b396fcf86b17531ULL;
00226 };
00227
00228 template<class ContainerAllocator>
00229 struct DataType< ::art_msgs::ArtLanes_<ContainerAllocator> > {
00230 static const char* value()
00231 {
00232 return "art_msgs/ArtLanes";
00233 }
00234
00235 static const char* value(const ::art_msgs::ArtLanes_<ContainerAllocator> &) { return value(); }
00236 };
00237
00238 template<class ContainerAllocator>
00239 struct Definition< ::art_msgs::ArtLanes_<ContainerAllocator> > {
00240 static const char* value()
00241 {
00242 return "# ART lanes message\n\
00243 # $Id: ArtLanes.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00244 \n\
00245 Header header\n\
00246 ArtQuadrilateral[] polygons\n\
00247 \n\
00248 ================================================================================\n\
00249 MSG: std_msgs/Header\n\
00250 # Standard metadata for higher-level stamped data types.\n\
00251 # This is generally used to communicate timestamped data \n\
00252 # in a particular coordinate frame.\n\
00253 # \n\
00254 # sequence ID: consecutively increasing ID \n\
00255 uint32 seq\n\
00256 #Two-integer timestamp that is expressed as:\n\
00257 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00258 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00259 # time-handling sugar is provided by the client library\n\
00260 time stamp\n\
00261 #Frame this data is associated with\n\
00262 # 0: no frame\n\
00263 # 1: global frame\n\
00264 string frame_id\n\
00265 \n\
00266 ================================================================================\n\
00267 MSG: art_msgs/ArtQuadrilateral\n\
00268 # ART quadrilateral polygon\n\
00269 # $Id: ArtQuadrilateral.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00270 \n\
00271 # Each of these polygons is a quadrilateral. The four vertex points\n\
00272 # are ordered relative to the heading of the lane containing it.\n\
00273 \n\
00274 geometry_msgs/Polygon poly\n\
00275 int32 bottom_left = 0\n\
00276 int32 top_left = 1\n\
00277 int32 top_right = 2\n\
00278 int32 bottom_right = 3\n\
00279 int32 quad_size = 4\n\
00280 \n\
00281 geometry_msgs/Point midpoint # Middle of the polygon\n\
00282 \n\
00283 float32 heading # average of right and left boundary headings\n\
00284 float32 length # length of the polygon\n\
00285 int32 poly_id # unique MapLanes ID\n\
00286 \n\
00287 bool is_stop # this poly has a stop waypoint\n\
00288 bool is_transition # not a lane polygon, no waypoint\n\
00289 bool contains_way # both start_way and end_way are the contained waypoint\n\
00290 \n\
00291 MapID start_way\n\
00292 MapID end_way\n\
00293 \n\
00294 LaneMarking left_boundary\n\
00295 LaneMarking right_boundary\n\
00296 \n\
00297 ================================================================================\n\
00298 MSG: geometry_msgs/Polygon\n\
00299 #A specification of a polygon where the first and last points are assumed to be connected\n\
00300 geometry_msgs/Point32[] points\n\
00301 \n\
00302 ================================================================================\n\
00303 MSG: geometry_msgs/Point32\n\
00304 # This contains the position of a point in free space(with 32 bits of precision).\n\
00305 # It is recommeded to use Point wherever possible instead of Point32. \n\
00306 # \n\
00307 # This recommendation is to promote interoperability. \n\
00308 #\n\
00309 # This message is designed to take up less space when sending\n\
00310 # lots of points at once, as in the case of a PointCloud. \n\
00311 \n\
00312 float32 x\n\
00313 float32 y\n\
00314 float32 z\n\
00315 ================================================================================\n\
00316 MSG: geometry_msgs/Point\n\
00317 # This contains the position of a point in free space\n\
00318 float64 x\n\
00319 float64 y\n\
00320 float64 z\n\
00321 \n\
00322 ================================================================================\n\
00323 MSG: art_msgs/MapID\n\
00324 # Road map identifier for segments, lanes and way-points.\n\
00325 # $Id: MapID.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00326 \n\
00327 uint16 NULL_ID = 65535\n\
00328 \n\
00329 uint16 seg # segment ID\n\
00330 uint16 lane # lane ID\n\
00331 uint16 pt # way-point ID\n\
00332 \n\
00333 ================================================================================\n\
00334 MSG: art_msgs/LaneMarking\n\
00335 # Route Network Definition File lane marking\n\
00336 # $Id: LaneMarking.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00337 \n\
00338 int16 DOUBLE_YELLOW = 0\n\
00339 int16 SOLID_YELLOW = 1\n\
00340 int16 SOLID_WHITE = 2\n\
00341 int16 BROKEN_WHITE = 3\n\
00342 int16 UNDEFINED = 4\n\
00343 \n\
00344 int16 lane_marking\n\
00345 \n\
00346 ";
00347 }
00348
00349 static const char* value(const ::art_msgs::ArtLanes_<ContainerAllocator> &) { return value(); }
00350 };
00351
00352 template<class ContainerAllocator> struct HasHeader< ::art_msgs::ArtLanes_<ContainerAllocator> > : public TrueType {};
00353 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::ArtLanes_<ContainerAllocator> > : public TrueType {};
00354 }
00355 }
00356
00357 namespace ros
00358 {
00359 namespace serialization
00360 {
00361
00362 template<class ContainerAllocator> struct Serializer< ::art_msgs::ArtLanes_<ContainerAllocator> >
00363 {
00364 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00365 {
00366 stream.next(m.header);
00367 stream.next(m.polygons);
00368 }
00369
00370 ROS_DECLARE_ALLINONE_SERIALIZER;
00371 };
00372 }
00373 }
00374
00375 namespace ros
00376 {
00377 namespace message_operations
00378 {
00379
00380 template<class ContainerAllocator>
00381 struct Printer< ::art_msgs::ArtLanes_<ContainerAllocator> >
00382 {
00383 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::ArtLanes_<ContainerAllocator> & v)
00384 {
00385 s << indent << "header: ";
00386 s << std::endl;
00387 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00388 s << indent << "polygons[]" << std::endl;
00389 for (size_t i = 0; i < v.polygons.size(); ++i)
00390 {
00391 s << indent << " polygons[" << i << "]: ";
00392 s << std::endl;
00393 s << indent;
00394 Printer< ::art_msgs::ArtQuadrilateral_<ContainerAllocator> >::stream(s, indent + " ", v.polygons[i]);
00395 }
00396 }
00397 };
00398
00399
00400 }
00401 }
00402
00403 #endif // ART_MSGS_MESSAGE_ARTLANES_H
00404