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