Go to the documentation of this file.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 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::gazebo_msgs::GetLinkStateRequest_<std::allocator<void> > GetLinkStateRequest;
00053
00054 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateRequest> GetLinkStateRequestPtr;
00055 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateRequest const> GetLinkStateRequestConstPtr;
00056
00057
00058
00059 template <class ContainerAllocator>
00060 struct GetLinkStateResponse_ {
00061 typedef GetLinkStateResponse_<ContainerAllocator> Type;
00062
00063 GetLinkStateResponse_()
00064 : link_state()
00065 , success(false)
00066 , status_message()
00067 {
00068 }
00069
00070 GetLinkStateResponse_(const ContainerAllocator& _alloc)
00071 : link_state(_alloc)
00072 , success(false)
00073 , status_message(_alloc)
00074 {
00075 }
00076
00077 typedef ::gazebo_msgs::LinkState_<ContainerAllocator> _link_state_type;
00078 ::gazebo_msgs::LinkState_<ContainerAllocator> link_state;
00079
00080 typedef uint8_t _success_type;
00081 uint8_t success;
00082
00083 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_message_type;
00084 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_message;
00085
00086
00087 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > Ptr;
00088 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> const> ConstPtr;
00089 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00090 };
00091 typedef ::gazebo_msgs::GetLinkStateResponse_<std::allocator<void> > GetLinkStateResponse;
00092
00093 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateResponse> GetLinkStateResponsePtr;
00094 typedef boost::shared_ptr< ::gazebo_msgs::GetLinkStateResponse const> GetLinkStateResponseConstPtr;
00095
00096
00097 struct GetLinkState
00098 {
00099
00100 typedef GetLinkStateRequest Request;
00101 typedef GetLinkStateResponse Response;
00102 Request request;
00103 Response response;
00104
00105 typedef Request RequestType;
00106 typedef Response ResponseType;
00107 };
00108 }
00109
00110 namespace ros
00111 {
00112 namespace message_traits
00113 {
00114 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > : public TrueType {};
00115 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> const> : public TrueType {};
00116 template<class ContainerAllocator>
00117 struct MD5Sum< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > {
00118 static const char* value()
00119 {
00120 return "7551675c30aaa71f7c288d4864552001";
00121 }
00122
00123 static const char* value(const ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> &) { return value(); }
00124 static const uint64_t static_value1 = 0x7551675c30aaa71fULL;
00125 static const uint64_t static_value2 = 0x7c288d4864552001ULL;
00126 };
00127
00128 template<class ContainerAllocator>
00129 struct DataType< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > {
00130 static const char* value()
00131 {
00132 return "gazebo_msgs/GetLinkStateRequest";
00133 }
00134
00135 static const char* value(const ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> &) { return value(); }
00136 };
00137
00138 template<class ContainerAllocator>
00139 struct Definition< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > {
00140 static const char* value()
00141 {
00142 return "string link_name\n\
00143 \n\
00144 string reference_frame\n\
00145 \n\
00146 \n\
00147 \n\
00148 ";
00149 }
00150
00151 static const char* value(const ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 }
00155 }
00156
00157
00158 namespace ros
00159 {
00160 namespace message_traits
00161 {
00162 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > : public TrueType {};
00163 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> const> : public TrueType {};
00164 template<class ContainerAllocator>
00165 struct MD5Sum< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > {
00166 static const char* value()
00167 {
00168 return "8ba55ad34f9c072e75c0de57b089753b";
00169 }
00170
00171 static const char* value(const ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> &) { return value(); }
00172 static const uint64_t static_value1 = 0x8ba55ad34f9c072eULL;
00173 static const uint64_t static_value2 = 0x75c0de57b089753bULL;
00174 };
00175
00176 template<class ContainerAllocator>
00177 struct DataType< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "gazebo_msgs/GetLinkStateResponse";
00181 }
00182
00183 static const char* value(const ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> &) { return value(); }
00184 };
00185
00186 template<class ContainerAllocator>
00187 struct Definition< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > {
00188 static const char* value()
00189 {
00190 return "gazebo_msgs/LinkState link_state\n\
00191 bool success\n\
00192 string status_message\n\
00193 \n\
00194 \n\
00195 ================================================================================\n\
00196 MSG: gazebo_msgs/LinkState\n\
00197 # @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\
00198 string link_name # link name, link_names are in gazebo scoped name notation, [model_name::body_name]\n\
00199 geometry_msgs/Pose pose # desired pose in reference frame\n\
00200 geometry_msgs/Twist twist # desired twist in reference frame\n\
00201 string reference_frame # set pose/twist relative to the frame of this link/body\n\
00202 # leave empty or \"world\" or \"map\" defaults to world-frame\n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: geometry_msgs/Pose\n\
00206 # A representation of pose in free space, composed of postion and orientation. \n\
00207 Point position\n\
00208 Quaternion orientation\n\
00209 \n\
00210 ================================================================================\n\
00211 MSG: geometry_msgs/Point\n\
00212 # This contains the position of a point in free space\n\
00213 float64 x\n\
00214 float64 y\n\
00215 float64 z\n\
00216 \n\
00217 ================================================================================\n\
00218 MSG: geometry_msgs/Quaternion\n\
00219 # This represents an orientation in free space in quaternion form.\n\
00220 \n\
00221 float64 x\n\
00222 float64 y\n\
00223 float64 z\n\
00224 float64 w\n\
00225 \n\
00226 ================================================================================\n\
00227 MSG: geometry_msgs/Twist\n\
00228 # This expresses velocity in free space broken into its linear and angular parts.\n\
00229 Vector3 linear\n\
00230 Vector3 angular\n\
00231 \n\
00232 ================================================================================\n\
00233 MSG: geometry_msgs/Vector3\n\
00234 # This represents a vector in free space. \n\
00235 \n\
00236 float64 x\n\
00237 float64 y\n\
00238 float64 z\n\
00239 ";
00240 }
00241
00242 static const char* value(const ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> &) { return value(); }
00243 };
00244
00245 }
00246 }
00247
00248 namespace ros
00249 {
00250 namespace serialization
00251 {
00252
00253 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> >
00254 {
00255 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00256 {
00257 stream.next(m.link_name);
00258 stream.next(m.reference_frame);
00259 }
00260
00261 ROS_DECLARE_ALLINONE_SERIALIZER;
00262 };
00263 }
00264 }
00265
00266
00267 namespace ros
00268 {
00269 namespace serialization
00270 {
00271
00272 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> >
00273 {
00274 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00275 {
00276 stream.next(m.link_state);
00277 stream.next(m.success);
00278 stream.next(m.status_message);
00279 }
00280
00281 ROS_DECLARE_ALLINONE_SERIALIZER;
00282 };
00283 }
00284 }
00285
00286 namespace ros
00287 {
00288 namespace service_traits
00289 {
00290 template<>
00291 struct MD5Sum<gazebo_msgs::GetLinkState> {
00292 static const char* value()
00293 {
00294 return "09d6c98cce97b35f7ab9bd70300657ab";
00295 }
00296
00297 static const char* value(const gazebo_msgs::GetLinkState&) { return value(); }
00298 };
00299
00300 template<>
00301 struct DataType<gazebo_msgs::GetLinkState> {
00302 static const char* value()
00303 {
00304 return "gazebo_msgs/GetLinkState";
00305 }
00306
00307 static const char* value(const gazebo_msgs::GetLinkState&) { return value(); }
00308 };
00309
00310 template<class ContainerAllocator>
00311 struct MD5Sum<gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > {
00312 static const char* value()
00313 {
00314 return "09d6c98cce97b35f7ab9bd70300657ab";
00315 }
00316
00317 static const char* value(const gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> &) { return value(); }
00318 };
00319
00320 template<class ContainerAllocator>
00321 struct DataType<gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> > {
00322 static const char* value()
00323 {
00324 return "gazebo_msgs/GetLinkState";
00325 }
00326
00327 static const char* value(const gazebo_msgs::GetLinkStateRequest_<ContainerAllocator> &) { return value(); }
00328 };
00329
00330 template<class ContainerAllocator>
00331 struct MD5Sum<gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > {
00332 static const char* value()
00333 {
00334 return "09d6c98cce97b35f7ab9bd70300657ab";
00335 }
00336
00337 static const char* value(const gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> &) { return value(); }
00338 };
00339
00340 template<class ContainerAllocator>
00341 struct DataType<gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> > {
00342 static const char* value()
00343 {
00344 return "gazebo_msgs/GetLinkState";
00345 }
00346
00347 static const char* value(const gazebo_msgs::GetLinkStateResponse_<ContainerAllocator> &) { return value(); }
00348 };
00349
00350 }
00351 }
00352
00353 #endif // GAZEBO_MSGS_SERVICE_GETLINKSTATE_H
00354