00001
00002 #ifndef GAZEBO_MSGS_SERVICE_GETLINKSTATE_H
00003 #define GAZEBO_MSGS_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_msgs/LinkState.h"
00022
00023 namespace gazebo_msgs
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_msgs/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 "string link_name\n\
00071 \n\
00072 string reference_frame\n\
00073 \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_msgs::GetLinkStateRequest_<ContainerAllocator> > Ptr;
00107 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> const> ConstPtr;
00108 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00109 };
00110 typedef ::gazebo_msgs::GetLinkStateRequest_<std::allocator<void> > GetLinkStateRequest;
00111
00112 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateRequest> GetLinkStateRequestPtr;
00113 typedef boost::shared_ptr< ::gazebo_msgs::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_msgs::LinkState_<ContainerAllocator> _link_state_type;
00135 ::gazebo_msgs::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_msgs/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_msgs/LinkState link_state\n\
00167 bool success\n\
00168 string status_message\n\
00169 \n\
00170 \n\
00171 ================================================================================\n\
00172 MSG: gazebo_msgs/LinkState\n\
00173 # @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\
00174 string link_name # link name, link_names are in gazebo scoped name notation, [model_name::body_name]\n\
00175 geometry_msgs/Pose pose # desired pose in reference frame\n\
00176 geometry_msgs/Twist twist # desired twist in reference frame\n\
00177 string reference_frame # set pose/twist relative to the frame of this link/body\n\
00178 # leave empty or \"world\" or \"map\" defaults to world-frame\n\
00179 \n\
00180 ================================================================================\n\
00181 MSG: geometry_msgs/Pose\n\
00182 # A representation of pose in free space, composed of postion and orientation. \n\
00183 Point position\n\
00184 Quaternion orientation\n\
00185 \n\
00186 ================================================================================\n\
00187 MSG: geometry_msgs/Point\n\
00188 # This contains the position of a point in free space\n\
00189 float64 x\n\
00190 float64 y\n\
00191 float64 z\n\
00192 \n\
00193 ================================================================================\n\
00194 MSG: geometry_msgs/Quaternion\n\
00195 # This represents an orientation in free space in quaternion form.\n\
00196 \n\
00197 float64 x\n\
00198 float64 y\n\
00199 float64 z\n\
00200 float64 w\n\
00201 \n\
00202 ================================================================================\n\
00203 MSG: geometry_msgs/Twist\n\
00204 # This expresses velocity in free space broken into it's linear and angular parts. \n\
00205 Vector3 linear\n\
00206 Vector3 angular\n\
00207 \n\
00208 ================================================================================\n\
00209 MSG: geometry_msgs/Vector3\n\
00210 # This represents a vector in free space. \n\
00211 \n\
00212 float64 x\n\
00213 float64 y\n\
00214 float64 z\n\
00215 "; }
00216 public:
00217 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00218
00219 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00220
00221 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00222 {
00223 ros::serialization::OStream stream(write_ptr, 1000000000);
00224 ros::serialization::serialize(stream, link_state);
00225 ros::serialization::serialize(stream, success);
00226 ros::serialization::serialize(stream, status_message);
00227 return stream.getData();
00228 }
00229
00230 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00231 {
00232 ros::serialization::IStream stream(read_ptr, 1000000000);
00233 ros::serialization::deserialize(stream, link_state);
00234 ros::serialization::deserialize(stream, success);
00235 ros::serialization::deserialize(stream, status_message);
00236 return stream.getData();
00237 }
00238
00239 ROS_DEPRECATED virtual uint32_t serializationLength() const
00240 {
00241 uint32_t size = 0;
00242 size += ros::serialization::serializationLength(link_state);
00243 size += ros::serialization::serializationLength(success);
00244 size += ros::serialization::serializationLength(status_message);
00245 return size;
00246 }
00247
00248 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > Ptr;
00249 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> const> ConstPtr;
00250 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00251 };
00252 typedef ::gazebo_msgs::GetLinkStateResponse_<std::allocator<void> > GetLinkStateResponse;
00253
00254 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateResponse> GetLinkStateResponsePtr;
00255 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateResponse const> GetLinkStateResponseConstPtr;
00256
00257 struct GetLinkState
00258 {
00259
00260 typedef GetLinkStateRequest Request;
00261 typedef GetLinkStateResponse Response;
00262 Request request;
00263 Response response;
00264
00265 typedef Request RequestType;
00266 typedef Response ResponseType;
00267 };
00268 }
00269
00270 namespace ros
00271 {
00272 namespace message_traits
00273 {
00274 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > : public TrueType {};
00275 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> const> : public TrueType {};
00276 template<class ContainerAllocator>
00277 struct MD5Sum< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > {
00278 static const char* value()
00279 {
00280 return "7551675c30aaa71f7c288d4864552001";
00281 }
00282
00283 static const char* value(const ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> &) { return value(); }
00284 static const uint64_t static_value1 = 0x7551675c30aaa71fULL;
00285 static const uint64_t static_value2 = 0x7c288d4864552001ULL;
00286 };
00287
00288 template<class ContainerAllocator>
00289 struct DataType< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > {
00290 static const char* value()
00291 {
00292 return "gazebo_msgs/GetLinkStateRequest";
00293 }
00294
00295 static const char* value(const ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> &) { return value(); }
00296 };
00297
00298 template<class ContainerAllocator>
00299 struct Definition< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > {
00300 static const char* value()
00301 {
00302 return "string link_name\n\
00303 \n\
00304 string reference_frame\n\
00305 \n\
00306 \n\
00307 \n\
00308 ";
00309 }
00310
00311 static const char* value(const ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> &) { return value(); }
00312 };
00313
00314 }
00315 }
00316
00317
00318 namespace ros
00319 {
00320 namespace message_traits
00321 {
00322 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > : public TrueType {};
00323 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> const> : public TrueType {};
00324 template<class ContainerAllocator>
00325 struct MD5Sum< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > {
00326 static const char* value()
00327 {
00328 return "8ba55ad34f9c072e75c0de57b089753b";
00329 }
00330
00331 static const char* value(const ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> &) { return value(); }
00332 static const uint64_t static_value1 = 0x8ba55ad34f9c072eULL;
00333 static const uint64_t static_value2 = 0x75c0de57b089753bULL;
00334 };
00335
00336 template<class ContainerAllocator>
00337 struct DataType< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > {
00338 static const char* value()
00339 {
00340 return "gazebo_msgs/GetLinkStateResponse";
00341 }
00342
00343 static const char* value(const ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> &) { return value(); }
00344 };
00345
00346 template<class ContainerAllocator>
00347 struct Definition< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > {
00348 static const char* value()
00349 {
00350 return "gazebo_msgs/LinkState link_state\n\
00351 bool success\n\
00352 string status_message\n\
00353 \n\
00354 \n\
00355 ================================================================================\n\
00356 MSG: gazebo_msgs/LinkState\n\
00357 # @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\
00358 string link_name # link name, link_names are in gazebo scoped name notation, [model_name::body_name]\n\
00359 geometry_msgs/Pose pose # desired pose in reference frame\n\
00360 geometry_msgs/Twist twist # desired twist in reference frame\n\
00361 string reference_frame # set pose/twist relative to the frame of this link/body\n\
00362 # leave empty or \"world\" or \"map\" defaults to world-frame\n\
00363 \n\
00364 ================================================================================\n\
00365 MSG: geometry_msgs/Pose\n\
00366 # A representation of pose in free space, composed of postion and orientation. \n\
00367 Point position\n\
00368 Quaternion orientation\n\
00369 \n\
00370 ================================================================================\n\
00371 MSG: geometry_msgs/Point\n\
00372 # This contains the position of a point in free space\n\
00373 float64 x\n\
00374 float64 y\n\
00375 float64 z\n\
00376 \n\
00377 ================================================================================\n\
00378 MSG: geometry_msgs/Quaternion\n\
00379 # This represents an orientation in free space in quaternion form.\n\
00380 \n\
00381 float64 x\n\
00382 float64 y\n\
00383 float64 z\n\
00384 float64 w\n\
00385 \n\
00386 ================================================================================\n\
00387 MSG: geometry_msgs/Twist\n\
00388 # This expresses velocity in free space broken into it's linear and angular parts. \n\
00389 Vector3 linear\n\
00390 Vector3 angular\n\
00391 \n\
00392 ================================================================================\n\
00393 MSG: geometry_msgs/Vector3\n\
00394 # This represents a vector in free space. \n\
00395 \n\
00396 float64 x\n\
00397 float64 y\n\
00398 float64 z\n\
00399 ";
00400 }
00401
00402 static const char* value(const ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> &) { return value(); }
00403 };
00404
00405 }
00406 }
00407
00408 namespace ros
00409 {
00410 namespace serialization
00411 {
00412
00413 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> >
00414 {
00415 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00416 {
00417 stream.next(m.link_name);
00418 stream.next(m.reference_frame);
00419 }
00420
00421 ROS_DECLARE_ALLINONE_SERIALIZER;
00422 };
00423 }
00424 }
00425
00426
00427 namespace ros
00428 {
00429 namespace serialization
00430 {
00431
00432 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> >
00433 {
00434 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00435 {
00436 stream.next(m.link_state);
00437 stream.next(m.success);
00438 stream.next(m.status_message);
00439 }
00440
00441 ROS_DECLARE_ALLINONE_SERIALIZER;
00442 };
00443 }
00444 }
00445
00446 namespace ros
00447 {
00448 namespace service_traits
00449 {
00450 template<>
00451 struct MD5Sum<gazebo_msgs::GetLinkState> {
00452 static const char* value()
00453 {
00454 return "09d6c98cce97b35f7ab9bd70300657ab";
00455 }
00456
00457 static const char* value(const gazebo_msgs::GetLinkState&) { return value(); }
00458 };
00459
00460 template<>
00461 struct DataType<gazebo_msgs::GetLinkState> {
00462 static const char* value()
00463 {
00464 return "gazebo_msgs/GetLinkState";
00465 }
00466
00467 static const char* value(const gazebo_msgs::GetLinkState&) { return value(); }
00468 };
00469
00470 template<class ContainerAllocator>
00471 struct MD5Sum<gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > {
00472 static const char* value()
00473 {
00474 return "09d6c98cce97b35f7ab9bd70300657ab";
00475 }
00476
00477 static const char* value(const gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> &) { return value(); }
00478 };
00479
00480 template<class ContainerAllocator>
00481 struct DataType<gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > {
00482 static const char* value()
00483 {
00484 return "gazebo_msgs/GetLinkState";
00485 }
00486
00487 static const char* value(const gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> &) { return value(); }
00488 };
00489
00490 template<class ContainerAllocator>
00491 struct MD5Sum<gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > {
00492 static const char* value()
00493 {
00494 return "09d6c98cce97b35f7ab9bd70300657ab";
00495 }
00496
00497 static const char* value(const gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> &) { return value(); }
00498 };
00499
00500 template<class ContainerAllocator>
00501 struct DataType<gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > {
00502 static const char* value()
00503 {
00504 return "gazebo_msgs/GetLinkState";
00505 }
00506
00507 static const char* value(const gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> &) { return value(); }
00508 };
00509
00510 }
00511 }
00512
00513 #endif // GAZEBO_MSGS_SERVICE_GETLINKSTATE_H
00514