00001
00002 #ifndef ART_MSGS_MESSAGE_NAVIGATORCOMMAND_H
00003 #define ART_MSGS_MESSAGE_NAVIGATORCOMMAND_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/Order.h"
00015
00016 namespace art_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct NavigatorCommand_ : public ros::Message
00020 {
00021 typedef NavigatorCommand_<ContainerAllocator> Type;
00022
00023 NavigatorCommand_()
00024 : header()
00025 , order()
00026 {
00027 }
00028
00029 NavigatorCommand_(const ContainerAllocator& _alloc)
00030 : header(_alloc)
00031 , order(_alloc)
00032 {
00033 }
00034
00035 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00036 ::std_msgs::Header_<ContainerAllocator> header;
00037
00038 typedef ::art_msgs::Order_<ContainerAllocator> _order_type;
00039 ::art_msgs::Order_<ContainerAllocator> order;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "art_msgs/NavigatorCommand"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "415e5ee8b2ed1c9329a949ed123760f3"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "# navigator command message\n\
00058 # $Id: NavigatorCommand.msg 615 2010-09-24 16:07:50Z jack.oquin $\n\
00059 \n\
00060 Header header\n\
00061 Order order\n\
00062 \n\
00063 ================================================================================\n\
00064 MSG: std_msgs/Header\n\
00065 # Standard metadata for higher-level stamped data types.\n\
00066 # This is generally used to communicate timestamped data \n\
00067 # in a particular coordinate frame.\n\
00068 # \n\
00069 # sequence ID: consecutively increasing ID \n\
00070 uint32 seq\n\
00071 #Two-integer timestamp that is expressed as:\n\
00072 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00073 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00074 # time-handling sugar is provided by the client library\n\
00075 time stamp\n\
00076 #Frame this data is associated with\n\
00077 # 0: no frame\n\
00078 # 1: global frame\n\
00079 string frame_id\n\
00080 \n\
00081 ================================================================================\n\
00082 MSG: art_msgs/Order\n\
00083 # commander order for the navigator\n\
00084 # $Id: Order.msg 615 2010-09-24 16:07:50Z jack.oquin $\n\
00085 \n\
00086 uint32 N_WAYPTS = 5 # number of way-points in order\n\
00087 uint32 N_CHKPTS = 2 # number of checkpoints in order\n\
00088 \n\
00089 Behavior behavior # requested behavior\n\
00090 art_msgs/WayPoint[5] waypt # way-point array\n\
00091 art_msgs/WayPoint[2] chkpt # next two goal checkpoints\n\
00092 float32 min_speed # in meters/sec\n\
00093 float32 max_speed\n\
00094 int32 replan_num\n\
00095 int32 next_uturn # Uturn between [1] and [2]\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: art_msgs/Behavior\n\
00099 # ART Navigator behaviors (lower numbers have higher priority)\n\
00100 # $Id: Behavior.msg 996 2011-02-27 16:07:34Z jack.oquin $\n\
00101 \n\
00102 # enumerated behavior values\n\
00103 int16 Abort = 0\n\
00104 int16 Quit = 1\n\
00105 int16 Pause = 2\n\
00106 int16 Run = 3\n\
00107 int16 Suspend = 4\n\
00108 int16 Initialize = 5\n\
00109 int16 Go = 6\n\
00110 int16 NONE = 7\n\
00111 int16 N_behaviors = 8\n\
00112 \n\
00113 int16 value\n\
00114 \n\
00115 ================================================================================\n\
00116 MSG: art_msgs/WayPoint\n\
00117 # 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, header);
00171 ros::serialization::serialize(stream, order);
00172 return stream.getData();
00173 }
00174
00175 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00176 {
00177 ros::serialization::IStream stream(read_ptr, 1000000000);
00178 ros::serialization::deserialize(stream, header);
00179 ros::serialization::deserialize(stream, order);
00180 return stream.getData();
00181 }
00182
00183 ROS_DEPRECATED virtual uint32_t serializationLength() const
00184 {
00185 uint32_t size = 0;
00186 size += ros::serialization::serializationLength(header);
00187 size += ros::serialization::serializationLength(order);
00188 return size;
00189 }
00190
00191 typedef boost::shared_ptr< ::art_msgs::NavigatorCommand_<ContainerAllocator> > Ptr;
00192 typedef boost::shared_ptr< ::art_msgs::NavigatorCommand_<ContainerAllocator> const> ConstPtr;
00193 };
00194 typedef ::art_msgs::NavigatorCommand_<std::allocator<void> > NavigatorCommand;
00195
00196 typedef boost::shared_ptr< ::art_msgs::NavigatorCommand> NavigatorCommandPtr;
00197 typedef boost::shared_ptr< ::art_msgs::NavigatorCommand const> NavigatorCommandConstPtr;
00198
00199
00200 template<typename ContainerAllocator>
00201 std::ostream& operator<<(std::ostream& s, const ::art_msgs::NavigatorCommand_<ContainerAllocator> & v)
00202 {
00203 ros::message_operations::Printer< ::art_msgs::NavigatorCommand_<ContainerAllocator> >::stream(s, "", v);
00204 return s;}
00205
00206 }
00207
00208 namespace ros
00209 {
00210 namespace message_traits
00211 {
00212 template<class ContainerAllocator>
00213 struct MD5Sum< ::art_msgs::NavigatorCommand_<ContainerAllocator> > {
00214 static const char* value()
00215 {
00216 return "415e5ee8b2ed1c9329a949ed123760f3";
00217 }
00218
00219 static const char* value(const ::art_msgs::NavigatorCommand_<ContainerAllocator> &) { return value(); }
00220 static const uint64_t static_value1 = 0x415e5ee8b2ed1c93ULL;
00221 static const uint64_t static_value2 = 0x29a949ed123760f3ULL;
00222 };
00223
00224 template<class ContainerAllocator>
00225 struct DataType< ::art_msgs::NavigatorCommand_<ContainerAllocator> > {
00226 static const char* value()
00227 {
00228 return "art_msgs/NavigatorCommand";
00229 }
00230
00231 static const char* value(const ::art_msgs::NavigatorCommand_<ContainerAllocator> &) { return value(); }
00232 };
00233
00234 template<class ContainerAllocator>
00235 struct Definition< ::art_msgs::NavigatorCommand_<ContainerAllocator> > {
00236 static const char* value()
00237 {
00238 return "# navigator command message\n\
00239 # $Id: NavigatorCommand.msg 615 2010-09-24 16:07:50Z jack.oquin $\n\
00240 \n\
00241 Header header\n\
00242 Order order\n\
00243 \n\
00244 ================================================================================\n\
00245 MSG: std_msgs/Header\n\
00246 # Standard metadata for higher-level stamped data types.\n\
00247 # This is generally used to communicate timestamped data \n\
00248 # in a particular coordinate frame.\n\
00249 # \n\
00250 # sequence ID: consecutively increasing ID \n\
00251 uint32 seq\n\
00252 #Two-integer timestamp that is expressed as:\n\
00253 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00254 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00255 # time-handling sugar is provided by the client library\n\
00256 time stamp\n\
00257 #Frame this data is associated with\n\
00258 # 0: no frame\n\
00259 # 1: global frame\n\
00260 string frame_id\n\
00261 \n\
00262 ================================================================================\n\
00263 MSG: art_msgs/Order\n\
00264 # commander order for the navigator\n\
00265 # $Id: Order.msg 615 2010-09-24 16:07:50Z jack.oquin $\n\
00266 \n\
00267 uint32 N_WAYPTS = 5 # number of way-points in order\n\
00268 uint32 N_CHKPTS = 2 # number of checkpoints in order\n\
00269 \n\
00270 Behavior behavior # requested behavior\n\
00271 art_msgs/WayPoint[5] waypt # way-point array\n\
00272 art_msgs/WayPoint[2] chkpt # next two goal checkpoints\n\
00273 float32 min_speed # in meters/sec\n\
00274 float32 max_speed\n\
00275 int32 replan_num\n\
00276 int32 next_uturn # Uturn between [1] and [2]\n\
00277 \n\
00278 ================================================================================\n\
00279 MSG: art_msgs/Behavior\n\
00280 # ART Navigator behaviors (lower numbers have higher priority)\n\
00281 # $Id: Behavior.msg 996 2011-02-27 16:07:34Z jack.oquin $\n\
00282 \n\
00283 # enumerated behavior values\n\
00284 int16 Abort = 0\n\
00285 int16 Quit = 1\n\
00286 int16 Pause = 2\n\
00287 int16 Run = 3\n\
00288 int16 Suspend = 4\n\
00289 int16 Initialize = 5\n\
00290 int16 Go = 6\n\
00291 int16 NONE = 7\n\
00292 int16 N_behaviors = 8\n\
00293 \n\
00294 int16 value\n\
00295 \n\
00296 ================================================================================\n\
00297 MSG: art_msgs/WayPoint\n\
00298 # Way-point attributes\n\
00299 # $Id: WayPoint.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00300 \n\
00301 float64 latitude # latitude in degrees\n\
00302 float64 longitude # longitude in degrees\n\
00303 geometry_msgs/Point32 mapxy # MapXY position\n\
00304 MapID id # way-point ID\n\
00305 uint16 index # parser index of waypoint\n\
00306 \n\
00307 # way-point flags\n\
00308 bool is_entry # lane or zone exit point\n\
00309 bool is_exit # lane or zone entry point\n\
00310 bool is_goal # this is a goal checkpoint\n\
00311 bool is_lane_change # change lanes after here\n\
00312 bool is_spot # parking spot\n\
00313 bool is_stop # stop line here\n\
00314 bool is_perimeter # zone perimeter point\n\
00315 int32 checkpoint_id # checkpoint ID or zero\n\
00316 float32 lane_width\n\
00317 \n\
00318 ================================================================================\n\
00319 MSG: geometry_msgs/Point32\n\
00320 # This contains the position of a point in free space(with 32 bits of precision).\n\
00321 # It is recommeded to use Point wherever possible instead of Point32. \n\
00322 # \n\
00323 # This recommendation is to promote interoperability. \n\
00324 #\n\
00325 # This message is designed to take up less space when sending\n\
00326 # lots of points at once, as in the case of a PointCloud. \n\
00327 \n\
00328 float32 x\n\
00329 float32 y\n\
00330 float32 z\n\
00331 ================================================================================\n\
00332 MSG: art_msgs/MapID\n\
00333 # Road map identifier for segments, lanes and way-points.\n\
00334 # $Id: MapID.msg 614 2010-09-24 15:08:46Z jack.oquin $\n\
00335 \n\
00336 uint16 NULL_ID = 65535\n\
00337 \n\
00338 uint16 seg # segment ID\n\
00339 uint16 lane # lane ID\n\
00340 uint16 pt # way-point ID\n\
00341 \n\
00342 ";
00343 }
00344
00345 static const char* value(const ::art_msgs::NavigatorCommand_<ContainerAllocator> &) { return value(); }
00346 };
00347
00348 template<class ContainerAllocator> struct HasHeader< ::art_msgs::NavigatorCommand_<ContainerAllocator> > : public TrueType {};
00349 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::NavigatorCommand_<ContainerAllocator> > : public TrueType {};
00350 }
00351 }
00352
00353 namespace ros
00354 {
00355 namespace serialization
00356 {
00357
00358 template<class ContainerAllocator> struct Serializer< ::art_msgs::NavigatorCommand_<ContainerAllocator> >
00359 {
00360 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00361 {
00362 stream.next(m.header);
00363 stream.next(m.order);
00364 }
00365
00366 ROS_DECLARE_ALLINONE_SERIALIZER;
00367 };
00368 }
00369 }
00370
00371 namespace ros
00372 {
00373 namespace message_operations
00374 {
00375
00376 template<class ContainerAllocator>
00377 struct Printer< ::art_msgs::NavigatorCommand_<ContainerAllocator> >
00378 {
00379 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::NavigatorCommand_<ContainerAllocator> & v)
00380 {
00381 s << indent << "header: ";
00382 s << std::endl;
00383 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00384 s << indent << "order: ";
00385 s << std::endl;
00386 Printer< ::art_msgs::Order_<ContainerAllocator> >::stream(s, indent + " ", v.order);
00387 }
00388 };
00389
00390
00391 }
00392 }
00393
00394 #endif // ART_MSGS_MESSAGE_NAVIGATORCOMMAND_H
00395