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