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