$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/GetJointProperties.srv */ 00002 #ifndef GAZEBO_SERVICE_GETJOINTPROPERTIES_H 00003 #define GAZEBO_SERVICE_GETJOINTPROPERTIES_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 GetJointPropertiesRequest_ { 00026 typedef GetJointPropertiesRequest_<ContainerAllocator> Type; 00027 00028 GetJointPropertiesRequest_() 00029 : joint_name() 00030 { 00031 } 00032 00033 GetJointPropertiesRequest_(const ContainerAllocator& _alloc) 00034 : joint_name(_alloc) 00035 { 00036 } 00037 00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _joint_name_type; 00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > joint_name; 00040 00041 00042 private: 00043 static const char* __s_getDataType_() { return "gazebo/GetJointPropertiesRequest"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "0be1351618e1dc030eb7959d9a4902de"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getServerMD5Sum_() { return "7b30be900f50aa21efec4a0ec92d91c9"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "\n\ 00065 \n\ 00066 string joint_name\n\ 00067 \n\ 00068 "; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00071 00072 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00073 00074 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00075 { 00076 ros::serialization::OStream stream(write_ptr, 1000000000); 00077 ros::serialization::serialize(stream, joint_name); 00078 return stream.getData(); 00079 } 00080 00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00082 { 00083 ros::serialization::IStream stream(read_ptr, 1000000000); 00084 ros::serialization::deserialize(stream, joint_name); 00085 return stream.getData(); 00086 } 00087 00088 ROS_DEPRECATED virtual uint32_t serializationLength() const 00089 { 00090 uint32_t size = 0; 00091 size += ros::serialization::serializationLength(joint_name); 00092 return size; 00093 } 00094 00095 typedef boost::shared_ptr< ::gazebo::GetJointPropertiesRequest_<ContainerAllocator> > Ptr; 00096 typedef boost::shared_ptr< ::gazebo::GetJointPropertiesRequest_<ContainerAllocator> const> ConstPtr; 00097 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00098 }; // struct GetJointPropertiesRequest 00099 typedef ::gazebo::GetJointPropertiesRequest_<std::allocator<void> > GetJointPropertiesRequest; 00100 00101 typedef boost::shared_ptr< ::gazebo::GetJointPropertiesRequest> GetJointPropertiesRequestPtr; 00102 typedef boost::shared_ptr< ::gazebo::GetJointPropertiesRequest const> GetJointPropertiesRequestConstPtr; 00103 00104 00105 template <class ContainerAllocator> 00106 struct GetJointPropertiesResponse_ { 00107 typedef GetJointPropertiesResponse_<ContainerAllocator> Type; 00108 00109 GetJointPropertiesResponse_() 00110 : type(0) 00111 , damping() 00112 , position() 00113 , rate() 00114 , success(false) 00115 , status_message() 00116 { 00117 } 00118 00119 GetJointPropertiesResponse_(const ContainerAllocator& _alloc) 00120 : type(0) 00121 , damping(_alloc) 00122 , position(_alloc) 00123 , rate(_alloc) 00124 , success(false) 00125 , status_message(_alloc) 00126 { 00127 } 00128 00129 typedef uint8_t _type_type; 00130 uint8_t type; 00131 00132 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _damping_type; 00133 std::vector<double, typename ContainerAllocator::template rebind<double>::other > damping; 00134 00135 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _position_type; 00136 std::vector<double, typename ContainerAllocator::template rebind<double>::other > position; 00137 00138 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _rate_type; 00139 std::vector<double, typename ContainerAllocator::template rebind<double>::other > rate; 00140 00141 typedef uint8_t _success_type; 00142 uint8_t success; 00143 00144 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_message_type; 00145 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_message; 00146 00147 enum { REVOLUTE = 0 }; 00148 enum { CONTINUOUS = 1 }; 00149 enum { PRISMATIC = 2 }; 00150 enum { FIXED = 3 }; 00151 enum { BALL = 4 }; 00152 enum { UNIVERSAL = 5 }; 00153 00154 ROS_DEPRECATED uint32_t get_damping_size() const { return (uint32_t)damping.size(); } 00155 ROS_DEPRECATED void set_damping_size(uint32_t size) { damping.resize((size_t)size); } 00156 ROS_DEPRECATED void get_damping_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->damping; } 00157 ROS_DEPRECATED void set_damping_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->damping = vec; } 00158 ROS_DEPRECATED uint32_t get_position_size() const { return (uint32_t)position.size(); } 00159 ROS_DEPRECATED void set_position_size(uint32_t size) { position.resize((size_t)size); } 00160 ROS_DEPRECATED void get_position_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->position; } 00161 ROS_DEPRECATED void set_position_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->position = vec; } 00162 ROS_DEPRECATED uint32_t get_rate_size() const { return (uint32_t)rate.size(); } 00163 ROS_DEPRECATED void set_rate_size(uint32_t size) { rate.resize((size_t)size); } 00164 ROS_DEPRECATED void get_rate_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->rate; } 00165 ROS_DEPRECATED void set_rate_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->rate = vec; } 00166 private: 00167 static const char* __s_getDataType_() { return "gazebo/GetJointPropertiesResponse"; } 00168 public: 00169 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00170 00171 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00172 00173 private: 00174 static const char* __s_getMD5Sum_() { return "cd7b30a39faa372283dc94c5f6457f82"; } 00175 public: 00176 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00177 00178 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00179 00180 private: 00181 static const char* __s_getServerMD5Sum_() { return "7b30be900f50aa21efec4a0ec92d91c9"; } 00182 public: 00183 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00184 00185 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00186 00187 private: 00188 static const char* __s_getMessageDefinition_() { return "\n\ 00189 uint8 type\n\ 00190 uint8 REVOLUTE = 0\n\ 00191 uint8 CONTINUOUS = 1\n\ 00192 uint8 PRISMATIC = 2\n\ 00193 uint8 FIXED = 3\n\ 00194 uint8 BALL = 4\n\ 00195 uint8 UNIVERSAL = 5\n\ 00196 \n\ 00197 float64[] damping\n\ 00198 \n\ 00199 float64[] position\n\ 00200 float64[] rate\n\ 00201 \n\ 00202 bool success\n\ 00203 string status_message\n\ 00204 \n\ 00205 \n\ 00206 "; } 00207 public: 00208 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00209 00210 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00211 00212 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00213 { 00214 ros::serialization::OStream stream(write_ptr, 1000000000); 00215 ros::serialization::serialize(stream, type); 00216 ros::serialization::serialize(stream, damping); 00217 ros::serialization::serialize(stream, position); 00218 ros::serialization::serialize(stream, rate); 00219 ros::serialization::serialize(stream, success); 00220 ros::serialization::serialize(stream, status_message); 00221 return stream.getData(); 00222 } 00223 00224 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00225 { 00226 ros::serialization::IStream stream(read_ptr, 1000000000); 00227 ros::serialization::deserialize(stream, type); 00228 ros::serialization::deserialize(stream, damping); 00229 ros::serialization::deserialize(stream, position); 00230 ros::serialization::deserialize(stream, rate); 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(type); 00240 size += ros::serialization::serializationLength(damping); 00241 size += ros::serialization::serializationLength(position); 00242 size += ros::serialization::serializationLength(rate); 00243 size += ros::serialization::serializationLength(success); 00244 size += ros::serialization::serializationLength(status_message); 00245 return size; 00246 } 00247 00248 typedef boost::shared_ptr< ::gazebo::GetJointPropertiesResponse_<ContainerAllocator> > Ptr; 00249 typedef boost::shared_ptr< ::gazebo::GetJointPropertiesResponse_<ContainerAllocator> const> ConstPtr; 00250 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00251 }; // struct GetJointPropertiesResponse 00252 typedef ::gazebo::GetJointPropertiesResponse_<std::allocator<void> > GetJointPropertiesResponse; 00253 00254 typedef boost::shared_ptr< ::gazebo::GetJointPropertiesResponse> GetJointPropertiesResponsePtr; 00255 typedef boost::shared_ptr< ::gazebo::GetJointPropertiesResponse const> GetJointPropertiesResponseConstPtr; 00256 00257 struct GetJointProperties 00258 { 00259 00260 typedef GetJointPropertiesRequest Request; 00261 typedef GetJointPropertiesResponse Response; 00262 Request request; 00263 Response response; 00264 00265 typedef Request RequestType; 00266 typedef Response ResponseType; 00267 }; // struct GetJointProperties 00268 } // namespace gazebo 00269 00270 namespace ros 00271 { 00272 namespace message_traits 00273 { 00274 template<class ContainerAllocator> struct IsMessage< ::gazebo::GetJointPropertiesRequest_<ContainerAllocator> > : public TrueType {}; 00275 template<class ContainerAllocator> struct IsMessage< ::gazebo::GetJointPropertiesRequest_<ContainerAllocator> const> : public TrueType {}; 00276 template<class ContainerAllocator> 00277 struct MD5Sum< ::gazebo::GetJointPropertiesRequest_<ContainerAllocator> > { 00278 static const char* value() 00279 { 00280 return "0be1351618e1dc030eb7959d9a4902de"; 00281 } 00282 00283 static const char* value(const ::gazebo::GetJointPropertiesRequest_<ContainerAllocator> &) { return value(); } 00284 static const uint64_t static_value1 = 0x0be1351618e1dc03ULL; 00285 static const uint64_t static_value2 = 0x0eb7959d9a4902deULL; 00286 }; 00287 00288 template<class ContainerAllocator> 00289 struct DataType< ::gazebo::GetJointPropertiesRequest_<ContainerAllocator> > { 00290 static const char* value() 00291 { 00292 return "gazebo/GetJointPropertiesRequest"; 00293 } 00294 00295 static const char* value(const ::gazebo::GetJointPropertiesRequest_<ContainerAllocator> &) { return value(); } 00296 }; 00297 00298 template<class ContainerAllocator> 00299 struct Definition< ::gazebo::GetJointPropertiesRequest_<ContainerAllocator> > { 00300 static const char* value() 00301 { 00302 return "\n\ 00303 \n\ 00304 string joint_name\n\ 00305 \n\ 00306 "; 00307 } 00308 00309 static const char* value(const ::gazebo::GetJointPropertiesRequest_<ContainerAllocator> &) { return value(); } 00310 }; 00311 00312 } // namespace message_traits 00313 } // namespace ros 00314 00315 00316 namespace ros 00317 { 00318 namespace message_traits 00319 { 00320 template<class ContainerAllocator> struct IsMessage< ::gazebo::GetJointPropertiesResponse_<ContainerAllocator> > : public TrueType {}; 00321 template<class ContainerAllocator> struct IsMessage< ::gazebo::GetJointPropertiesResponse_<ContainerAllocator> const> : public TrueType {}; 00322 template<class ContainerAllocator> 00323 struct MD5Sum< ::gazebo::GetJointPropertiesResponse_<ContainerAllocator> > { 00324 static const char* value() 00325 { 00326 return "cd7b30a39faa372283dc94c5f6457f82"; 00327 } 00328 00329 static const char* value(const ::gazebo::GetJointPropertiesResponse_<ContainerAllocator> &) { return value(); } 00330 static const uint64_t static_value1 = 0xcd7b30a39faa3722ULL; 00331 static const uint64_t static_value2 = 0x83dc94c5f6457f82ULL; 00332 }; 00333 00334 template<class ContainerAllocator> 00335 struct DataType< ::gazebo::GetJointPropertiesResponse_<ContainerAllocator> > { 00336 static const char* value() 00337 { 00338 return "gazebo/GetJointPropertiesResponse"; 00339 } 00340 00341 static const char* value(const ::gazebo::GetJointPropertiesResponse_<ContainerAllocator> &) { return value(); } 00342 }; 00343 00344 template<class ContainerAllocator> 00345 struct Definition< ::gazebo::GetJointPropertiesResponse_<ContainerAllocator> > { 00346 static const char* value() 00347 { 00348 return "\n\ 00349 uint8 type\n\ 00350 uint8 REVOLUTE = 0\n\ 00351 uint8 CONTINUOUS = 1\n\ 00352 uint8 PRISMATIC = 2\n\ 00353 uint8 FIXED = 3\n\ 00354 uint8 BALL = 4\n\ 00355 uint8 UNIVERSAL = 5\n\ 00356 \n\ 00357 float64[] damping\n\ 00358 \n\ 00359 float64[] position\n\ 00360 float64[] rate\n\ 00361 \n\ 00362 bool success\n\ 00363 string status_message\n\ 00364 \n\ 00365 \n\ 00366 "; 00367 } 00368 00369 static const char* value(const ::gazebo::GetJointPropertiesResponse_<ContainerAllocator> &) { return value(); } 00370 }; 00371 00372 } // namespace message_traits 00373 } // namespace ros 00374 00375 namespace ros 00376 { 00377 namespace serialization 00378 { 00379 00380 template<class ContainerAllocator> struct Serializer< ::gazebo::GetJointPropertiesRequest_<ContainerAllocator> > 00381 { 00382 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00383 { 00384 stream.next(m.joint_name); 00385 } 00386 00387 ROS_DECLARE_ALLINONE_SERIALIZER; 00388 }; // struct GetJointPropertiesRequest_ 00389 } // namespace serialization 00390 } // namespace ros 00391 00392 00393 namespace ros 00394 { 00395 namespace serialization 00396 { 00397 00398 template<class ContainerAllocator> struct Serializer< ::gazebo::GetJointPropertiesResponse_<ContainerAllocator> > 00399 { 00400 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00401 { 00402 stream.next(m.type); 00403 stream.next(m.damping); 00404 stream.next(m.position); 00405 stream.next(m.rate); 00406 stream.next(m.success); 00407 stream.next(m.status_message); 00408 } 00409 00410 ROS_DECLARE_ALLINONE_SERIALIZER; 00411 }; // struct GetJointPropertiesResponse_ 00412 } // namespace serialization 00413 } // namespace ros 00414 00415 namespace ros 00416 { 00417 namespace service_traits 00418 { 00419 template<> 00420 struct MD5Sum<gazebo::GetJointProperties> { 00421 static const char* value() 00422 { 00423 return "7b30be900f50aa21efec4a0ec92d91c9"; 00424 } 00425 00426 static const char* value(const gazebo::GetJointProperties&) { return value(); } 00427 }; 00428 00429 template<> 00430 struct DataType<gazebo::GetJointProperties> { 00431 static const char* value() 00432 { 00433 return "gazebo/GetJointProperties"; 00434 } 00435 00436 static const char* value(const gazebo::GetJointProperties&) { return value(); } 00437 }; 00438 00439 template<class ContainerAllocator> 00440 struct MD5Sum<gazebo::GetJointPropertiesRequest_<ContainerAllocator> > { 00441 static const char* value() 00442 { 00443 return "7b30be900f50aa21efec4a0ec92d91c9"; 00444 } 00445 00446 static const char* value(const gazebo::GetJointPropertiesRequest_<ContainerAllocator> &) { return value(); } 00447 }; 00448 00449 template<class ContainerAllocator> 00450 struct DataType<gazebo::GetJointPropertiesRequest_<ContainerAllocator> > { 00451 static const char* value() 00452 { 00453 return "gazebo/GetJointProperties"; 00454 } 00455 00456 static const char* value(const gazebo::GetJointPropertiesRequest_<ContainerAllocator> &) { return value(); } 00457 }; 00458 00459 template<class ContainerAllocator> 00460 struct MD5Sum<gazebo::GetJointPropertiesResponse_<ContainerAllocator> > { 00461 static const char* value() 00462 { 00463 return "7b30be900f50aa21efec4a0ec92d91c9"; 00464 } 00465 00466 static const char* value(const gazebo::GetJointPropertiesResponse_<ContainerAllocator> &) { return value(); } 00467 }; 00468 00469 template<class ContainerAllocator> 00470 struct DataType<gazebo::GetJointPropertiesResponse_<ContainerAllocator> > { 00471 static const char* value() 00472 { 00473 return "gazebo/GetJointProperties"; 00474 } 00475 00476 static const char* value(const gazebo::GetJointPropertiesResponse_<ContainerAllocator> &) { return value(); } 00477 }; 00478 00479 } // namespace service_traits 00480 } // namespace ros 00481 00482 #endif // GAZEBO_SERVICE_GETJOINTPROPERTIES_H 00483