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