Go to the documentation of this file.00001
00002 #ifndef GAZEBO_MSGS_SERVICE_SETMODELSTATE_H
00003 #define GAZEBO_MSGS_SERVICE_SETMODELSTATE_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/ModelState.h"
00020
00021
00022
00023 namespace gazebo_msgs
00024 {
00025 template <class ContainerAllocator>
00026 struct SetModelStateRequest_ {
00027 typedef SetModelStateRequest_<ContainerAllocator> Type;
00028
00029 SetModelStateRequest_()
00030 : model_state()
00031 {
00032 }
00033
00034 SetModelStateRequest_(const ContainerAllocator& _alloc)
00035 : model_state(_alloc)
00036 {
00037 }
00038
00039 typedef ::gazebo_msgs::ModelState_<ContainerAllocator> _model_state_type;
00040 ::gazebo_msgs::ModelState_<ContainerAllocator> model_state;
00041
00042
00043 typedef boost::shared_ptr< ::gazebo_msgs::SetModelStateRequest_<ContainerAllocator> > Ptr;
00044 typedef boost::shared_ptr< ::gazebo_msgs::SetModelStateRequest_<ContainerAllocator> const> ConstPtr;
00045 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 };
00047 typedef ::gazebo_msgs::SetModelStateRequest_<std::allocator<void> > SetModelStateRequest;
00048
00049 typedef boost::shared_ptr< ::gazebo_msgs::SetModelStateRequest> SetModelStateRequestPtr;
00050 typedef boost::shared_ptr< ::gazebo_msgs::SetModelStateRequest const> SetModelStateRequestConstPtr;
00051
00052
00053
00054 template <class ContainerAllocator>
00055 struct SetModelStateResponse_ {
00056 typedef SetModelStateResponse_<ContainerAllocator> Type;
00057
00058 SetModelStateResponse_()
00059 : success(false)
00060 , status_message()
00061 {
00062 }
00063
00064 SetModelStateResponse_(const ContainerAllocator& _alloc)
00065 : success(false)
00066 , status_message(_alloc)
00067 {
00068 }
00069
00070 typedef uint8_t _success_type;
00071 uint8_t success;
00072
00073 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_message_type;
00074 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_message;
00075
00076
00077 typedef boost::shared_ptr< ::gazebo_msgs::SetModelStateResponse_<ContainerAllocator> > Ptr;
00078 typedef boost::shared_ptr< ::gazebo_msgs::SetModelStateResponse_<ContainerAllocator> const> ConstPtr;
00079 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00080 };
00081 typedef ::gazebo_msgs::SetModelStateResponse_<std::allocator<void> > SetModelStateResponse;
00082
00083 typedef boost::shared_ptr< ::gazebo_msgs::SetModelStateResponse> SetModelStateResponsePtr;
00084 typedef boost::shared_ptr< ::gazebo_msgs::SetModelStateResponse const> SetModelStateResponseConstPtr;
00085
00086
00087 struct SetModelState
00088 {
00089
00090 typedef SetModelStateRequest Request;
00091 typedef SetModelStateResponse Response;
00092 Request request;
00093 Response response;
00094
00095 typedef Request RequestType;
00096 typedef Response ResponseType;
00097 };
00098 }
00099
00100 namespace ros
00101 {
00102 namespace message_traits
00103 {
00104 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::SetModelStateRequest_<ContainerAllocator> > : public TrueType {};
00105 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::SetModelStateRequest_<ContainerAllocator> const> : public TrueType {};
00106 template<class ContainerAllocator>
00107 struct MD5Sum< ::gazebo_msgs::SetModelStateRequest_<ContainerAllocator> > {
00108 static const char* value()
00109 {
00110 return "cb042b0e91880f4661b29ea5b6234350";
00111 }
00112
00113 static const char* value(const ::gazebo_msgs::SetModelStateRequest_<ContainerAllocator> &) { return value(); }
00114 static const uint64_t static_value1 = 0xcb042b0e91880f46ULL;
00115 static const uint64_t static_value2 = 0x61b29ea5b6234350ULL;
00116 };
00117
00118 template<class ContainerAllocator>
00119 struct DataType< ::gazebo_msgs::SetModelStateRequest_<ContainerAllocator> > {
00120 static const char* value()
00121 {
00122 return "gazebo_msgs/SetModelStateRequest";
00123 }
00124
00125 static const char* value(const ::gazebo_msgs::SetModelStateRequest_<ContainerAllocator> &) { return value(); }
00126 };
00127
00128 template<class ContainerAllocator>
00129 struct Definition< ::gazebo_msgs::SetModelStateRequest_<ContainerAllocator> > {
00130 static const char* value()
00131 {
00132 return "gazebo_msgs/ModelState model_state\n\
00133 \n\
00134 ================================================================================\n\
00135 MSG: gazebo_msgs/ModelState\n\
00136 # Set Gazebo Model pose and twist\n\
00137 string model_name # model to set state (pose and twist)\n\
00138 geometry_msgs/Pose pose # desired pose in reference frame\n\
00139 geometry_msgs/Twist twist # desired twist in reference frame\n\
00140 string reference_frame # set pose/twist relative to the frame of this entity (Body/Model)\n\
00141 # leave empty or \"world\" or \"map\" defaults to world-frame\n\
00142 \n\
00143 \n\
00144 ================================================================================\n\
00145 MSG: geometry_msgs/Pose\n\
00146 # A representation of pose in free space, composed of postion and orientation. \n\
00147 Point position\n\
00148 Quaternion orientation\n\
00149 \n\
00150 ================================================================================\n\
00151 MSG: geometry_msgs/Point\n\
00152 # This contains the position of a point in free space\n\
00153 float64 x\n\
00154 float64 y\n\
00155 float64 z\n\
00156 \n\
00157 ================================================================================\n\
00158 MSG: geometry_msgs/Quaternion\n\
00159 # This represents an orientation in free space in quaternion form.\n\
00160 \n\
00161 float64 x\n\
00162 float64 y\n\
00163 float64 z\n\
00164 float64 w\n\
00165 \n\
00166 ================================================================================\n\
00167 MSG: geometry_msgs/Twist\n\
00168 # This expresses velocity in free space broken into its linear and angular parts.\n\
00169 Vector3 linear\n\
00170 Vector3 angular\n\
00171 \n\
00172 ================================================================================\n\
00173 MSG: geometry_msgs/Vector3\n\
00174 # This represents a vector in free space. \n\
00175 \n\
00176 float64 x\n\
00177 float64 y\n\
00178 float64 z\n\
00179 ";
00180 }
00181
00182 static const char* value(const ::gazebo_msgs::SetModelStateRequest_<ContainerAllocator> &) { return value(); }
00183 };
00184
00185 }
00186 }
00187
00188
00189 namespace ros
00190 {
00191 namespace message_traits
00192 {
00193 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::SetModelStateResponse_<ContainerAllocator> > : public TrueType {};
00194 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::SetModelStateResponse_<ContainerAllocator> const> : public TrueType {};
00195 template<class ContainerAllocator>
00196 struct MD5Sum< ::gazebo_msgs::SetModelStateResponse_<ContainerAllocator> > {
00197 static const char* value()
00198 {
00199 return "2ec6f3eff0161f4257b808b12bc830c2";
00200 }
00201
00202 static const char* value(const ::gazebo_msgs::SetModelStateResponse_<ContainerAllocator> &) { return value(); }
00203 static const uint64_t static_value1 = 0x2ec6f3eff0161f42ULL;
00204 static const uint64_t static_value2 = 0x57b808b12bc830c2ULL;
00205 };
00206
00207 template<class ContainerAllocator>
00208 struct DataType< ::gazebo_msgs::SetModelStateResponse_<ContainerAllocator> > {
00209 static const char* value()
00210 {
00211 return "gazebo_msgs/SetModelStateResponse";
00212 }
00213
00214 static const char* value(const ::gazebo_msgs::SetModelStateResponse_<ContainerAllocator> &) { return value(); }
00215 };
00216
00217 template<class ContainerAllocator>
00218 struct Definition< ::gazebo_msgs::SetModelStateResponse_<ContainerAllocator> > {
00219 static const char* value()
00220 {
00221 return "bool success\n\
00222 string status_message\n\
00223 \n\
00224 \n\
00225 ";
00226 }
00227
00228 static const char* value(const ::gazebo_msgs::SetModelStateResponse_<ContainerAllocator> &) { return value(); }
00229 };
00230
00231 }
00232 }
00233
00234 namespace ros
00235 {
00236 namespace serialization
00237 {
00238
00239 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::SetModelStateRequest_<ContainerAllocator> >
00240 {
00241 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00242 {
00243 stream.next(m.model_state);
00244 }
00245
00246 ROS_DECLARE_ALLINONE_SERIALIZER;
00247 };
00248 }
00249 }
00250
00251
00252 namespace ros
00253 {
00254 namespace serialization
00255 {
00256
00257 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::SetModelStateResponse_<ContainerAllocator> >
00258 {
00259 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00260 {
00261 stream.next(m.success);
00262 stream.next(m.status_message);
00263 }
00264
00265 ROS_DECLARE_ALLINONE_SERIALIZER;
00266 };
00267 }
00268 }
00269
00270 namespace ros
00271 {
00272 namespace service_traits
00273 {
00274 template<>
00275 struct MD5Sum<gazebo_msgs::SetModelState> {
00276 static const char* value()
00277 {
00278 return "5b3ab0281d4f5445def017e3a2e4a07b";
00279 }
00280
00281 static const char* value(const gazebo_msgs::SetModelState&) { return value(); }
00282 };
00283
00284 template<>
00285 struct DataType<gazebo_msgs::SetModelState> {
00286 static const char* value()
00287 {
00288 return "gazebo_msgs/SetModelState";
00289 }
00290
00291 static const char* value(const gazebo_msgs::SetModelState&) { return value(); }
00292 };
00293
00294 template<class ContainerAllocator>
00295 struct MD5Sum<gazebo_msgs::SetModelStateRequest_<ContainerAllocator> > {
00296 static const char* value()
00297 {
00298 return "5b3ab0281d4f5445def017e3a2e4a07b";
00299 }
00300
00301 static const char* value(const gazebo_msgs::SetModelStateRequest_<ContainerAllocator> &) { return value(); }
00302 };
00303
00304 template<class ContainerAllocator>
00305 struct DataType<gazebo_msgs::SetModelStateRequest_<ContainerAllocator> > {
00306 static const char* value()
00307 {
00308 return "gazebo_msgs/SetModelState";
00309 }
00310
00311 static const char* value(const gazebo_msgs::SetModelStateRequest_<ContainerAllocator> &) { return value(); }
00312 };
00313
00314 template<class ContainerAllocator>
00315 struct MD5Sum<gazebo_msgs::SetModelStateResponse_<ContainerAllocator> > {
00316 static const char* value()
00317 {
00318 return "5b3ab0281d4f5445def017e3a2e4a07b";
00319 }
00320
00321 static const char* value(const gazebo_msgs::SetModelStateResponse_<ContainerAllocator> &) { return value(); }
00322 };
00323
00324 template<class ContainerAllocator>
00325 struct DataType<gazebo_msgs::SetModelStateResponse_<ContainerAllocator> > {
00326 static const char* value()
00327 {
00328 return "gazebo_msgs/SetModelState";
00329 }
00330
00331 static const char* value(const gazebo_msgs::SetModelStateResponse_<ContainerAllocator> &) { return value(); }
00332 };
00333
00334 }
00335 }
00336
00337 #endif // GAZEBO_MSGS_SERVICE_SETMODELSTATE_H
00338