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