$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/SpawnModel.srv */ 00002 #ifndef GAZEBO_MSGS_SERVICE_SPAWNMODEL_H 00003 #define GAZEBO_MSGS_SERVICE_SPAWNMODEL_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 "geometry_msgs/Pose.h" 00020 00021 00022 00023 namespace gazebo_msgs 00024 { 00025 template <class ContainerAllocator> 00026 struct SpawnModelRequest_ { 00027 typedef SpawnModelRequest_<ContainerAllocator> Type; 00028 00029 SpawnModelRequest_() 00030 : model_name() 00031 , model_xml() 00032 , robot_namespace() 00033 , initial_pose() 00034 , reference_frame() 00035 { 00036 } 00037 00038 SpawnModelRequest_(const ContainerAllocator& _alloc) 00039 : model_name(_alloc) 00040 , model_xml(_alloc) 00041 , robot_namespace(_alloc) 00042 , initial_pose(_alloc) 00043 , reference_frame(_alloc) 00044 { 00045 } 00046 00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _model_name_type; 00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > model_name; 00049 00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _model_xml_type; 00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > model_xml; 00052 00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _robot_namespace_type; 00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > robot_namespace; 00055 00056 typedef ::geometry_msgs::Pose_<ContainerAllocator> _initial_pose_type; 00057 ::geometry_msgs::Pose_<ContainerAllocator> initial_pose; 00058 00059 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _reference_frame_type; 00060 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > reference_frame; 00061 00062 00063 private: 00064 static const char* __s_getDataType_() { return "gazebo_msgs/SpawnModelRequest"; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00067 00068 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00069 00070 private: 00071 static const char* __s_getMD5Sum_() { return "6d0eba5753761cd57e6263a056b79930"; } 00072 public: 00073 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00074 00075 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00076 00077 private: 00078 static const char* __s_getServerMD5Sum_() { return "9ed9c82c96abe1a00c3e8cdaeee24413"; } 00079 public: 00080 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00081 00082 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00083 00084 private: 00085 static const char* __s_getMessageDefinition_() { return "string model_name\n\ 00086 string model_xml\n\ 00087 string robot_namespace\n\ 00088 geometry_msgs/Pose initial_pose\n\ 00089 string reference_frame\n\ 00090 \n\ 00091 \n\ 00092 \n\ 00093 \n\ 00094 ================================================================================\n\ 00095 MSG: geometry_msgs/Pose\n\ 00096 # A representation of pose in free space, composed of postion and orientation. \n\ 00097 Point position\n\ 00098 Quaternion orientation\n\ 00099 \n\ 00100 ================================================================================\n\ 00101 MSG: geometry_msgs/Point\n\ 00102 # This contains the position of a point in free space\n\ 00103 float64 x\n\ 00104 float64 y\n\ 00105 float64 z\n\ 00106 \n\ 00107 ================================================================================\n\ 00108 MSG: geometry_msgs/Quaternion\n\ 00109 # This represents an orientation in free space in quaternion form.\n\ 00110 \n\ 00111 float64 x\n\ 00112 float64 y\n\ 00113 float64 z\n\ 00114 float64 w\n\ 00115 \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_name); 00126 ros::serialization::serialize(stream, model_xml); 00127 ros::serialization::serialize(stream, robot_namespace); 00128 ros::serialization::serialize(stream, initial_pose); 00129 ros::serialization::serialize(stream, reference_frame); 00130 return stream.getData(); 00131 } 00132 00133 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00134 { 00135 ros::serialization::IStream stream(read_ptr, 1000000000); 00136 ros::serialization::deserialize(stream, model_name); 00137 ros::serialization::deserialize(stream, model_xml); 00138 ros::serialization::deserialize(stream, robot_namespace); 00139 ros::serialization::deserialize(stream, initial_pose); 00140 ros::serialization::deserialize(stream, reference_frame); 00141 return stream.getData(); 00142 } 00143 00144 ROS_DEPRECATED virtual uint32_t serializationLength() const 00145 { 00146 uint32_t size = 0; 00147 size += ros::serialization::serializationLength(model_name); 00148 size += ros::serialization::serializationLength(model_xml); 00149 size += ros::serialization::serializationLength(robot_namespace); 00150 size += ros::serialization::serializationLength(initial_pose); 00151 size += ros::serialization::serializationLength(reference_frame); 00152 return size; 00153 } 00154 00155 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > Ptr; 00156 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> const> ConstPtr; 00157 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00158 }; // struct SpawnModelRequest 00159 typedef ::gazebo_msgs::SpawnModelRequest_<std::allocator<void> > SpawnModelRequest; 00160 00161 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelRequest> SpawnModelRequestPtr; 00162 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelRequest const> SpawnModelRequestConstPtr; 00163 00164 00165 template <class ContainerAllocator> 00166 struct SpawnModelResponse_ { 00167 typedef SpawnModelResponse_<ContainerAllocator> Type; 00168 00169 SpawnModelResponse_() 00170 : success(false) 00171 , status_message() 00172 { 00173 } 00174 00175 SpawnModelResponse_(const ContainerAllocator& _alloc) 00176 : success(false) 00177 , status_message(_alloc) 00178 { 00179 } 00180 00181 typedef uint8_t _success_type; 00182 uint8_t success; 00183 00184 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_message_type; 00185 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_message; 00186 00187 00188 private: 00189 static const char* __s_getDataType_() { return "gazebo_msgs/SpawnModelResponse"; } 00190 public: 00191 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00192 00193 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00194 00195 private: 00196 static const char* __s_getMD5Sum_() { return "2ec6f3eff0161f4257b808b12bc830c2"; } 00197 public: 00198 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00199 00200 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00201 00202 private: 00203 static const char* __s_getServerMD5Sum_() { return "9ed9c82c96abe1a00c3e8cdaeee24413"; } 00204 public: 00205 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00206 00207 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00208 00209 private: 00210 static const char* __s_getMessageDefinition_() { return "bool success\n\ 00211 string status_message\n\ 00212 \n\ 00213 \n\ 00214 "; } 00215 public: 00216 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00217 00218 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00219 00220 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00221 { 00222 ros::serialization::OStream stream(write_ptr, 1000000000); 00223 ros::serialization::serialize(stream, success); 00224 ros::serialization::serialize(stream, status_message); 00225 return stream.getData(); 00226 } 00227 00228 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00229 { 00230 ros::serialization::IStream stream(read_ptr, 1000000000); 00231 ros::serialization::deserialize(stream, success); 00232 ros::serialization::deserialize(stream, status_message); 00233 return stream.getData(); 00234 } 00235 00236 ROS_DEPRECATED virtual uint32_t serializationLength() const 00237 { 00238 uint32_t size = 0; 00239 size += ros::serialization::serializationLength(success); 00240 size += ros::serialization::serializationLength(status_message); 00241 return size; 00242 } 00243 00244 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > Ptr; 00245 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> const> ConstPtr; 00246 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00247 }; // struct SpawnModelResponse 00248 typedef ::gazebo_msgs::SpawnModelResponse_<std::allocator<void> > SpawnModelResponse; 00249 00250 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelResponse> SpawnModelResponsePtr; 00251 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelResponse const> SpawnModelResponseConstPtr; 00252 00253 struct SpawnModel 00254 { 00255 00256 typedef SpawnModelRequest Request; 00257 typedef SpawnModelResponse Response; 00258 Request request; 00259 Response response; 00260 00261 typedef Request RequestType; 00262 typedef Response ResponseType; 00263 }; // struct SpawnModel 00264 } // namespace gazebo_msgs 00265 00266 namespace ros 00267 { 00268 namespace message_traits 00269 { 00270 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > : public TrueType {}; 00271 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> const> : public TrueType {}; 00272 template<class ContainerAllocator> 00273 struct MD5Sum< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > { 00274 static const char* value() 00275 { 00276 return "6d0eba5753761cd57e6263a056b79930"; 00277 } 00278 00279 static const char* value(const ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> &) { return value(); } 00280 static const uint64_t static_value1 = 0x6d0eba5753761cd5ULL; 00281 static const uint64_t static_value2 = 0x7e6263a056b79930ULL; 00282 }; 00283 00284 template<class ContainerAllocator> 00285 struct DataType< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > { 00286 static const char* value() 00287 { 00288 return "gazebo_msgs/SpawnModelRequest"; 00289 } 00290 00291 static const char* value(const ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> &) { return value(); } 00292 }; 00293 00294 template<class ContainerAllocator> 00295 struct Definition< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > { 00296 static const char* value() 00297 { 00298 return "string model_name\n\ 00299 string model_xml\n\ 00300 string robot_namespace\n\ 00301 geometry_msgs/Pose initial_pose\n\ 00302 string reference_frame\n\ 00303 \n\ 00304 \n\ 00305 \n\ 00306 \n\ 00307 ================================================================================\n\ 00308 MSG: geometry_msgs/Pose\n\ 00309 # A representation of pose in free space, composed of postion and orientation. \n\ 00310 Point position\n\ 00311 Quaternion orientation\n\ 00312 \n\ 00313 ================================================================================\n\ 00314 MSG: geometry_msgs/Point\n\ 00315 # This contains the position of a point in free space\n\ 00316 float64 x\n\ 00317 float64 y\n\ 00318 float64 z\n\ 00319 \n\ 00320 ================================================================================\n\ 00321 MSG: geometry_msgs/Quaternion\n\ 00322 # This represents an orientation in free space in quaternion form.\n\ 00323 \n\ 00324 float64 x\n\ 00325 float64 y\n\ 00326 float64 z\n\ 00327 float64 w\n\ 00328 \n\ 00329 "; 00330 } 00331 00332 static const char* value(const ::gazebo_msgs::SpawnModelRequest_<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::SpawnModelResponse_<ContainerAllocator> > : public TrueType {}; 00344 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> const> : public TrueType {}; 00345 template<class ContainerAllocator> 00346 struct MD5Sum< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > { 00347 static const char* value() 00348 { 00349 return "2ec6f3eff0161f4257b808b12bc830c2"; 00350 } 00351 00352 static const char* value(const ::gazebo_msgs::SpawnModelResponse_<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::SpawnModelResponse_<ContainerAllocator> > { 00359 static const char* value() 00360 { 00361 return "gazebo_msgs/SpawnModelResponse"; 00362 } 00363 00364 static const char* value(const ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> &) { return value(); } 00365 }; 00366 00367 template<class ContainerAllocator> 00368 struct Definition< ::gazebo_msgs::SpawnModelResponse_<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::SpawnModelResponse_<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::SpawnModelRequest_<ContainerAllocator> > 00390 { 00391 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00392 { 00393 stream.next(m.model_name); 00394 stream.next(m.model_xml); 00395 stream.next(m.robot_namespace); 00396 stream.next(m.initial_pose); 00397 stream.next(m.reference_frame); 00398 } 00399 00400 ROS_DECLARE_ALLINONE_SERIALIZER; 00401 }; // struct SpawnModelRequest_ 00402 } // namespace serialization 00403 } // namespace ros 00404 00405 00406 namespace ros 00407 { 00408 namespace serialization 00409 { 00410 00411 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > 00412 { 00413 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00414 { 00415 stream.next(m.success); 00416 stream.next(m.status_message); 00417 } 00418 00419 ROS_DECLARE_ALLINONE_SERIALIZER; 00420 }; // struct SpawnModelResponse_ 00421 } // namespace serialization 00422 } // namespace ros 00423 00424 namespace ros 00425 { 00426 namespace service_traits 00427 { 00428 template<> 00429 struct MD5Sum<gazebo_msgs::SpawnModel> { 00430 static const char* value() 00431 { 00432 return "9ed9c82c96abe1a00c3e8cdaeee24413"; 00433 } 00434 00435 static const char* value(const gazebo_msgs::SpawnModel&) { return value(); } 00436 }; 00437 00438 template<> 00439 struct DataType<gazebo_msgs::SpawnModel> { 00440 static const char* value() 00441 { 00442 return "gazebo_msgs/SpawnModel"; 00443 } 00444 00445 static const char* value(const gazebo_msgs::SpawnModel&) { return value(); } 00446 }; 00447 00448 template<class ContainerAllocator> 00449 struct MD5Sum<gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > { 00450 static const char* value() 00451 { 00452 return "9ed9c82c96abe1a00c3e8cdaeee24413"; 00453 } 00454 00455 static const char* value(const gazebo_msgs::SpawnModelRequest_<ContainerAllocator> &) { return value(); } 00456 }; 00457 00458 template<class ContainerAllocator> 00459 struct DataType<gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > { 00460 static const char* value() 00461 { 00462 return "gazebo_msgs/SpawnModel"; 00463 } 00464 00465 static const char* value(const gazebo_msgs::SpawnModelRequest_<ContainerAllocator> &) { return value(); } 00466 }; 00467 00468 template<class ContainerAllocator> 00469 struct MD5Sum<gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > { 00470 static const char* value() 00471 { 00472 return "9ed9c82c96abe1a00c3e8cdaeee24413"; 00473 } 00474 00475 static const char* value(const gazebo_msgs::SpawnModelResponse_<ContainerAllocator> &) { return value(); } 00476 }; 00477 00478 template<class ContainerAllocator> 00479 struct DataType<gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > { 00480 static const char* value() 00481 { 00482 return "gazebo_msgs/SpawnModel"; 00483 } 00484 00485 static const char* value(const gazebo_msgs::SpawnModelResponse_<ContainerAllocator> &) { return value(); } 00486 }; 00487 00488 } // namespace service_traits 00489 } // namespace ros 00490 00491 #endif // GAZEBO_MSGS_SERVICE_SPAWNMODEL_H 00492