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