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