$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/SetLinkState.srv */ 00002 #ifndef GAZEBO_SERVICE_SETLINKSTATE_H 00003 #define GAZEBO_SERVICE_SETLINKSTATE_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 "gazebo/LinkState.h" 00020 00021 00022 00023 namespace gazebo 00024 { 00025 template <class ContainerAllocator> 00026 struct SetLinkStateRequest_ { 00027 typedef SetLinkStateRequest_<ContainerAllocator> Type; 00028 00029 SetLinkStateRequest_() 00030 : link_state() 00031 { 00032 } 00033 00034 SetLinkStateRequest_(const ContainerAllocator& _alloc) 00035 : link_state(_alloc) 00036 { 00037 } 00038 00039 typedef ::gazebo::LinkState_<ContainerAllocator> _link_state_type; 00040 ::gazebo::LinkState_<ContainerAllocator> link_state; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "gazebo/SetLinkStateRequest"; } 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 "22a2c757d56911b6f27868159e9a872d"; } 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 "8a5146eb66ae4d26b0860b08f3f271be"; } 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 gazebo/LinkState link_state\n\ 00068 \n\ 00069 ================================================================================\n\ 00070 MSG: gazebo/LinkState\n\ 00071 #This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00072 \n\ 00073 # @todo: FIXME: sets pose and twist of a link. All children link poses/twists of the URDF tree are not updated accordingly, but should be.\n\ 00074 string link_name # link name\n\ 00075 geometry_msgs/Pose pose # desired pose in reference frame\n\ 00076 geometry_msgs/Twist twist # desired twist in reference frame\n\ 00077 string reference_frame # set pose/twist relative to the frame of this link/body\n\ 00078 # leave empty or \"world\" or \"map\" defaults to world-frame\n\ 00079 \n\ 00080 ================================================================================\n\ 00081 MSG: geometry_msgs/Pose\n\ 00082 # A representation of pose in free space, composed of postion and orientation. \n\ 00083 Point position\n\ 00084 Quaternion orientation\n\ 00085 \n\ 00086 ================================================================================\n\ 00087 MSG: geometry_msgs/Point\n\ 00088 # This contains the position of a point in free space\n\ 00089 float64 x\n\ 00090 float64 y\n\ 00091 float64 z\n\ 00092 \n\ 00093 ================================================================================\n\ 00094 MSG: geometry_msgs/Quaternion\n\ 00095 # This represents an orientation in free space in quaternion form.\n\ 00096 \n\ 00097 float64 x\n\ 00098 float64 y\n\ 00099 float64 z\n\ 00100 float64 w\n\ 00101 \n\ 00102 ================================================================================\n\ 00103 MSG: geometry_msgs/Twist\n\ 00104 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00105 Vector3 linear\n\ 00106 Vector3 angular\n\ 00107 \n\ 00108 ================================================================================\n\ 00109 MSG: geometry_msgs/Vector3\n\ 00110 # This represents a vector in free space. \n\ 00111 \n\ 00112 float64 x\n\ 00113 float64 y\n\ 00114 float64 z\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, link_state); 00125 return stream.getData(); 00126 } 00127 00128 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00129 { 00130 ros::serialization::IStream stream(read_ptr, 1000000000); 00131 ros::serialization::deserialize(stream, link_state); 00132 return stream.getData(); 00133 } 00134 00135 ROS_DEPRECATED virtual uint32_t serializationLength() const 00136 { 00137 uint32_t size = 0; 00138 size += ros::serialization::serializationLength(link_state); 00139 return size; 00140 } 00141 00142 typedef boost::shared_ptr< ::gazebo::SetLinkStateRequest_<ContainerAllocator> > Ptr; 00143 typedef boost::shared_ptr< ::gazebo::SetLinkStateRequest_<ContainerAllocator> const> ConstPtr; 00144 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00145 }; // struct SetLinkStateRequest 00146 typedef ::gazebo::SetLinkStateRequest_<std::allocator<void> > SetLinkStateRequest; 00147 00148 typedef boost::shared_ptr< ::gazebo::SetLinkStateRequest> SetLinkStateRequestPtr; 00149 typedef boost::shared_ptr< ::gazebo::SetLinkStateRequest const> SetLinkStateRequestConstPtr; 00150 00151 00152 template <class ContainerAllocator> 00153 struct SetLinkStateResponse_ { 00154 typedef SetLinkStateResponse_<ContainerAllocator> Type; 00155 00156 SetLinkStateResponse_() 00157 : success(false) 00158 , status_message() 00159 { 00160 } 00161 00162 SetLinkStateResponse_(const ContainerAllocator& _alloc) 00163 : success(false) 00164 , status_message(_alloc) 00165 { 00166 } 00167 00168 typedef uint8_t _success_type; 00169 uint8_t success; 00170 00171 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_message_type; 00172 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_message; 00173 00174 00175 private: 00176 static const char* __s_getDataType_() { return "gazebo/SetLinkStateResponse"; } 00177 public: 00178 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00179 00180 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00181 00182 private: 00183 static const char* __s_getMD5Sum_() { return "2ec6f3eff0161f4257b808b12bc830c2"; } 00184 public: 00185 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00186 00187 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00188 00189 private: 00190 static const char* __s_getServerMD5Sum_() { return "8a5146eb66ae4d26b0860b08f3f271be"; } 00191 public: 00192 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00193 00194 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00195 00196 private: 00197 static const char* __s_getMessageDefinition_() { return "bool success\n\ 00198 string status_message\n\ 00199 \n\ 00200 \n\ 00201 "; } 00202 public: 00203 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00204 00205 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00206 00207 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00208 { 00209 ros::serialization::OStream stream(write_ptr, 1000000000); 00210 ros::serialization::serialize(stream, success); 00211 ros::serialization::serialize(stream, status_message); 00212 return stream.getData(); 00213 } 00214 00215 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00216 { 00217 ros::serialization::IStream stream(read_ptr, 1000000000); 00218 ros::serialization::deserialize(stream, success); 00219 ros::serialization::deserialize(stream, status_message); 00220 return stream.getData(); 00221 } 00222 00223 ROS_DEPRECATED virtual uint32_t serializationLength() const 00224 { 00225 uint32_t size = 0; 00226 size += ros::serialization::serializationLength(success); 00227 size += ros::serialization::serializationLength(status_message); 00228 return size; 00229 } 00230 00231 typedef boost::shared_ptr< ::gazebo::SetLinkStateResponse_<ContainerAllocator> > Ptr; 00232 typedef boost::shared_ptr< ::gazebo::SetLinkStateResponse_<ContainerAllocator> const> ConstPtr; 00233 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00234 }; // struct SetLinkStateResponse 00235 typedef ::gazebo::SetLinkStateResponse_<std::allocator<void> > SetLinkStateResponse; 00236 00237 typedef boost::shared_ptr< ::gazebo::SetLinkStateResponse> SetLinkStateResponsePtr; 00238 typedef boost::shared_ptr< ::gazebo::SetLinkStateResponse const> SetLinkStateResponseConstPtr; 00239 00240 struct SetLinkState 00241 { 00242 00243 typedef SetLinkStateRequest Request; 00244 typedef SetLinkStateResponse Response; 00245 Request request; 00246 Response response; 00247 00248 typedef Request RequestType; 00249 typedef Response ResponseType; 00250 }; // struct SetLinkState 00251 } // namespace gazebo 00252 00253 namespace ros 00254 { 00255 namespace message_traits 00256 { 00257 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetLinkStateRequest_<ContainerAllocator> > : public TrueType {}; 00258 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetLinkStateRequest_<ContainerAllocator> const> : public TrueType {}; 00259 template<class ContainerAllocator> 00260 struct MD5Sum< ::gazebo::SetLinkStateRequest_<ContainerAllocator> > { 00261 static const char* value() 00262 { 00263 return "22a2c757d56911b6f27868159e9a872d"; 00264 } 00265 00266 static const char* value(const ::gazebo::SetLinkStateRequest_<ContainerAllocator> &) { return value(); } 00267 static const uint64_t static_value1 = 0x22a2c757d56911b6ULL; 00268 static const uint64_t static_value2 = 0xf27868159e9a872dULL; 00269 }; 00270 00271 template<class ContainerAllocator> 00272 struct DataType< ::gazebo::SetLinkStateRequest_<ContainerAllocator> > { 00273 static const char* value() 00274 { 00275 return "gazebo/SetLinkStateRequest"; 00276 } 00277 00278 static const char* value(const ::gazebo::SetLinkStateRequest_<ContainerAllocator> &) { return value(); } 00279 }; 00280 00281 template<class ContainerAllocator> 00282 struct Definition< ::gazebo::SetLinkStateRequest_<ContainerAllocator> > { 00283 static const char* value() 00284 { 00285 return "\n\ 00286 \n\ 00287 gazebo/LinkState link_state\n\ 00288 \n\ 00289 ================================================================================\n\ 00290 MSG: gazebo/LinkState\n\ 00291 #This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00292 \n\ 00293 # @todo: FIXME: sets pose and twist of a link. All children link poses/twists of the URDF tree are not updated accordingly, but should be.\n\ 00294 string link_name # link name\n\ 00295 geometry_msgs/Pose pose # desired pose in reference frame\n\ 00296 geometry_msgs/Twist twist # desired twist in reference frame\n\ 00297 string reference_frame # set pose/twist relative to the frame of this link/body\n\ 00298 # leave empty or \"world\" or \"map\" defaults to world-frame\n\ 00299 \n\ 00300 ================================================================================\n\ 00301 MSG: geometry_msgs/Pose\n\ 00302 # A representation of pose in free space, composed of postion and orientation. \n\ 00303 Point position\n\ 00304 Quaternion orientation\n\ 00305 \n\ 00306 ================================================================================\n\ 00307 MSG: geometry_msgs/Point\n\ 00308 # This contains the position of a point in free space\n\ 00309 float64 x\n\ 00310 float64 y\n\ 00311 float64 z\n\ 00312 \n\ 00313 ================================================================================\n\ 00314 MSG: geometry_msgs/Quaternion\n\ 00315 # This represents an orientation in free space in quaternion form.\n\ 00316 \n\ 00317 float64 x\n\ 00318 float64 y\n\ 00319 float64 z\n\ 00320 float64 w\n\ 00321 \n\ 00322 ================================================================================\n\ 00323 MSG: geometry_msgs/Twist\n\ 00324 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00325 Vector3 linear\n\ 00326 Vector3 angular\n\ 00327 \n\ 00328 ================================================================================\n\ 00329 MSG: geometry_msgs/Vector3\n\ 00330 # This represents a vector in free space. \n\ 00331 \n\ 00332 float64 x\n\ 00333 float64 y\n\ 00334 float64 z\n\ 00335 "; 00336 } 00337 00338 static const char* value(const ::gazebo::SetLinkStateRequest_<ContainerAllocator> &) { return value(); } 00339 }; 00340 00341 } // namespace message_traits 00342 } // namespace ros 00343 00344 00345 namespace ros 00346 { 00347 namespace message_traits 00348 { 00349 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetLinkStateResponse_<ContainerAllocator> > : public TrueType {}; 00350 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetLinkStateResponse_<ContainerAllocator> const> : public TrueType {}; 00351 template<class ContainerAllocator> 00352 struct MD5Sum< ::gazebo::SetLinkStateResponse_<ContainerAllocator> > { 00353 static const char* value() 00354 { 00355 return "2ec6f3eff0161f4257b808b12bc830c2"; 00356 } 00357 00358 static const char* value(const ::gazebo::SetLinkStateResponse_<ContainerAllocator> &) { return value(); } 00359 static const uint64_t static_value1 = 0x2ec6f3eff0161f42ULL; 00360 static const uint64_t static_value2 = 0x57b808b12bc830c2ULL; 00361 }; 00362 00363 template<class ContainerAllocator> 00364 struct DataType< ::gazebo::SetLinkStateResponse_<ContainerAllocator> > { 00365 static const char* value() 00366 { 00367 return "gazebo/SetLinkStateResponse"; 00368 } 00369 00370 static const char* value(const ::gazebo::SetLinkStateResponse_<ContainerAllocator> &) { return value(); } 00371 }; 00372 00373 template<class ContainerAllocator> 00374 struct Definition< ::gazebo::SetLinkStateResponse_<ContainerAllocator> > { 00375 static const char* value() 00376 { 00377 return "bool success\n\ 00378 string status_message\n\ 00379 \n\ 00380 \n\ 00381 "; 00382 } 00383 00384 static const char* value(const ::gazebo::SetLinkStateResponse_<ContainerAllocator> &) { return value(); } 00385 }; 00386 00387 } // namespace message_traits 00388 } // namespace ros 00389 00390 namespace ros 00391 { 00392 namespace serialization 00393 { 00394 00395 template<class ContainerAllocator> struct Serializer< ::gazebo::SetLinkStateRequest_<ContainerAllocator> > 00396 { 00397 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00398 { 00399 stream.next(m.link_state); 00400 } 00401 00402 ROS_DECLARE_ALLINONE_SERIALIZER; 00403 }; // struct SetLinkStateRequest_ 00404 } // namespace serialization 00405 } // namespace ros 00406 00407 00408 namespace ros 00409 { 00410 namespace serialization 00411 { 00412 00413 template<class ContainerAllocator> struct Serializer< ::gazebo::SetLinkStateResponse_<ContainerAllocator> > 00414 { 00415 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00416 { 00417 stream.next(m.success); 00418 stream.next(m.status_message); 00419 } 00420 00421 ROS_DECLARE_ALLINONE_SERIALIZER; 00422 }; // struct SetLinkStateResponse_ 00423 } // namespace serialization 00424 } // namespace ros 00425 00426 namespace ros 00427 { 00428 namespace service_traits 00429 { 00430 template<> 00431 struct MD5Sum<gazebo::SetLinkState> { 00432 static const char* value() 00433 { 00434 return "8a5146eb66ae4d26b0860b08f3f271be"; 00435 } 00436 00437 static const char* value(const gazebo::SetLinkState&) { return value(); } 00438 }; 00439 00440 template<> 00441 struct DataType<gazebo::SetLinkState> { 00442 static const char* value() 00443 { 00444 return "gazebo/SetLinkState"; 00445 } 00446 00447 static const char* value(const gazebo::SetLinkState&) { return value(); } 00448 }; 00449 00450 template<class ContainerAllocator> 00451 struct MD5Sum<gazebo::SetLinkStateRequest_<ContainerAllocator> > { 00452 static const char* value() 00453 { 00454 return "8a5146eb66ae4d26b0860b08f3f271be"; 00455 } 00456 00457 static const char* value(const gazebo::SetLinkStateRequest_<ContainerAllocator> &) { return value(); } 00458 }; 00459 00460 template<class ContainerAllocator> 00461 struct DataType<gazebo::SetLinkStateRequest_<ContainerAllocator> > { 00462 static const char* value() 00463 { 00464 return "gazebo/SetLinkState"; 00465 } 00466 00467 static const char* value(const gazebo::SetLinkStateRequest_<ContainerAllocator> &) { return value(); } 00468 }; 00469 00470 template<class ContainerAllocator> 00471 struct MD5Sum<gazebo::SetLinkStateResponse_<ContainerAllocator> > { 00472 static const char* value() 00473 { 00474 return "8a5146eb66ae4d26b0860b08f3f271be"; 00475 } 00476 00477 static const char* value(const gazebo::SetLinkStateResponse_<ContainerAllocator> &) { return value(); } 00478 }; 00479 00480 template<class ContainerAllocator> 00481 struct DataType<gazebo::SetLinkStateResponse_<ContainerAllocator> > { 00482 static const char* value() 00483 { 00484 return "gazebo/SetLinkState"; 00485 } 00486 00487 static const char* value(const gazebo::SetLinkStateResponse_<ContainerAllocator> &) { return value(); } 00488 }; 00489 00490 } // namespace service_traits 00491 } // namespace ros 00492 00493 #endif // GAZEBO_SERVICE_SETLINKSTATE_H 00494