$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/srv/SetModelConfiguration.srv */ 00002 #ifndef GAZEBO_SERVICE_SETMODELCONFIGURATION_H 00003 #define GAZEBO_SERVICE_SETMODELCONFIGURATION_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 00020 00021 00022 namespace gazebo 00023 { 00024 template <class ContainerAllocator> 00025 struct SetModelConfigurationRequest_ { 00026 typedef SetModelConfigurationRequest_<ContainerAllocator> Type; 00027 00028 SetModelConfigurationRequest_() 00029 : model_name() 00030 , test_urdf_param_name() 00031 , joint_names() 00032 , joint_positions() 00033 { 00034 } 00035 00036 SetModelConfigurationRequest_(const ContainerAllocator& _alloc) 00037 : model_name(_alloc) 00038 , test_urdf_param_name(_alloc) 00039 , joint_names(_alloc) 00040 , joint_positions(_alloc) 00041 { 00042 } 00043 00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _model_name_type; 00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > model_name; 00046 00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _test_urdf_param_name_type; 00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > test_urdf_param_name; 00049 00050 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _joint_names_type; 00051 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > joint_names; 00052 00053 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _joint_positions_type; 00054 std::vector<double, typename ContainerAllocator::template rebind<double>::other > joint_positions; 00055 00056 00057 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); } 00058 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); } 00059 ROS_DEPRECATED void get_joint_names_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->joint_names; } 00060 ROS_DEPRECATED void set_joint_names_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->joint_names = vec; } 00061 ROS_DEPRECATED uint32_t get_joint_positions_size() const { return (uint32_t)joint_positions.size(); } 00062 ROS_DEPRECATED void set_joint_positions_size(uint32_t size) { joint_positions.resize((size_t)size); } 00063 ROS_DEPRECATED void get_joint_positions_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->joint_positions; } 00064 ROS_DEPRECATED void set_joint_positions_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->joint_positions = vec; } 00065 private: 00066 static const char* __s_getDataType_() { return "gazebo/SetModelConfigurationRequest"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00069 00070 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00071 00072 private: 00073 static const char* __s_getMD5Sum_() { return "b97a1bf770916d4179ca5a389ae67a0a"; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00076 00077 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00078 00079 private: 00080 static const char* __s_getServerMD5Sum_() { return "ee74ca93d351bcde76cfa81a5aed211a"; } 00081 public: 00082 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00083 00084 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00085 00086 private: 00087 static const char* __s_getMessageDefinition_() { return "\n\ 00088 \n\ 00089 \n\ 00090 string model_name\n\ 00091 string test_urdf_param_name\n\ 00092 \n\ 00093 string[] joint_names\n\ 00094 float64[] joint_positions\n\ 00095 \n\ 00096 "; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00099 00100 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00101 00102 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00103 { 00104 ros::serialization::OStream stream(write_ptr, 1000000000); 00105 ros::serialization::serialize(stream, model_name); 00106 ros::serialization::serialize(stream, test_urdf_param_name); 00107 ros::serialization::serialize(stream, joint_names); 00108 ros::serialization::serialize(stream, joint_positions); 00109 return stream.getData(); 00110 } 00111 00112 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00113 { 00114 ros::serialization::IStream stream(read_ptr, 1000000000); 00115 ros::serialization::deserialize(stream, model_name); 00116 ros::serialization::deserialize(stream, test_urdf_param_name); 00117 ros::serialization::deserialize(stream, joint_names); 00118 ros::serialization::deserialize(stream, joint_positions); 00119 return stream.getData(); 00120 } 00121 00122 ROS_DEPRECATED virtual uint32_t serializationLength() const 00123 { 00124 uint32_t size = 0; 00125 size += ros::serialization::serializationLength(model_name); 00126 size += ros::serialization::serializationLength(test_urdf_param_name); 00127 size += ros::serialization::serializationLength(joint_names); 00128 size += ros::serialization::serializationLength(joint_positions); 00129 return size; 00130 } 00131 00132 typedef boost::shared_ptr< ::gazebo::SetModelConfigurationRequest_<ContainerAllocator> > Ptr; 00133 typedef boost::shared_ptr< ::gazebo::SetModelConfigurationRequest_<ContainerAllocator> const> ConstPtr; 00134 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00135 }; // struct SetModelConfigurationRequest 00136 typedef ::gazebo::SetModelConfigurationRequest_<std::allocator<void> > SetModelConfigurationRequest; 00137 00138 typedef boost::shared_ptr< ::gazebo::SetModelConfigurationRequest> SetModelConfigurationRequestPtr; 00139 typedef boost::shared_ptr< ::gazebo::SetModelConfigurationRequest const> SetModelConfigurationRequestConstPtr; 00140 00141 00142 template <class ContainerAllocator> 00143 struct SetModelConfigurationResponse_ { 00144 typedef SetModelConfigurationResponse_<ContainerAllocator> Type; 00145 00146 SetModelConfigurationResponse_() 00147 : success(false) 00148 , status_message() 00149 { 00150 } 00151 00152 SetModelConfigurationResponse_(const ContainerAllocator& _alloc) 00153 : success(false) 00154 , status_message(_alloc) 00155 { 00156 } 00157 00158 typedef uint8_t _success_type; 00159 uint8_t success; 00160 00161 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_message_type; 00162 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_message; 00163 00164 00165 private: 00166 static const char* __s_getDataType_() { return "gazebo/SetModelConfigurationResponse"; } 00167 public: 00168 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00169 00170 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00171 00172 private: 00173 static const char* __s_getMD5Sum_() { return "2ec6f3eff0161f4257b808b12bc830c2"; } 00174 public: 00175 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00176 00177 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00178 00179 private: 00180 static const char* __s_getServerMD5Sum_() { return "ee74ca93d351bcde76cfa81a5aed211a"; } 00181 public: 00182 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00183 00184 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00185 00186 private: 00187 static const char* __s_getMessageDefinition_() { return "bool success\n\ 00188 string status_message\n\ 00189 \n\ 00190 \n\ 00191 "; } 00192 public: 00193 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00194 00195 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00196 00197 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00198 { 00199 ros::serialization::OStream stream(write_ptr, 1000000000); 00200 ros::serialization::serialize(stream, success); 00201 ros::serialization::serialize(stream, status_message); 00202 return stream.getData(); 00203 } 00204 00205 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00206 { 00207 ros::serialization::IStream stream(read_ptr, 1000000000); 00208 ros::serialization::deserialize(stream, success); 00209 ros::serialization::deserialize(stream, status_message); 00210 return stream.getData(); 00211 } 00212 00213 ROS_DEPRECATED virtual uint32_t serializationLength() const 00214 { 00215 uint32_t size = 0; 00216 size += ros::serialization::serializationLength(success); 00217 size += ros::serialization::serializationLength(status_message); 00218 return size; 00219 } 00220 00221 typedef boost::shared_ptr< ::gazebo::SetModelConfigurationResponse_<ContainerAllocator> > Ptr; 00222 typedef boost::shared_ptr< ::gazebo::SetModelConfigurationResponse_<ContainerAllocator> const> ConstPtr; 00223 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00224 }; // struct SetModelConfigurationResponse 00225 typedef ::gazebo::SetModelConfigurationResponse_<std::allocator<void> > SetModelConfigurationResponse; 00226 00227 typedef boost::shared_ptr< ::gazebo::SetModelConfigurationResponse> SetModelConfigurationResponsePtr; 00228 typedef boost::shared_ptr< ::gazebo::SetModelConfigurationResponse const> SetModelConfigurationResponseConstPtr; 00229 00230 struct SetModelConfiguration 00231 { 00232 00233 typedef SetModelConfigurationRequest Request; 00234 typedef SetModelConfigurationResponse Response; 00235 Request request; 00236 Response response; 00237 00238 typedef Request RequestType; 00239 typedef Response ResponseType; 00240 }; // struct SetModelConfiguration 00241 } // namespace gazebo 00242 00243 namespace ros 00244 { 00245 namespace message_traits 00246 { 00247 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetModelConfigurationRequest_<ContainerAllocator> > : public TrueType {}; 00248 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetModelConfigurationRequest_<ContainerAllocator> const> : public TrueType {}; 00249 template<class ContainerAllocator> 00250 struct MD5Sum< ::gazebo::SetModelConfigurationRequest_<ContainerAllocator> > { 00251 static const char* value() 00252 { 00253 return "b97a1bf770916d4179ca5a389ae67a0a"; 00254 } 00255 00256 static const char* value(const ::gazebo::SetModelConfigurationRequest_<ContainerAllocator> &) { return value(); } 00257 static const uint64_t static_value1 = 0xb97a1bf770916d41ULL; 00258 static const uint64_t static_value2 = 0x79ca5a389ae67a0aULL; 00259 }; 00260 00261 template<class ContainerAllocator> 00262 struct DataType< ::gazebo::SetModelConfigurationRequest_<ContainerAllocator> > { 00263 static const char* value() 00264 { 00265 return "gazebo/SetModelConfigurationRequest"; 00266 } 00267 00268 static const char* value(const ::gazebo::SetModelConfigurationRequest_<ContainerAllocator> &) { return value(); } 00269 }; 00270 00271 template<class ContainerAllocator> 00272 struct Definition< ::gazebo::SetModelConfigurationRequest_<ContainerAllocator> > { 00273 static const char* value() 00274 { 00275 return "\n\ 00276 \n\ 00277 \n\ 00278 string model_name\n\ 00279 string test_urdf_param_name\n\ 00280 \n\ 00281 string[] joint_names\n\ 00282 float64[] joint_positions\n\ 00283 \n\ 00284 "; 00285 } 00286 00287 static const char* value(const ::gazebo::SetModelConfigurationRequest_<ContainerAllocator> &) { return value(); } 00288 }; 00289 00290 } // namespace message_traits 00291 } // namespace ros 00292 00293 00294 namespace ros 00295 { 00296 namespace message_traits 00297 { 00298 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetModelConfigurationResponse_<ContainerAllocator> > : public TrueType {}; 00299 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetModelConfigurationResponse_<ContainerAllocator> const> : public TrueType {}; 00300 template<class ContainerAllocator> 00301 struct MD5Sum< ::gazebo::SetModelConfigurationResponse_<ContainerAllocator> > { 00302 static const char* value() 00303 { 00304 return "2ec6f3eff0161f4257b808b12bc830c2"; 00305 } 00306 00307 static const char* value(const ::gazebo::SetModelConfigurationResponse_<ContainerAllocator> &) { return value(); } 00308 static const uint64_t static_value1 = 0x2ec6f3eff0161f42ULL; 00309 static const uint64_t static_value2 = 0x57b808b12bc830c2ULL; 00310 }; 00311 00312 template<class ContainerAllocator> 00313 struct DataType< ::gazebo::SetModelConfigurationResponse_<ContainerAllocator> > { 00314 static const char* value() 00315 { 00316 return "gazebo/SetModelConfigurationResponse"; 00317 } 00318 00319 static const char* value(const ::gazebo::SetModelConfigurationResponse_<ContainerAllocator> &) { return value(); } 00320 }; 00321 00322 template<class ContainerAllocator> 00323 struct Definition< ::gazebo::SetModelConfigurationResponse_<ContainerAllocator> > { 00324 static const char* value() 00325 { 00326 return "bool success\n\ 00327 string status_message\n\ 00328 \n\ 00329 \n\ 00330 "; 00331 } 00332 00333 static const char* value(const ::gazebo::SetModelConfigurationResponse_<ContainerAllocator> &) { return value(); } 00334 }; 00335 00336 } // namespace message_traits 00337 } // namespace ros 00338 00339 namespace ros 00340 { 00341 namespace serialization 00342 { 00343 00344 template<class ContainerAllocator> struct Serializer< ::gazebo::SetModelConfigurationRequest_<ContainerAllocator> > 00345 { 00346 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00347 { 00348 stream.next(m.model_name); 00349 stream.next(m.test_urdf_param_name); 00350 stream.next(m.joint_names); 00351 stream.next(m.joint_positions); 00352 } 00353 00354 ROS_DECLARE_ALLINONE_SERIALIZER; 00355 }; // struct SetModelConfigurationRequest_ 00356 } // namespace serialization 00357 } // namespace ros 00358 00359 00360 namespace ros 00361 { 00362 namespace serialization 00363 { 00364 00365 template<class ContainerAllocator> struct Serializer< ::gazebo::SetModelConfigurationResponse_<ContainerAllocator> > 00366 { 00367 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00368 { 00369 stream.next(m.success); 00370 stream.next(m.status_message); 00371 } 00372 00373 ROS_DECLARE_ALLINONE_SERIALIZER; 00374 }; // struct SetModelConfigurationResponse_ 00375 } // namespace serialization 00376 } // namespace ros 00377 00378 namespace ros 00379 { 00380 namespace service_traits 00381 { 00382 template<> 00383 struct MD5Sum<gazebo::SetModelConfiguration> { 00384 static const char* value() 00385 { 00386 return "ee74ca93d351bcde76cfa81a5aed211a"; 00387 } 00388 00389 static const char* value(const gazebo::SetModelConfiguration&) { return value(); } 00390 }; 00391 00392 template<> 00393 struct DataType<gazebo::SetModelConfiguration> { 00394 static const char* value() 00395 { 00396 return "gazebo/SetModelConfiguration"; 00397 } 00398 00399 static const char* value(const gazebo::SetModelConfiguration&) { return value(); } 00400 }; 00401 00402 template<class ContainerAllocator> 00403 struct MD5Sum<gazebo::SetModelConfigurationRequest_<ContainerAllocator> > { 00404 static const char* value() 00405 { 00406 return "ee74ca93d351bcde76cfa81a5aed211a"; 00407 } 00408 00409 static const char* value(const gazebo::SetModelConfigurationRequest_<ContainerAllocator> &) { return value(); } 00410 }; 00411 00412 template<class ContainerAllocator> 00413 struct DataType<gazebo::SetModelConfigurationRequest_<ContainerAllocator> > { 00414 static const char* value() 00415 { 00416 return "gazebo/SetModelConfiguration"; 00417 } 00418 00419 static const char* value(const gazebo::SetModelConfigurationRequest_<ContainerAllocator> &) { return value(); } 00420 }; 00421 00422 template<class ContainerAllocator> 00423 struct MD5Sum<gazebo::SetModelConfigurationResponse_<ContainerAllocator> > { 00424 static const char* value() 00425 { 00426 return "ee74ca93d351bcde76cfa81a5aed211a"; 00427 } 00428 00429 static const char* value(const gazebo::SetModelConfigurationResponse_<ContainerAllocator> &) { return value(); } 00430 }; 00431 00432 template<class ContainerAllocator> 00433 struct DataType<gazebo::SetModelConfigurationResponse_<ContainerAllocator> > { 00434 static const char* value() 00435 { 00436 return "gazebo/SetModelConfiguration"; 00437 } 00438 00439 static const char* value(const gazebo::SetModelConfigurationResponse_<ContainerAllocator> &) { return value(); } 00440 }; 00441 00442 } // namespace service_traits 00443 } // namespace ros 00444 00445 #endif // GAZEBO_SERVICE_SETMODELCONFIGURATION_H 00446