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