$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-simulator_gazebo/doc_stacks/2013-03-02_13-33-37.038309/simulator_gazebo/gazebo/srv/GetLinkProperties.srv */ 00002 #ifndef GAZEBO_SERVICE_GETLINKPROPERTIES_H 00003 #define GAZEBO_SERVICE_GETLINKPROPERTIES_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 00020 00021 #include "geometry_msgs/Pose.h" 00022 00023 namespace gazebo 00024 { 00025 template <class ContainerAllocator> 00026 struct GetLinkPropertiesRequest_ { 00027 typedef GetLinkPropertiesRequest_<ContainerAllocator> Type; 00028 00029 GetLinkPropertiesRequest_() 00030 : link_name() 00031 { 00032 } 00033 00034 GetLinkPropertiesRequest_(const ContainerAllocator& _alloc) 00035 : link_name(_alloc) 00036 { 00037 } 00038 00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _link_name_type; 00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > link_name; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "gazebo/GetLinkPropertiesRequest"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "7d82d60381f1b66a30f2157f60884345"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getServerMD5Sum_() { return "0e06a70386d0ee3fb880c02f23fcd821"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "\n\ 00066 \n\ 00067 string link_name\n\ 00068 \n\ 00069 "; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00074 00075 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00076 { 00077 ros::serialization::OStream stream(write_ptr, 1000000000); 00078 ros::serialization::serialize(stream, link_name); 00079 return stream.getData(); 00080 } 00081 00082 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00083 { 00084 ros::serialization::IStream stream(read_ptr, 1000000000); 00085 ros::serialization::deserialize(stream, link_name); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint32_t serializationLength() const 00090 { 00091 uint32_t size = 0; 00092 size += ros::serialization::serializationLength(link_name); 00093 return size; 00094 } 00095 00096 typedef boost::shared_ptr< ::gazebo::GetLinkPropertiesRequest_<ContainerAllocator> > Ptr; 00097 typedef boost::shared_ptr< ::gazebo::GetLinkPropertiesRequest_<ContainerAllocator> const> ConstPtr; 00098 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00099 }; // struct GetLinkPropertiesRequest 00100 typedef ::gazebo::GetLinkPropertiesRequest_<std::allocator<void> > GetLinkPropertiesRequest; 00101 00102 typedef boost::shared_ptr< ::gazebo::GetLinkPropertiesRequest> GetLinkPropertiesRequestPtr; 00103 typedef boost::shared_ptr< ::gazebo::GetLinkPropertiesRequest const> GetLinkPropertiesRequestConstPtr; 00104 00105 00106 template <class ContainerAllocator> 00107 struct GetLinkPropertiesResponse_ { 00108 typedef GetLinkPropertiesResponse_<ContainerAllocator> Type; 00109 00110 GetLinkPropertiesResponse_() 00111 : com() 00112 , gravity_mode(false) 00113 , mass(0.0) 00114 , ixx(0.0) 00115 , ixy(0.0) 00116 , ixz(0.0) 00117 , iyy(0.0) 00118 , iyz(0.0) 00119 , izz(0.0) 00120 , success(false) 00121 , status_message() 00122 { 00123 } 00124 00125 GetLinkPropertiesResponse_(const ContainerAllocator& _alloc) 00126 : com(_alloc) 00127 , gravity_mode(false) 00128 , mass(0.0) 00129 , ixx(0.0) 00130 , ixy(0.0) 00131 , ixz(0.0) 00132 , iyy(0.0) 00133 , iyz(0.0) 00134 , izz(0.0) 00135 , success(false) 00136 , status_message(_alloc) 00137 { 00138 } 00139 00140 typedef ::geometry_msgs::Pose_<ContainerAllocator> _com_type; 00141 ::geometry_msgs::Pose_<ContainerAllocator> com; 00142 00143 typedef uint8_t _gravity_mode_type; 00144 uint8_t gravity_mode; 00145 00146 typedef double _mass_type; 00147 double mass; 00148 00149 typedef double _ixx_type; 00150 double ixx; 00151 00152 typedef double _ixy_type; 00153 double ixy; 00154 00155 typedef double _ixz_type; 00156 double ixz; 00157 00158 typedef double _iyy_type; 00159 double iyy; 00160 00161 typedef double _iyz_type; 00162 double iyz; 00163 00164 typedef double _izz_type; 00165 double izz; 00166 00167 typedef uint8_t _success_type; 00168 uint8_t success; 00169 00170 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_message_type; 00171 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_message; 00172 00173 00174 private: 00175 static const char* __s_getDataType_() { return "gazebo/GetLinkPropertiesResponse"; } 00176 public: 00177 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00178 00179 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00180 00181 private: 00182 static const char* __s_getMD5Sum_() { return "a8619f92d17cfcc3958c0fd13299443d"; } 00183 public: 00184 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00185 00186 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00187 00188 private: 00189 static const char* __s_getServerMD5Sum_() { return "0e06a70386d0ee3fb880c02f23fcd821"; } 00190 public: 00191 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00192 00193 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00194 00195 private: 00196 static const char* __s_getMessageDefinition_() { return "geometry_msgs/Pose com\n\ 00197 \n\ 00198 \n\ 00199 bool gravity_mode\n\ 00200 float64 mass\n\ 00201 float64 ixx\n\ 00202 float64 ixy\n\ 00203 float64 ixz\n\ 00204 float64 iyy\n\ 00205 float64 iyz\n\ 00206 float64 izz\n\ 00207 bool success\n\ 00208 string status_message\n\ 00209 \n\ 00210 \n\ 00211 ================================================================================\n\ 00212 MSG: geometry_msgs/Pose\n\ 00213 # A representation of pose in free space, composed of postion and orientation. \n\ 00214 Point position\n\ 00215 Quaternion orientation\n\ 00216 \n\ 00217 ================================================================================\n\ 00218 MSG: geometry_msgs/Point\n\ 00219 # This contains the position of a point in free space\n\ 00220 float64 x\n\ 00221 float64 y\n\ 00222 float64 z\n\ 00223 \n\ 00224 ================================================================================\n\ 00225 MSG: geometry_msgs/Quaternion\n\ 00226 # This represents an orientation in free space in quaternion form.\n\ 00227 \n\ 00228 float64 x\n\ 00229 float64 y\n\ 00230 float64 z\n\ 00231 float64 w\n\ 00232 \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, com); 00243 ros::serialization::serialize(stream, gravity_mode); 00244 ros::serialization::serialize(stream, mass); 00245 ros::serialization::serialize(stream, ixx); 00246 ros::serialization::serialize(stream, ixy); 00247 ros::serialization::serialize(stream, ixz); 00248 ros::serialization::serialize(stream, iyy); 00249 ros::serialization::serialize(stream, iyz); 00250 ros::serialization::serialize(stream, izz); 00251 ros::serialization::serialize(stream, success); 00252 ros::serialization::serialize(stream, status_message); 00253 return stream.getData(); 00254 } 00255 00256 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00257 { 00258 ros::serialization::IStream stream(read_ptr, 1000000000); 00259 ros::serialization::deserialize(stream, com); 00260 ros::serialization::deserialize(stream, gravity_mode); 00261 ros::serialization::deserialize(stream, mass); 00262 ros::serialization::deserialize(stream, ixx); 00263 ros::serialization::deserialize(stream, ixy); 00264 ros::serialization::deserialize(stream, ixz); 00265 ros::serialization::deserialize(stream, iyy); 00266 ros::serialization::deserialize(stream, iyz); 00267 ros::serialization::deserialize(stream, izz); 00268 ros::serialization::deserialize(stream, success); 00269 ros::serialization::deserialize(stream, status_message); 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(com); 00277 size += ros::serialization::serializationLength(gravity_mode); 00278 size += ros::serialization::serializationLength(mass); 00279 size += ros::serialization::serializationLength(ixx); 00280 size += ros::serialization::serializationLength(ixy); 00281 size += ros::serialization::serializationLength(ixz); 00282 size += ros::serialization::serializationLength(iyy); 00283 size += ros::serialization::serializationLength(iyz); 00284 size += ros::serialization::serializationLength(izz); 00285 size += ros::serialization::serializationLength(success); 00286 size += ros::serialization::serializationLength(status_message); 00287 return size; 00288 } 00289 00290 typedef boost::shared_ptr< ::gazebo::GetLinkPropertiesResponse_<ContainerAllocator> > Ptr; 00291 typedef boost::shared_ptr< ::gazebo::GetLinkPropertiesResponse_<ContainerAllocator> const> ConstPtr; 00292 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00293 }; // struct GetLinkPropertiesResponse 00294 typedef ::gazebo::GetLinkPropertiesResponse_<std::allocator<void> > GetLinkPropertiesResponse; 00295 00296 typedef boost::shared_ptr< ::gazebo::GetLinkPropertiesResponse> GetLinkPropertiesResponsePtr; 00297 typedef boost::shared_ptr< ::gazebo::GetLinkPropertiesResponse const> GetLinkPropertiesResponseConstPtr; 00298 00299 struct GetLinkProperties 00300 { 00301 00302 typedef GetLinkPropertiesRequest Request; 00303 typedef GetLinkPropertiesResponse Response; 00304 Request request; 00305 Response response; 00306 00307 typedef Request RequestType; 00308 typedef Response ResponseType; 00309 }; // struct GetLinkProperties 00310 } // namespace gazebo 00311 00312 namespace ros 00313 { 00314 namespace message_traits 00315 { 00316 template<class ContainerAllocator> struct IsMessage< ::gazebo::GetLinkPropertiesRequest_<ContainerAllocator> > : public TrueType {}; 00317 template<class ContainerAllocator> struct IsMessage< ::gazebo::GetLinkPropertiesRequest_<ContainerAllocator> const> : public TrueType {}; 00318 template<class ContainerAllocator> 00319 struct MD5Sum< ::gazebo::GetLinkPropertiesRequest_<ContainerAllocator> > { 00320 static const char* value() 00321 { 00322 return "7d82d60381f1b66a30f2157f60884345"; 00323 } 00324 00325 static const char* value(const ::gazebo::GetLinkPropertiesRequest_<ContainerAllocator> &) { return value(); } 00326 static const uint64_t static_value1 = 0x7d82d60381f1b66aULL; 00327 static const uint64_t static_value2 = 0x30f2157f60884345ULL; 00328 }; 00329 00330 template<class ContainerAllocator> 00331 struct DataType< ::gazebo::GetLinkPropertiesRequest_<ContainerAllocator> > { 00332 static const char* value() 00333 { 00334 return "gazebo/GetLinkPropertiesRequest"; 00335 } 00336 00337 static const char* value(const ::gazebo::GetLinkPropertiesRequest_<ContainerAllocator> &) { return value(); } 00338 }; 00339 00340 template<class ContainerAllocator> 00341 struct Definition< ::gazebo::GetLinkPropertiesRequest_<ContainerAllocator> > { 00342 static const char* value() 00343 { 00344 return "\n\ 00345 \n\ 00346 string link_name\n\ 00347 \n\ 00348 "; 00349 } 00350 00351 static const char* value(const ::gazebo::GetLinkPropertiesRequest_<ContainerAllocator> &) { return value(); } 00352 }; 00353 00354 } // namespace message_traits 00355 } // namespace ros 00356 00357 00358 namespace ros 00359 { 00360 namespace message_traits 00361 { 00362 template<class ContainerAllocator> struct IsMessage< ::gazebo::GetLinkPropertiesResponse_<ContainerAllocator> > : public TrueType {}; 00363 template<class ContainerAllocator> struct IsMessage< ::gazebo::GetLinkPropertiesResponse_<ContainerAllocator> const> : public TrueType {}; 00364 template<class ContainerAllocator> 00365 struct MD5Sum< ::gazebo::GetLinkPropertiesResponse_<ContainerAllocator> > { 00366 static const char* value() 00367 { 00368 return "a8619f92d17cfcc3958c0fd13299443d"; 00369 } 00370 00371 static const char* value(const ::gazebo::GetLinkPropertiesResponse_<ContainerAllocator> &) { return value(); } 00372 static const uint64_t static_value1 = 0xa8619f92d17cfcc3ULL; 00373 static const uint64_t static_value2 = 0x958c0fd13299443dULL; 00374 }; 00375 00376 template<class ContainerAllocator> 00377 struct DataType< ::gazebo::GetLinkPropertiesResponse_<ContainerAllocator> > { 00378 static const char* value() 00379 { 00380 return "gazebo/GetLinkPropertiesResponse"; 00381 } 00382 00383 static const char* value(const ::gazebo::GetLinkPropertiesResponse_<ContainerAllocator> &) { return value(); } 00384 }; 00385 00386 template<class ContainerAllocator> 00387 struct Definition< ::gazebo::GetLinkPropertiesResponse_<ContainerAllocator> > { 00388 static const char* value() 00389 { 00390 return "geometry_msgs/Pose com\n\ 00391 \n\ 00392 \n\ 00393 bool gravity_mode\n\ 00394 float64 mass\n\ 00395 float64 ixx\n\ 00396 float64 ixy\n\ 00397 float64 ixz\n\ 00398 float64 iyy\n\ 00399 float64 iyz\n\ 00400 float64 izz\n\ 00401 bool success\n\ 00402 string status_message\n\ 00403 \n\ 00404 \n\ 00405 ================================================================================\n\ 00406 MSG: geometry_msgs/Pose\n\ 00407 # A representation of pose in free space, composed of postion and orientation. \n\ 00408 Point position\n\ 00409 Quaternion orientation\n\ 00410 \n\ 00411 ================================================================================\n\ 00412 MSG: geometry_msgs/Point\n\ 00413 # This contains the position of a point in free space\n\ 00414 float64 x\n\ 00415 float64 y\n\ 00416 float64 z\n\ 00417 \n\ 00418 ================================================================================\n\ 00419 MSG: geometry_msgs/Quaternion\n\ 00420 # This represents an orientation in free space in quaternion form.\n\ 00421 \n\ 00422 float64 x\n\ 00423 float64 y\n\ 00424 float64 z\n\ 00425 float64 w\n\ 00426 \n\ 00427 "; 00428 } 00429 00430 static const char* value(const ::gazebo::GetLinkPropertiesResponse_<ContainerAllocator> &) { return value(); } 00431 }; 00432 00433 } // namespace message_traits 00434 } // namespace ros 00435 00436 namespace ros 00437 { 00438 namespace serialization 00439 { 00440 00441 template<class ContainerAllocator> struct Serializer< ::gazebo::GetLinkPropertiesRequest_<ContainerAllocator> > 00442 { 00443 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00444 { 00445 stream.next(m.link_name); 00446 } 00447 00448 ROS_DECLARE_ALLINONE_SERIALIZER; 00449 }; // struct GetLinkPropertiesRequest_ 00450 } // namespace serialization 00451 } // namespace ros 00452 00453 00454 namespace ros 00455 { 00456 namespace serialization 00457 { 00458 00459 template<class ContainerAllocator> struct Serializer< ::gazebo::GetLinkPropertiesResponse_<ContainerAllocator> > 00460 { 00461 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00462 { 00463 stream.next(m.com); 00464 stream.next(m.gravity_mode); 00465 stream.next(m.mass); 00466 stream.next(m.ixx); 00467 stream.next(m.ixy); 00468 stream.next(m.ixz); 00469 stream.next(m.iyy); 00470 stream.next(m.iyz); 00471 stream.next(m.izz); 00472 stream.next(m.success); 00473 stream.next(m.status_message); 00474 } 00475 00476 ROS_DECLARE_ALLINONE_SERIALIZER; 00477 }; // struct GetLinkPropertiesResponse_ 00478 } // namespace serialization 00479 } // namespace ros 00480 00481 namespace ros 00482 { 00483 namespace service_traits 00484 { 00485 template<> 00486 struct MD5Sum<gazebo::GetLinkProperties> { 00487 static const char* value() 00488 { 00489 return "0e06a70386d0ee3fb880c02f23fcd821"; 00490 } 00491 00492 static const char* value(const gazebo::GetLinkProperties&) { return value(); } 00493 }; 00494 00495 template<> 00496 struct DataType<gazebo::GetLinkProperties> { 00497 static const char* value() 00498 { 00499 return "gazebo/GetLinkProperties"; 00500 } 00501 00502 static const char* value(const gazebo::GetLinkProperties&) { return value(); } 00503 }; 00504 00505 template<class ContainerAllocator> 00506 struct MD5Sum<gazebo::GetLinkPropertiesRequest_<ContainerAllocator> > { 00507 static const char* value() 00508 { 00509 return "0e06a70386d0ee3fb880c02f23fcd821"; 00510 } 00511 00512 static const char* value(const gazebo::GetLinkPropertiesRequest_<ContainerAllocator> &) { return value(); } 00513 }; 00514 00515 template<class ContainerAllocator> 00516 struct DataType<gazebo::GetLinkPropertiesRequest_<ContainerAllocator> > { 00517 static const char* value() 00518 { 00519 return "gazebo/GetLinkProperties"; 00520 } 00521 00522 static const char* value(const gazebo::GetLinkPropertiesRequest_<ContainerAllocator> &) { return value(); } 00523 }; 00524 00525 template<class ContainerAllocator> 00526 struct MD5Sum<gazebo::GetLinkPropertiesResponse_<ContainerAllocator> > { 00527 static const char* value() 00528 { 00529 return "0e06a70386d0ee3fb880c02f23fcd821"; 00530 } 00531 00532 static const char* value(const gazebo::GetLinkPropertiesResponse_<ContainerAllocator> &) { return value(); } 00533 }; 00534 00535 template<class ContainerAllocator> 00536 struct DataType<gazebo::GetLinkPropertiesResponse_<ContainerAllocator> > { 00537 static const char* value() 00538 { 00539 return "gazebo/GetLinkProperties"; 00540 } 00541 00542 static const char* value(const gazebo::GetLinkPropertiesResponse_<ContainerAllocator> &) { return value(); } 00543 }; 00544 00545 } // namespace service_traits 00546 } // namespace ros 00547 00548 #endif // GAZEBO_SERVICE_GETLINKPROPERTIES_H 00549