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