00001
00002 #ifndef NAV_MSGS_SERVICE_GETPLAN_H
00003 #define NAV_MSGS_SERVICE_GETPLAN_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 "ros/service_traits.h"
00014
00015 #include "geometry_msgs/PoseStamped.h"
00016 #include "geometry_msgs/PoseStamped.h"
00017
00018
00019 #include "nav_msgs/Path.h"
00020
00021 namespace nav_msgs
00022 {
00023 template <class ContainerAllocator>
00024 struct GetPlanRequest_ : public ros::Message
00025 {
00026 typedef GetPlanRequest_<ContainerAllocator> Type;
00027
00028 GetPlanRequest_()
00029 : start()
00030 , goal()
00031 , tolerance(0.0)
00032 {
00033 }
00034
00035 GetPlanRequest_(const ContainerAllocator& _alloc)
00036 : start(_alloc)
00037 , goal(_alloc)
00038 , tolerance(0.0)
00039 {
00040 }
00041
00042 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _start_type;
00043 ::geometry_msgs::PoseStamped_<ContainerAllocator> start;
00044
00045 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _goal_type;
00046 ::geometry_msgs::PoseStamped_<ContainerAllocator> goal;
00047
00048 typedef float _tolerance_type;
00049 float tolerance;
00050
00051
00052 private:
00053 static const char* __s_getDataType_() { return "nav_msgs/GetPlanRequest"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00056
00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00058
00059 private:
00060 static const char* __s_getMD5Sum_() { return "e25a43e0752bcca599a8c2eef8282df8"; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00063
00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00065
00066 private:
00067 static const char* __s_getServerMD5Sum_() { return "421c8ea4d21c6c9db7054b4bbdf1e024"; }
00068 public:
00069 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00070
00071 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00072
00073 private:
00074 static const char* __s_getMessageDefinition_() { return "\n\
00075 \n\
00076 \n\
00077 geometry_msgs/PoseStamped start\n\
00078 \n\
00079 \n\
00080 geometry_msgs/PoseStamped goal\n\
00081 \n\
00082 \n\
00083 \n\
00084 float32 tolerance\n\
00085 \n\
00086 ================================================================================\n\
00087 MSG: geometry_msgs/PoseStamped\n\
00088 # A Pose with reference coordinate frame and timestamp\n\
00089 Header header\n\
00090 Pose pose\n\
00091 \n\
00092 ================================================================================\n\
00093 MSG: std_msgs/Header\n\
00094 # Standard metadata for higher-level stamped data types.\n\
00095 # This is generally used to communicate timestamped data \n\
00096 # in a particular coordinate frame.\n\
00097 # \n\
00098 # sequence ID: consecutively increasing ID \n\
00099 uint32 seq\n\
00100 #Two-integer timestamp that is expressed as:\n\
00101 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00102 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00103 # time-handling sugar is provided by the client library\n\
00104 time stamp\n\
00105 #Frame this data is associated with\n\
00106 # 0: no frame\n\
00107 # 1: global frame\n\
00108 string frame_id\n\
00109 \n\
00110 ================================================================================\n\
00111 MSG: geometry_msgs/Pose\n\
00112 # A representation of pose in free space, composed of postion and orientation. \n\
00113 Point position\n\
00114 Quaternion orientation\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: geometry_msgs/Point\n\
00118 # This contains the position of a point in free space\n\
00119 float64 x\n\
00120 float64 y\n\
00121 float64 z\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: geometry_msgs/Quaternion\n\
00125 # This represents an orientation in free space in quaternion form.\n\
00126 \n\
00127 float64 x\n\
00128 float64 y\n\
00129 float64 z\n\
00130 float64 w\n\
00131 \n\
00132 "; }
00133 public:
00134 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00135
00136 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00137
00138 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00139 {
00140 ros::serialization::OStream stream(write_ptr, 1000000000);
00141 ros::serialization::serialize(stream, start);
00142 ros::serialization::serialize(stream, goal);
00143 ros::serialization::serialize(stream, tolerance);
00144 return stream.getData();
00145 }
00146
00147 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00148 {
00149 ros::serialization::IStream stream(read_ptr, 1000000000);
00150 ros::serialization::deserialize(stream, start);
00151 ros::serialization::deserialize(stream, goal);
00152 ros::serialization::deserialize(stream, tolerance);
00153 return stream.getData();
00154 }
00155
00156 ROS_DEPRECATED virtual uint32_t serializationLength() const
00157 {
00158 uint32_t size = 0;
00159 size += ros::serialization::serializationLength(start);
00160 size += ros::serialization::serializationLength(goal);
00161 size += ros::serialization::serializationLength(tolerance);
00162 return size;
00163 }
00164
00165 typedef boost::shared_ptr< ::nav_msgs::GetPlanRequest_<ContainerAllocator> > Ptr;
00166 typedef boost::shared_ptr< ::nav_msgs::GetPlanRequest_<ContainerAllocator> const> ConstPtr;
00167 };
00168 typedef ::nav_msgs::GetPlanRequest_<std::allocator<void> > GetPlanRequest;
00169
00170 typedef boost::shared_ptr< ::nav_msgs::GetPlanRequest> GetPlanRequestPtr;
00171 typedef boost::shared_ptr< ::nav_msgs::GetPlanRequest const> GetPlanRequestConstPtr;
00172
00173
00174 template <class ContainerAllocator>
00175 struct GetPlanResponse_ : public ros::Message
00176 {
00177 typedef GetPlanResponse_<ContainerAllocator> Type;
00178
00179 GetPlanResponse_()
00180 : plan()
00181 {
00182 }
00183
00184 GetPlanResponse_(const ContainerAllocator& _alloc)
00185 : plan(_alloc)
00186 {
00187 }
00188
00189 typedef ::nav_msgs::Path_<ContainerAllocator> _plan_type;
00190 ::nav_msgs::Path_<ContainerAllocator> plan;
00191
00192
00193 private:
00194 static const char* __s_getDataType_() { return "nav_msgs/GetPlanResponse"; }
00195 public:
00196 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00197
00198 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00199
00200 private:
00201 static const char* __s_getMD5Sum_() { return "0002bc113c0259d71f6cf8cbc9430e18"; }
00202 public:
00203 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00204
00205 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00206
00207 private:
00208 static const char* __s_getServerMD5Sum_() { return "421c8ea4d21c6c9db7054b4bbdf1e024"; }
00209 public:
00210 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00211
00212 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00213
00214 private:
00215 static const char* __s_getMessageDefinition_() { return "nav_msgs/Path plan\n\
00216 \n\
00217 \n\
00218 ================================================================================\n\
00219 MSG: nav_msgs/Path\n\
00220 #An array of poses that represents a Path for a robot to follow\n\
00221 Header header\n\
00222 geometry_msgs/PoseStamped[] poses\n\
00223 \n\
00224 ================================================================================\n\
00225 MSG: std_msgs/Header\n\
00226 # Standard metadata for higher-level stamped data types.\n\
00227 # This is generally used to communicate timestamped data \n\
00228 # in a particular coordinate frame.\n\
00229 # \n\
00230 # sequence ID: consecutively increasing ID \n\
00231 uint32 seq\n\
00232 #Two-integer timestamp that is expressed as:\n\
00233 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00234 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00235 # time-handling sugar is provided by the client library\n\
00236 time stamp\n\
00237 #Frame this data is associated with\n\
00238 # 0: no frame\n\
00239 # 1: global frame\n\
00240 string frame_id\n\
00241 \n\
00242 ================================================================================\n\
00243 MSG: geometry_msgs/PoseStamped\n\
00244 # A Pose with reference coordinate frame and timestamp\n\
00245 Header header\n\
00246 Pose pose\n\
00247 \n\
00248 ================================================================================\n\
00249 MSG: geometry_msgs/Pose\n\
00250 # A representation of pose in free space, composed of postion and orientation. \n\
00251 Point position\n\
00252 Quaternion orientation\n\
00253 \n\
00254 ================================================================================\n\
00255 MSG: geometry_msgs/Point\n\
00256 # This contains the position of a point in free space\n\
00257 float64 x\n\
00258 float64 y\n\
00259 float64 z\n\
00260 \n\
00261 ================================================================================\n\
00262 MSG: geometry_msgs/Quaternion\n\
00263 # This represents an orientation in free space in quaternion form.\n\
00264 \n\
00265 float64 x\n\
00266 float64 y\n\
00267 float64 z\n\
00268 float64 w\n\
00269 \n\
00270 "; }
00271 public:
00272 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00273
00274 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00275
00276 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00277 {
00278 ros::serialization::OStream stream(write_ptr, 1000000000);
00279 ros::serialization::serialize(stream, plan);
00280 return stream.getData();
00281 }
00282
00283 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00284 {
00285 ros::serialization::IStream stream(read_ptr, 1000000000);
00286 ros::serialization::deserialize(stream, plan);
00287 return stream.getData();
00288 }
00289
00290 ROS_DEPRECATED virtual uint32_t serializationLength() const
00291 {
00292 uint32_t size = 0;
00293 size += ros::serialization::serializationLength(plan);
00294 return size;
00295 }
00296
00297 typedef boost::shared_ptr< ::nav_msgs::GetPlanResponse_<ContainerAllocator> > Ptr;
00298 typedef boost::shared_ptr< ::nav_msgs::GetPlanResponse_<ContainerAllocator> const> ConstPtr;
00299 };
00300 typedef ::nav_msgs::GetPlanResponse_<std::allocator<void> > GetPlanResponse;
00301
00302 typedef boost::shared_ptr< ::nav_msgs::GetPlanResponse> GetPlanResponsePtr;
00303 typedef boost::shared_ptr< ::nav_msgs::GetPlanResponse const> GetPlanResponseConstPtr;
00304
00305 struct GetPlan
00306 {
00307
00308 typedef GetPlanRequest Request;
00309 typedef GetPlanResponse Response;
00310 Request request;
00311 Response response;
00312
00313 typedef Request RequestType;
00314 typedef Response ResponseType;
00315 };
00316 }
00317
00318 namespace ros
00319 {
00320 namespace message_traits
00321 {
00322 template<class ContainerAllocator>
00323 struct MD5Sum< ::nav_msgs::GetPlanRequest_<ContainerAllocator> > {
00324 static const char* value()
00325 {
00326 return "e25a43e0752bcca599a8c2eef8282df8";
00327 }
00328
00329 static const char* value(const ::nav_msgs::GetPlanRequest_<ContainerAllocator> &) { return value(); }
00330 static const uint64_t static_value1 = 0xe25a43e0752bcca5ULL;
00331 static const uint64_t static_value2 = 0x99a8c2eef8282df8ULL;
00332 };
00333
00334 template<class ContainerAllocator>
00335 struct DataType< ::nav_msgs::GetPlanRequest_<ContainerAllocator> > {
00336 static const char* value()
00337 {
00338 return "nav_msgs/GetPlanRequest";
00339 }
00340
00341 static const char* value(const ::nav_msgs::GetPlanRequest_<ContainerAllocator> &) { return value(); }
00342 };
00343
00344 template<class ContainerAllocator>
00345 struct Definition< ::nav_msgs::GetPlanRequest_<ContainerAllocator> > {
00346 static const char* value()
00347 {
00348 return "\n\
00349 \n\
00350 \n\
00351 geometry_msgs/PoseStamped start\n\
00352 \n\
00353 \n\
00354 geometry_msgs/PoseStamped goal\n\
00355 \n\
00356 \n\
00357 \n\
00358 float32 tolerance\n\
00359 \n\
00360 ================================================================================\n\
00361 MSG: geometry_msgs/PoseStamped\n\
00362 # A Pose with reference coordinate frame and timestamp\n\
00363 Header header\n\
00364 Pose pose\n\
00365 \n\
00366 ================================================================================\n\
00367 MSG: std_msgs/Header\n\
00368 # Standard metadata for higher-level stamped data types.\n\
00369 # This is generally used to communicate timestamped data \n\
00370 # in a particular coordinate frame.\n\
00371 # \n\
00372 # sequence ID: consecutively increasing ID \n\
00373 uint32 seq\n\
00374 #Two-integer timestamp that is expressed as:\n\
00375 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00376 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00377 # time-handling sugar is provided by the client library\n\
00378 time stamp\n\
00379 #Frame this data is associated with\n\
00380 # 0: no frame\n\
00381 # 1: global frame\n\
00382 string frame_id\n\
00383 \n\
00384 ================================================================================\n\
00385 MSG: geometry_msgs/Pose\n\
00386 # A representation of pose in free space, composed of postion and orientation. \n\
00387 Point position\n\
00388 Quaternion orientation\n\
00389 \n\
00390 ================================================================================\n\
00391 MSG: geometry_msgs/Point\n\
00392 # This contains the position of a point in free space\n\
00393 float64 x\n\
00394 float64 y\n\
00395 float64 z\n\
00396 \n\
00397 ================================================================================\n\
00398 MSG: geometry_msgs/Quaternion\n\
00399 # This represents an orientation in free space in quaternion form.\n\
00400 \n\
00401 float64 x\n\
00402 float64 y\n\
00403 float64 z\n\
00404 float64 w\n\
00405 \n\
00406 ";
00407 }
00408
00409 static const char* value(const ::nav_msgs::GetPlanRequest_<ContainerAllocator> &) { return value(); }
00410 };
00411
00412 }
00413 }
00414
00415
00416 namespace ros
00417 {
00418 namespace message_traits
00419 {
00420 template<class ContainerAllocator>
00421 struct MD5Sum< ::nav_msgs::GetPlanResponse_<ContainerAllocator> > {
00422 static const char* value()
00423 {
00424 return "0002bc113c0259d71f6cf8cbc9430e18";
00425 }
00426
00427 static const char* value(const ::nav_msgs::GetPlanResponse_<ContainerAllocator> &) { return value(); }
00428 static const uint64_t static_value1 = 0x0002bc113c0259d7ULL;
00429 static const uint64_t static_value2 = 0x1f6cf8cbc9430e18ULL;
00430 };
00431
00432 template<class ContainerAllocator>
00433 struct DataType< ::nav_msgs::GetPlanResponse_<ContainerAllocator> > {
00434 static const char* value()
00435 {
00436 return "nav_msgs/GetPlanResponse";
00437 }
00438
00439 static const char* value(const ::nav_msgs::GetPlanResponse_<ContainerAllocator> &) { return value(); }
00440 };
00441
00442 template<class ContainerAllocator>
00443 struct Definition< ::nav_msgs::GetPlanResponse_<ContainerAllocator> > {
00444 static const char* value()
00445 {
00446 return "nav_msgs/Path plan\n\
00447 \n\
00448 \n\
00449 ================================================================================\n\
00450 MSG: nav_msgs/Path\n\
00451 #An array of poses that represents a Path for a robot to follow\n\
00452 Header header\n\
00453 geometry_msgs/PoseStamped[] poses\n\
00454 \n\
00455 ================================================================================\n\
00456 MSG: std_msgs/Header\n\
00457 # Standard metadata for higher-level stamped data types.\n\
00458 # This is generally used to communicate timestamped data \n\
00459 # in a particular coordinate frame.\n\
00460 # \n\
00461 # sequence ID: consecutively increasing ID \n\
00462 uint32 seq\n\
00463 #Two-integer timestamp that is expressed as:\n\
00464 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00465 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00466 # time-handling sugar is provided by the client library\n\
00467 time stamp\n\
00468 #Frame this data is associated with\n\
00469 # 0: no frame\n\
00470 # 1: global frame\n\
00471 string frame_id\n\
00472 \n\
00473 ================================================================================\n\
00474 MSG: geometry_msgs/PoseStamped\n\
00475 # A Pose with reference coordinate frame and timestamp\n\
00476 Header header\n\
00477 Pose pose\n\
00478 \n\
00479 ================================================================================\n\
00480 MSG: geometry_msgs/Pose\n\
00481 # A representation of pose in free space, composed of postion and orientation. \n\
00482 Point position\n\
00483 Quaternion orientation\n\
00484 \n\
00485 ================================================================================\n\
00486 MSG: geometry_msgs/Point\n\
00487 # This contains the position of a point in free space\n\
00488 float64 x\n\
00489 float64 y\n\
00490 float64 z\n\
00491 \n\
00492 ================================================================================\n\
00493 MSG: geometry_msgs/Quaternion\n\
00494 # This represents an orientation in free space in quaternion form.\n\
00495 \n\
00496 float64 x\n\
00497 float64 y\n\
00498 float64 z\n\
00499 float64 w\n\
00500 \n\
00501 ";
00502 }
00503
00504 static const char* value(const ::nav_msgs::GetPlanResponse_<ContainerAllocator> &) { return value(); }
00505 };
00506
00507 }
00508 }
00509
00510 namespace ros
00511 {
00512 namespace serialization
00513 {
00514
00515 template<class ContainerAllocator> struct Serializer< ::nav_msgs::GetPlanRequest_<ContainerAllocator> >
00516 {
00517 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00518 {
00519 stream.next(m.start);
00520 stream.next(m.goal);
00521 stream.next(m.tolerance);
00522 }
00523
00524 ROS_DECLARE_ALLINONE_SERIALIZER;
00525 };
00526 }
00527 }
00528
00529
00530 namespace ros
00531 {
00532 namespace serialization
00533 {
00534
00535 template<class ContainerAllocator> struct Serializer< ::nav_msgs::GetPlanResponse_<ContainerAllocator> >
00536 {
00537 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00538 {
00539 stream.next(m.plan);
00540 }
00541
00542 ROS_DECLARE_ALLINONE_SERIALIZER;
00543 };
00544 }
00545 }
00546
00547 namespace ros
00548 {
00549 namespace service_traits
00550 {
00551 template<>
00552 struct MD5Sum<nav_msgs::GetPlan> {
00553 static const char* value()
00554 {
00555 return "421c8ea4d21c6c9db7054b4bbdf1e024";
00556 }
00557
00558 static const char* value(const nav_msgs::GetPlan&) { return value(); }
00559 };
00560
00561 template<>
00562 struct DataType<nav_msgs::GetPlan> {
00563 static const char* value()
00564 {
00565 return "nav_msgs/GetPlan";
00566 }
00567
00568 static const char* value(const nav_msgs::GetPlan&) { return value(); }
00569 };
00570
00571 template<class ContainerAllocator>
00572 struct MD5Sum<nav_msgs::GetPlanRequest_<ContainerAllocator> > {
00573 static const char* value()
00574 {
00575 return "421c8ea4d21c6c9db7054b4bbdf1e024";
00576 }
00577
00578 static const char* value(const nav_msgs::GetPlanRequest_<ContainerAllocator> &) { return value(); }
00579 };
00580
00581 template<class ContainerAllocator>
00582 struct DataType<nav_msgs::GetPlanRequest_<ContainerAllocator> > {
00583 static const char* value()
00584 {
00585 return "nav_msgs/GetPlan";
00586 }
00587
00588 static const char* value(const nav_msgs::GetPlanRequest_<ContainerAllocator> &) { return value(); }
00589 };
00590
00591 template<class ContainerAllocator>
00592 struct MD5Sum<nav_msgs::GetPlanResponse_<ContainerAllocator> > {
00593 static const char* value()
00594 {
00595 return "421c8ea4d21c6c9db7054b4bbdf1e024";
00596 }
00597
00598 static const char* value(const nav_msgs::GetPlanResponse_<ContainerAllocator> &) { return value(); }
00599 };
00600
00601 template<class ContainerAllocator>
00602 struct DataType<nav_msgs::GetPlanResponse_<ContainerAllocator> > {
00603 static const char* value()
00604 {
00605 return "nav_msgs/GetPlan";
00606 }
00607
00608 static const char* value(const nav_msgs::GetPlanResponse_<ContainerAllocator> &) { return value(); }
00609 };
00610
00611 }
00612 }
00613
00614 #endif // NAV_MSGS_SERVICE_GETPLAN_H
00615