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