$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_interaction_primitives/srv/SetPreGraspPosition.srv */ 00002 #ifndef SRS_INTERACTION_PRIMITIVES_SERVICE_SETPREGRASPPOSITION_H 00003 #define SRS_INTERACTION_PRIMITIVES_SERVICE_SETPREGRASPPOSITION_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/Pose.h" 00020 00021 00022 00023 namespace srs_interaction_primitives 00024 { 00025 template <class ContainerAllocator> 00026 struct SetPreGraspPositionRequest_ { 00027 typedef SetPreGraspPositionRequest_<ContainerAllocator> Type; 00028 00029 SetPreGraspPositionRequest_() 00030 : name() 00031 , pos_id(0) 00032 , pose() 00033 { 00034 } 00035 00036 SetPreGraspPositionRequest_(const ContainerAllocator& _alloc) 00037 : name(_alloc) 00038 , pos_id(0) 00039 , pose(_alloc) 00040 { 00041 } 00042 00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type; 00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name; 00045 00046 typedef uint8_t _pos_id_type; 00047 uint8_t pos_id; 00048 00049 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type; 00050 ::geometry_msgs::Pose_<ContainerAllocator> pose; 00051 00052 00053 private: 00054 static const char* __s_getDataType_() { return "srs_interaction_primitives/SetPreGraspPositionRequest"; } 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 "5030e87207de681c43946fc28bbb7074"; } 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 "5030e87207de681c43946fc28bbb7074"; } 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 "string name\n\ 00076 uint8 pos_id\n\ 00077 geometry_msgs/Pose pose\n\ 00078 \n\ 00079 ================================================================================\n\ 00080 MSG: geometry_msgs/Pose\n\ 00081 # A representation of pose in free space, composed of postion and orientation. \n\ 00082 Point position\n\ 00083 Quaternion orientation\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: geometry_msgs/Point\n\ 00087 # This contains the position of a point in free space\n\ 00088 float64 x\n\ 00089 float64 y\n\ 00090 float64 z\n\ 00091 \n\ 00092 ================================================================================\n\ 00093 MSG: geometry_msgs/Quaternion\n\ 00094 # This represents an orientation in free space in quaternion form.\n\ 00095 \n\ 00096 float64 x\n\ 00097 float64 y\n\ 00098 float64 z\n\ 00099 float64 w\n\ 00100 \n\ 00101 "; } 00102 public: 00103 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00104 00105 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00106 00107 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00108 { 00109 ros::serialization::OStream stream(write_ptr, 1000000000); 00110 ros::serialization::serialize(stream, name); 00111 ros::serialization::serialize(stream, pos_id); 00112 ros::serialization::serialize(stream, pose); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00117 { 00118 ros::serialization::IStream stream(read_ptr, 1000000000); 00119 ros::serialization::deserialize(stream, name); 00120 ros::serialization::deserialize(stream, pos_id); 00121 ros::serialization::deserialize(stream, pose); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint32_t serializationLength() const 00126 { 00127 uint32_t size = 0; 00128 size += ros::serialization::serializationLength(name); 00129 size += ros::serialization::serializationLength(pos_id); 00130 size += ros::serialization::serializationLength(pose); 00131 return size; 00132 } 00133 00134 typedef boost::shared_ptr< ::srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> > Ptr; 00135 typedef boost::shared_ptr< ::srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> const> ConstPtr; 00136 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00137 }; // struct SetPreGraspPositionRequest 00138 typedef ::srs_interaction_primitives::SetPreGraspPositionRequest_<std::allocator<void> > SetPreGraspPositionRequest; 00139 00140 typedef boost::shared_ptr< ::srs_interaction_primitives::SetPreGraspPositionRequest> SetPreGraspPositionRequestPtr; 00141 typedef boost::shared_ptr< ::srs_interaction_primitives::SetPreGraspPositionRequest const> SetPreGraspPositionRequestConstPtr; 00142 00143 00144 template <class ContainerAllocator> 00145 struct SetPreGraspPositionResponse_ { 00146 typedef SetPreGraspPositionResponse_<ContainerAllocator> Type; 00147 00148 SetPreGraspPositionResponse_() 00149 { 00150 } 00151 00152 SetPreGraspPositionResponse_(const ContainerAllocator& _alloc) 00153 { 00154 } 00155 00156 00157 private: 00158 static const char* __s_getDataType_() { return "srs_interaction_primitives/SetPreGraspPositionResponse"; } 00159 public: 00160 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00161 00162 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00163 00164 private: 00165 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00166 public: 00167 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00168 00169 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00170 00171 private: 00172 static const char* __s_getServerMD5Sum_() { return "5030e87207de681c43946fc28bbb7074"; } 00173 public: 00174 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00175 00176 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00177 00178 private: 00179 static const char* __s_getMessageDefinition_() { return "\n\ 00180 \n\ 00181 "; } 00182 public: 00183 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00184 00185 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00186 00187 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00188 { 00189 ros::serialization::OStream stream(write_ptr, 1000000000); 00190 return stream.getData(); 00191 } 00192 00193 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00194 { 00195 ros::serialization::IStream stream(read_ptr, 1000000000); 00196 return stream.getData(); 00197 } 00198 00199 ROS_DEPRECATED virtual uint32_t serializationLength() const 00200 { 00201 uint32_t size = 0; 00202 return size; 00203 } 00204 00205 typedef boost::shared_ptr< ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> > Ptr; 00206 typedef boost::shared_ptr< ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> const> ConstPtr; 00207 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00208 }; // struct SetPreGraspPositionResponse 00209 typedef ::srs_interaction_primitives::SetPreGraspPositionResponse_<std::allocator<void> > SetPreGraspPositionResponse; 00210 00211 typedef boost::shared_ptr< ::srs_interaction_primitives::SetPreGraspPositionResponse> SetPreGraspPositionResponsePtr; 00212 typedef boost::shared_ptr< ::srs_interaction_primitives::SetPreGraspPositionResponse const> SetPreGraspPositionResponseConstPtr; 00213 00214 struct SetPreGraspPosition 00215 { 00216 00217 typedef SetPreGraspPositionRequest Request; 00218 typedef SetPreGraspPositionResponse Response; 00219 Request request; 00220 Response response; 00221 00222 typedef Request RequestType; 00223 typedef Response ResponseType; 00224 }; // struct SetPreGraspPosition 00225 } // namespace srs_interaction_primitives 00226 00227 namespace ros 00228 { 00229 namespace message_traits 00230 { 00231 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> > : public TrueType {}; 00232 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> const> : public TrueType {}; 00233 template<class ContainerAllocator> 00234 struct MD5Sum< ::srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> > { 00235 static const char* value() 00236 { 00237 return "5030e87207de681c43946fc28bbb7074"; 00238 } 00239 00240 static const char* value(const ::srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> &) { return value(); } 00241 static const uint64_t static_value1 = 0x5030e87207de681cULL; 00242 static const uint64_t static_value2 = 0x43946fc28bbb7074ULL; 00243 }; 00244 00245 template<class ContainerAllocator> 00246 struct DataType< ::srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> > { 00247 static const char* value() 00248 { 00249 return "srs_interaction_primitives/SetPreGraspPositionRequest"; 00250 } 00251 00252 static const char* value(const ::srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> &) { return value(); } 00253 }; 00254 00255 template<class ContainerAllocator> 00256 struct Definition< ::srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> > { 00257 static const char* value() 00258 { 00259 return "string name\n\ 00260 uint8 pos_id\n\ 00261 geometry_msgs/Pose pose\n\ 00262 \n\ 00263 ================================================================================\n\ 00264 MSG: geometry_msgs/Pose\n\ 00265 # A representation of pose in free space, composed of postion and orientation. \n\ 00266 Point position\n\ 00267 Quaternion orientation\n\ 00268 \n\ 00269 ================================================================================\n\ 00270 MSG: geometry_msgs/Point\n\ 00271 # This contains the position of a point in free space\n\ 00272 float64 x\n\ 00273 float64 y\n\ 00274 float64 z\n\ 00275 \n\ 00276 ================================================================================\n\ 00277 MSG: geometry_msgs/Quaternion\n\ 00278 # This represents an orientation in free space in quaternion form.\n\ 00279 \n\ 00280 float64 x\n\ 00281 float64 y\n\ 00282 float64 z\n\ 00283 float64 w\n\ 00284 \n\ 00285 "; 00286 } 00287 00288 static const char* value(const ::srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> &) { return value(); } 00289 }; 00290 00291 } // namespace message_traits 00292 } // namespace ros 00293 00294 00295 namespace ros 00296 { 00297 namespace message_traits 00298 { 00299 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> > : public TrueType {}; 00300 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> const> : public TrueType {}; 00301 template<class ContainerAllocator> 00302 struct MD5Sum< ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> > { 00303 static const char* value() 00304 { 00305 return "d41d8cd98f00b204e9800998ecf8427e"; 00306 } 00307 00308 static const char* value(const ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> &) { return value(); } 00309 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00310 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00311 }; 00312 00313 template<class ContainerAllocator> 00314 struct DataType< ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> > { 00315 static const char* value() 00316 { 00317 return "srs_interaction_primitives/SetPreGraspPositionResponse"; 00318 } 00319 00320 static const char* value(const ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> &) { return value(); } 00321 }; 00322 00323 template<class ContainerAllocator> 00324 struct Definition< ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> > { 00325 static const char* value() 00326 { 00327 return "\n\ 00328 \n\ 00329 "; 00330 } 00331 00332 static const char* value(const ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> &) { return value(); } 00333 }; 00334 00335 template<class ContainerAllocator> struct IsFixedSize< ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> > : public TrueType {}; 00336 } // namespace message_traits 00337 } // namespace ros 00338 00339 namespace ros 00340 { 00341 namespace serialization 00342 { 00343 00344 template<class ContainerAllocator> struct Serializer< ::srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> > 00345 { 00346 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00347 { 00348 stream.next(m.name); 00349 stream.next(m.pos_id); 00350 stream.next(m.pose); 00351 } 00352 00353 ROS_DECLARE_ALLINONE_SERIALIZER; 00354 }; // struct SetPreGraspPositionRequest_ 00355 } // namespace serialization 00356 } // namespace ros 00357 00358 00359 namespace ros 00360 { 00361 namespace serialization 00362 { 00363 00364 template<class ContainerAllocator> struct Serializer< ::srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> > 00365 { 00366 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00367 { 00368 } 00369 00370 ROS_DECLARE_ALLINONE_SERIALIZER; 00371 }; // struct SetPreGraspPositionResponse_ 00372 } // namespace serialization 00373 } // namespace ros 00374 00375 namespace ros 00376 { 00377 namespace service_traits 00378 { 00379 template<> 00380 struct MD5Sum<srs_interaction_primitives::SetPreGraspPosition> { 00381 static const char* value() 00382 { 00383 return "5030e87207de681c43946fc28bbb7074"; 00384 } 00385 00386 static const char* value(const srs_interaction_primitives::SetPreGraspPosition&) { return value(); } 00387 }; 00388 00389 template<> 00390 struct DataType<srs_interaction_primitives::SetPreGraspPosition> { 00391 static const char* value() 00392 { 00393 return "srs_interaction_primitives/SetPreGraspPosition"; 00394 } 00395 00396 static const char* value(const srs_interaction_primitives::SetPreGraspPosition&) { return value(); } 00397 }; 00398 00399 template<class ContainerAllocator> 00400 struct MD5Sum<srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> > { 00401 static const char* value() 00402 { 00403 return "5030e87207de681c43946fc28bbb7074"; 00404 } 00405 00406 static const char* value(const srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> &) { return value(); } 00407 }; 00408 00409 template<class ContainerAllocator> 00410 struct DataType<srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> > { 00411 static const char* value() 00412 { 00413 return "srs_interaction_primitives/SetPreGraspPosition"; 00414 } 00415 00416 static const char* value(const srs_interaction_primitives::SetPreGraspPositionRequest_<ContainerAllocator> &) { return value(); } 00417 }; 00418 00419 template<class ContainerAllocator> 00420 struct MD5Sum<srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> > { 00421 static const char* value() 00422 { 00423 return "5030e87207de681c43946fc28bbb7074"; 00424 } 00425 00426 static const char* value(const srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> &) { return value(); } 00427 }; 00428 00429 template<class ContainerAllocator> 00430 struct DataType<srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> > { 00431 static const char* value() 00432 { 00433 return "srs_interaction_primitives/SetPreGraspPosition"; 00434 } 00435 00436 static const char* value(const srs_interaction_primitives::SetPreGraspPositionResponse_<ContainerAllocator> &) { return value(); } 00437 }; 00438 00439 } // namespace service_traits 00440 } // namespace ros 00441 00442 #endif // SRS_INTERACTION_PRIMITIVES_SERVICE_SETPREGRASPPOSITION_H 00443