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