SpawnModel.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-simulator_gazebo/doc_stacks/2014-01-05_11-32-34.493080/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   typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > Ptr;
00064   typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator>  const> ConstPtr;
00065   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00066 }; // struct SpawnModelRequest
00067 typedef  ::gazebo_msgs::SpawnModelRequest_<std::allocator<void> > SpawnModelRequest;
00068 
00069 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelRequest> SpawnModelRequestPtr;
00070 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelRequest const> SpawnModelRequestConstPtr;
00071 
00072 
00073 template <class ContainerAllocator>
00074 struct SpawnModelResponse_ {
00075   typedef SpawnModelResponse_<ContainerAllocator> Type;
00076 
00077   SpawnModelResponse_()
00078   : success(false)
00079   , status_message()
00080   {
00081   }
00082 
00083   SpawnModelResponse_(const ContainerAllocator& _alloc)
00084   : success(false)
00085   , status_message(_alloc)
00086   {
00087   }
00088 
00089   typedef uint8_t _success_type;
00090   uint8_t success;
00091 
00092   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _status_message_type;
00093   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  status_message;
00094 
00095 
00096   typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > Ptr;
00097   typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator>  const> ConstPtr;
00098   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00099 }; // struct SpawnModelResponse
00100 typedef  ::gazebo_msgs::SpawnModelResponse_<std::allocator<void> > SpawnModelResponse;
00101 
00102 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelResponse> SpawnModelResponsePtr;
00103 typedef boost::shared_ptr< ::gazebo_msgs::SpawnModelResponse const> SpawnModelResponseConstPtr;
00104 
00105 struct SpawnModel
00106 {
00107 
00108 typedef SpawnModelRequest Request;
00109 typedef SpawnModelResponse Response;
00110 Request request;
00111 Response response;
00112 
00113 typedef Request RequestType;
00114 typedef Response ResponseType;
00115 }; // struct SpawnModel
00116 } // namespace gazebo_msgs
00117 
00118 namespace ros
00119 {
00120 namespace message_traits
00121 {
00122 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > : public TrueType {};
00123 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator>  const> : public TrueType {};
00124 template<class ContainerAllocator>
00125 struct MD5Sum< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > {
00126   static const char* value() 
00127   {
00128     return "6d0eba5753761cd57e6263a056b79930";
00129   }
00130 
00131   static const char* value(const  ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> &) { return value(); } 
00132   static const uint64_t static_value1 = 0x6d0eba5753761cd5ULL;
00133   static const uint64_t static_value2 = 0x7e6263a056b79930ULL;
00134 };
00135 
00136 template<class ContainerAllocator>
00137 struct DataType< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > {
00138   static const char* value() 
00139   {
00140     return "gazebo_msgs/SpawnModelRequest";
00141   }
00142 
00143   static const char* value(const  ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> &) { return value(); } 
00144 };
00145 
00146 template<class ContainerAllocator>
00147 struct Definition< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > {
00148   static const char* value() 
00149   {
00150     return "string model_name\n\
00151 string model_xml\n\
00152 string robot_namespace\n\
00153 geometry_msgs/Pose initial_pose\n\
00154 string reference_frame\n\
00155 \n\
00156 \n\
00157 \n\
00158 \n\
00159 ================================================================================\n\
00160 MSG: geometry_msgs/Pose\n\
00161 # A representation of pose in free space, composed of postion and orientation. \n\
00162 Point position\n\
00163 Quaternion orientation\n\
00164 \n\
00165 ================================================================================\n\
00166 MSG: geometry_msgs/Point\n\
00167 # This contains the position of a point in free space\n\
00168 float64 x\n\
00169 float64 y\n\
00170 float64 z\n\
00171 \n\
00172 ================================================================================\n\
00173 MSG: geometry_msgs/Quaternion\n\
00174 # This represents an orientation in free space in quaternion form.\n\
00175 \n\
00176 float64 x\n\
00177 float64 y\n\
00178 float64 z\n\
00179 float64 w\n\
00180 \n\
00181 ";
00182   }
00183 
00184   static const char* value(const  ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> &) { return value(); } 
00185 };
00186 
00187 } // namespace message_traits
00188 } // namespace ros
00189 
00190 
00191 namespace ros
00192 {
00193 namespace message_traits
00194 {
00195 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > : public TrueType {};
00196 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator>  const> : public TrueType {};
00197 template<class ContainerAllocator>
00198 struct MD5Sum< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > {
00199   static const char* value() 
00200   {
00201     return "2ec6f3eff0161f4257b808b12bc830c2";
00202   }
00203 
00204   static const char* value(const  ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> &) { return value(); } 
00205   static const uint64_t static_value1 = 0x2ec6f3eff0161f42ULL;
00206   static const uint64_t static_value2 = 0x57b808b12bc830c2ULL;
00207 };
00208 
00209 template<class ContainerAllocator>
00210 struct DataType< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > {
00211   static const char* value() 
00212   {
00213     return "gazebo_msgs/SpawnModelResponse";
00214   }
00215 
00216   static const char* value(const  ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> &) { return value(); } 
00217 };
00218 
00219 template<class ContainerAllocator>
00220 struct Definition< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > {
00221   static const char* value() 
00222   {
00223     return "bool success\n\
00224 string status_message\n\
00225 \n\
00226 \n\
00227 ";
00228   }
00229 
00230   static const char* value(const  ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> &) { return value(); } 
00231 };
00232 
00233 } // namespace message_traits
00234 } // namespace ros
00235 
00236 namespace ros
00237 {
00238 namespace serialization
00239 {
00240 
00241 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::SpawnModelRequest_<ContainerAllocator> >
00242 {
00243   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00244   {
00245     stream.next(m.model_name);
00246     stream.next(m.model_xml);
00247     stream.next(m.robot_namespace);
00248     stream.next(m.initial_pose);
00249     stream.next(m.reference_frame);
00250   }
00251 
00252   ROS_DECLARE_ALLINONE_SERIALIZER;
00253 }; // struct SpawnModelRequest_
00254 } // namespace serialization
00255 } // namespace ros
00256 
00257 
00258 namespace ros
00259 {
00260 namespace serialization
00261 {
00262 
00263 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::SpawnModelResponse_<ContainerAllocator> >
00264 {
00265   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00266   {
00267     stream.next(m.success);
00268     stream.next(m.status_message);
00269   }
00270 
00271   ROS_DECLARE_ALLINONE_SERIALIZER;
00272 }; // struct SpawnModelResponse_
00273 } // namespace serialization
00274 } // namespace ros
00275 
00276 namespace ros
00277 {
00278 namespace service_traits
00279 {
00280 template<>
00281 struct MD5Sum<gazebo_msgs::SpawnModel> {
00282   static const char* value() 
00283   {
00284     return "9ed9c82c96abe1a00c3e8cdaeee24413";
00285   }
00286 
00287   static const char* value(const gazebo_msgs::SpawnModel&) { return value(); } 
00288 };
00289 
00290 template<>
00291 struct DataType<gazebo_msgs::SpawnModel> {
00292   static const char* value() 
00293   {
00294     return "gazebo_msgs/SpawnModel";
00295   }
00296 
00297   static const char* value(const gazebo_msgs::SpawnModel&) { return value(); } 
00298 };
00299 
00300 template<class ContainerAllocator>
00301 struct MD5Sum<gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > {
00302   static const char* value() 
00303   {
00304     return "9ed9c82c96abe1a00c3e8cdaeee24413";
00305   }
00306 
00307   static const char* value(const gazebo_msgs::SpawnModelRequest_<ContainerAllocator> &) { return value(); } 
00308 };
00309 
00310 template<class ContainerAllocator>
00311 struct DataType<gazebo_msgs::SpawnModelRequest_<ContainerAllocator> > {
00312   static const char* value() 
00313   {
00314     return "gazebo_msgs/SpawnModel";
00315   }
00316 
00317   static const char* value(const gazebo_msgs::SpawnModelRequest_<ContainerAllocator> &) { return value(); } 
00318 };
00319 
00320 template<class ContainerAllocator>
00321 struct MD5Sum<gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > {
00322   static const char* value() 
00323   {
00324     return "9ed9c82c96abe1a00c3e8cdaeee24413";
00325   }
00326 
00327   static const char* value(const gazebo_msgs::SpawnModelResponse_<ContainerAllocator> &) { return value(); } 
00328 };
00329 
00330 template<class ContainerAllocator>
00331 struct DataType<gazebo_msgs::SpawnModelResponse_<ContainerAllocator> > {
00332   static const char* value() 
00333   {
00334     return "gazebo_msgs/SpawnModel";
00335   }
00336 
00337   static const char* value(const gazebo_msgs::SpawnModelResponse_<ContainerAllocator> &) { return value(); } 
00338 };
00339 
00340 } // namespace service_traits
00341 } // namespace ros
00342 
00343 #endif // GAZEBO_MSGS_SERVICE_SPAWNMODEL_H
00344 


gazebo_msgs
Author(s): John Hsu
autogenerated on Sun Jan 5 2014 11:34:32