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