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