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