00001
00002 #ifndef PR2_PLUGS_GAZEBO_DEMO_SERVICE_EXECUTECARTESIANIKTRAJECTORY_H
00003 #define PR2_PLUGS_GAZEBO_DEMO_SERVICE_EXECUTECARTESIANIKTRAJECTORY_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 "std_msgs/Header.h"
00016 #include "geometry_msgs/Pose.h"
00017
00018
00019
00020 namespace pr2_plugs_gazebo_demo
00021 {
00022 template <class ContainerAllocator>
00023 struct ExecuteCartesianIKTrajectoryRequest_ : public ros::Message
00024 {
00025 typedef ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> Type;
00026
00027 ExecuteCartesianIKTrajectoryRequest_()
00028 : header()
00029 , poses()
00030 {
00031 }
00032
00033 ExecuteCartesianIKTrajectoryRequest_(const ContainerAllocator& _alloc)
00034 : header(_alloc)
00035 , poses(_alloc)
00036 {
00037 }
00038
00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00040 ::std_msgs::Header_<ContainerAllocator> header;
00041
00042 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _poses_type;
00043 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > poses;
00044
00045
00046 ROS_DEPRECATED uint32_t get_poses_size() const { return (uint32_t)poses.size(); }
00047 ROS_DEPRECATED void set_poses_size(uint32_t size) { poses.resize((size_t)size); }
00048 ROS_DEPRECATED void get_poses_vec(std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) const { vec = this->poses; }
00049 ROS_DEPRECATED void set_poses_vec(const std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) { this->poses = vec; }
00050 private:
00051 static const char* __s_getDataType_() { return "pr2_plugs_gazebo_demo/ExecuteCartesianIKTrajectoryRequest"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00054
00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00056
00057 private:
00058 static const char* __s_getMD5Sum_() { return "916c28c5764443f268b296bb671b9d97"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getServerMD5Sum_() { return "d904d75e10f01066c74bf87962ffff22"; }
00066 public:
00067 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00068
00069 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00070
00071 private:
00072 static const char* __s_getMessageDefinition_() { return "Header header\n\
00073 geometry_msgs/Pose[] poses\n\
00074 \n\
00075 ================================================================================\n\
00076 MSG: std_msgs/Header\n\
00077 # Standard metadata for higher-level stamped data types.\n\
00078 # This is generally used to communicate timestamped data \n\
00079 # in a particular coordinate frame.\n\
00080 # \n\
00081 # sequence ID: consecutively increasing ID \n\
00082 uint32 seq\n\
00083 #Two-integer timestamp that is expressed as:\n\
00084 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00085 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00086 # time-handling sugar is provided by the client library\n\
00087 time stamp\n\
00088 #Frame this data is associated with\n\
00089 # 0: no frame\n\
00090 # 1: global frame\n\
00091 string frame_id\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: geometry_msgs/Pose\n\
00095 # A representation of pose in free space, composed of postion and orientation. \n\
00096 Point position\n\
00097 Quaternion orientation\n\
00098 \n\
00099 ================================================================================\n\
00100 MSG: geometry_msgs/Point\n\
00101 # This contains the position of a point in free space\n\
00102 float64 x\n\
00103 float64 y\n\
00104 float64 z\n\
00105 \n\
00106 ================================================================================\n\
00107 MSG: geometry_msgs/Quaternion\n\
00108 # This represents an orientation in free space in quaternion form.\n\
00109 \n\
00110 float64 x\n\
00111 float64 y\n\
00112 float64 z\n\
00113 float64 w\n\
00114 \n\
00115 "; }
00116 public:
00117 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00118
00119 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00120
00121 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00122 {
00123 ros::serialization::OStream stream(write_ptr, 1000000000);
00124 ros::serialization::serialize(stream, header);
00125 ros::serialization::serialize(stream, 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, header);
00133 ros::serialization::deserialize(stream, poses);
00134 return stream.getData();
00135 }
00136
00137 ROS_DEPRECATED virtual uint32_t serializationLength() const
00138 {
00139 uint32_t size = 0;
00140 size += ros::serialization::serializationLength(header);
00141 size += ros::serialization::serializationLength(poses);
00142 return size;
00143 }
00144
00145 typedef boost::shared_ptr< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> > Ptr;
00146 typedef boost::shared_ptr< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> const> ConstPtr;
00147 };
00148 typedef ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<std::allocator<void> > ExecuteCartesianIKTrajectoryRequest;
00149
00150 typedef boost::shared_ptr< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest> ExecuteCartesianIKTrajectoryRequestPtr;
00151 typedef boost::shared_ptr< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest const> ExecuteCartesianIKTrajectoryRequestConstPtr;
00152
00153
00154 template <class ContainerAllocator>
00155 struct ExecuteCartesianIKTrajectoryResponse_ : public ros::Message
00156 {
00157 typedef ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> Type;
00158
00159 ExecuteCartesianIKTrajectoryResponse_()
00160 : success(0)
00161 {
00162 }
00163
00164 ExecuteCartesianIKTrajectoryResponse_(const ContainerAllocator& _alloc)
00165 : success(0)
00166 {
00167 }
00168
00169 typedef uint32_t _success_type;
00170 uint32_t success;
00171
00172
00173 private:
00174 static const char* __s_getDataType_() { return "pr2_plugs_gazebo_demo/ExecuteCartesianIKTrajectoryResponse"; }
00175 public:
00176 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00177
00178 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00179
00180 private:
00181 static const char* __s_getMD5Sum_() { return "952fc3b34491dbd8ce5170ced8b373fa"; }
00182 public:
00183 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00184
00185 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00186
00187 private:
00188 static const char* __s_getServerMD5Sum_() { return "d904d75e10f01066c74bf87962ffff22"; }
00189 public:
00190 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00191
00192 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00193
00194 private:
00195 static const char* __s_getMessageDefinition_() { return "uint32 success\n\
00196 \n\
00197 \n\
00198 "; }
00199 public:
00200 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00201
00202 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00203
00204 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00205 {
00206 ros::serialization::OStream stream(write_ptr, 1000000000);
00207 ros::serialization::serialize(stream, success);
00208 return stream.getData();
00209 }
00210
00211 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00212 {
00213 ros::serialization::IStream stream(read_ptr, 1000000000);
00214 ros::serialization::deserialize(stream, success);
00215 return stream.getData();
00216 }
00217
00218 ROS_DEPRECATED virtual uint32_t serializationLength() const
00219 {
00220 uint32_t size = 0;
00221 size += ros::serialization::serializationLength(success);
00222 return size;
00223 }
00224
00225 typedef boost::shared_ptr< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> > Ptr;
00226 typedef boost::shared_ptr< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> const> ConstPtr;
00227 };
00228 typedef ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<std::allocator<void> > ExecuteCartesianIKTrajectoryResponse;
00229
00230 typedef boost::shared_ptr< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse> ExecuteCartesianIKTrajectoryResponsePtr;
00231 typedef boost::shared_ptr< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse const> ExecuteCartesianIKTrajectoryResponseConstPtr;
00232
00233 struct ExecuteCartesianIKTrajectory
00234 {
00235
00236 typedef ExecuteCartesianIKTrajectoryRequest Request;
00237 typedef ExecuteCartesianIKTrajectoryResponse Response;
00238 Request request;
00239 Response response;
00240
00241 typedef Request RequestType;
00242 typedef Response ResponseType;
00243 };
00244 }
00245
00246 namespace ros
00247 {
00248 namespace message_traits
00249 {
00250 template<class ContainerAllocator>
00251 struct MD5Sum< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> > {
00252 static const char* value()
00253 {
00254 return "916c28c5764443f268b296bb671b9d97";
00255 }
00256
00257 static const char* value(const ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> &) { return value(); }
00258 static const uint64_t static_value1 = 0x916c28c5764443f2ULL;
00259 static const uint64_t static_value2 = 0x68b296bb671b9d97ULL;
00260 };
00261
00262 template<class ContainerAllocator>
00263 struct DataType< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> > {
00264 static const char* value()
00265 {
00266 return "pr2_plugs_gazebo_demo/ExecuteCartesianIKTrajectoryRequest";
00267 }
00268
00269 static const char* value(const ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> &) { return value(); }
00270 };
00271
00272 template<class ContainerAllocator>
00273 struct Definition< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> > {
00274 static const char* value()
00275 {
00276 return "Header header\n\
00277 geometry_msgs/Pose[] poses\n\
00278 \n\
00279 ================================================================================\n\
00280 MSG: std_msgs/Header\n\
00281 # Standard metadata for higher-level stamped data types.\n\
00282 # This is generally used to communicate timestamped data \n\
00283 # in a particular coordinate frame.\n\
00284 # \n\
00285 # sequence ID: consecutively increasing ID \n\
00286 uint32 seq\n\
00287 #Two-integer timestamp that is expressed as:\n\
00288 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00289 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00290 # time-handling sugar is provided by the client library\n\
00291 time stamp\n\
00292 #Frame this data is associated with\n\
00293 # 0: no frame\n\
00294 # 1: global frame\n\
00295 string frame_id\n\
00296 \n\
00297 ================================================================================\n\
00298 MSG: geometry_msgs/Pose\n\
00299 # A representation of pose in free space, composed of postion and orientation. \n\
00300 Point position\n\
00301 Quaternion orientation\n\
00302 \n\
00303 ================================================================================\n\
00304 MSG: geometry_msgs/Point\n\
00305 # This contains the position of a point in free space\n\
00306 float64 x\n\
00307 float64 y\n\
00308 float64 z\n\
00309 \n\
00310 ================================================================================\n\
00311 MSG: geometry_msgs/Quaternion\n\
00312 # This represents an orientation in free space in quaternion form.\n\
00313 \n\
00314 float64 x\n\
00315 float64 y\n\
00316 float64 z\n\
00317 float64 w\n\
00318 \n\
00319 ";
00320 }
00321
00322 static const char* value(const ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> &) { return value(); }
00323 };
00324
00325 template<class ContainerAllocator> struct HasHeader< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> > : public TrueType {};
00326 template<class ContainerAllocator> struct HasHeader< const ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> > : public TrueType {};
00327 }
00328 }
00329
00330
00331 namespace ros
00332 {
00333 namespace message_traits
00334 {
00335 template<class ContainerAllocator>
00336 struct MD5Sum< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> > {
00337 static const char* value()
00338 {
00339 return "952fc3b34491dbd8ce5170ced8b373fa";
00340 }
00341
00342 static const char* value(const ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> &) { return value(); }
00343 static const uint64_t static_value1 = 0x952fc3b34491dbd8ULL;
00344 static const uint64_t static_value2 = 0xce5170ced8b373faULL;
00345 };
00346
00347 template<class ContainerAllocator>
00348 struct DataType< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> > {
00349 static const char* value()
00350 {
00351 return "pr2_plugs_gazebo_demo/ExecuteCartesianIKTrajectoryResponse";
00352 }
00353
00354 static const char* value(const ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> &) { return value(); }
00355 };
00356
00357 template<class ContainerAllocator>
00358 struct Definition< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> > {
00359 static const char* value()
00360 {
00361 return "uint32 success\n\
00362 \n\
00363 \n\
00364 ";
00365 }
00366
00367 static const char* value(const ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> &) { return value(); }
00368 };
00369
00370 template<class ContainerAllocator> struct IsFixedSize< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> > : public TrueType {};
00371 }
00372 }
00373
00374 namespace ros
00375 {
00376 namespace serialization
00377 {
00378
00379 template<class ContainerAllocator> struct Serializer< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> >
00380 {
00381 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00382 {
00383 stream.next(m.header);
00384 stream.next(m.poses);
00385 }
00386
00387 ROS_DECLARE_ALLINONE_SERIALIZER;
00388 };
00389 }
00390 }
00391
00392
00393 namespace ros
00394 {
00395 namespace serialization
00396 {
00397
00398 template<class ContainerAllocator> struct Serializer< ::pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> >
00399 {
00400 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00401 {
00402 stream.next(m.success);
00403 }
00404
00405 ROS_DECLARE_ALLINONE_SERIALIZER;
00406 };
00407 }
00408 }
00409
00410 namespace ros
00411 {
00412 namespace service_traits
00413 {
00414 template<>
00415 struct MD5Sum<pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectory> {
00416 static const char* value()
00417 {
00418 return "d904d75e10f01066c74bf87962ffff22";
00419 }
00420
00421 static const char* value(const pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectory&) { return value(); }
00422 };
00423
00424 template<>
00425 struct DataType<pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectory> {
00426 static const char* value()
00427 {
00428 return "pr2_plugs_gazebo_demo/ExecuteCartesianIKTrajectory";
00429 }
00430
00431 static const char* value(const pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectory&) { return value(); }
00432 };
00433
00434 template<class ContainerAllocator>
00435 struct MD5Sum<pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> > {
00436 static const char* value()
00437 {
00438 return "d904d75e10f01066c74bf87962ffff22";
00439 }
00440
00441 static const char* value(const pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> &) { return value(); }
00442 };
00443
00444 template<class ContainerAllocator>
00445 struct DataType<pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> > {
00446 static const char* value()
00447 {
00448 return "pr2_plugs_gazebo_demo/ExecuteCartesianIKTrajectory";
00449 }
00450
00451 static const char* value(const pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryRequest_<ContainerAllocator> &) { return value(); }
00452 };
00453
00454 template<class ContainerAllocator>
00455 struct MD5Sum<pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> > {
00456 static const char* value()
00457 {
00458 return "d904d75e10f01066c74bf87962ffff22";
00459 }
00460
00461 static const char* value(const pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> &) { return value(); }
00462 };
00463
00464 template<class ContainerAllocator>
00465 struct DataType<pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> > {
00466 static const char* value()
00467 {
00468 return "pr2_plugs_gazebo_demo/ExecuteCartesianIKTrajectory";
00469 }
00470
00471 static const char* value(const pr2_plugs_gazebo_demo::ExecuteCartesianIKTrajectoryResponse_<ContainerAllocator> &) { return value(); }
00472 };
00473
00474 }
00475 }
00476
00477 #endif // PR2_PLUGS_GAZEBO_DEMO_SERVICE_EXECUTECARTESIANIKTRAJECTORY_H
00478