$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_calibration/doc_stacks/2013-03-01_16-35-11.769043/pr2_calibration/pr2_calibration_estimation/srv/FkTest.srv */ 00002 #ifndef PR2_CALIBRATION_ESTIMATION_SERVICE_FKTEST_H 00003 #define PR2_CALIBRATION_ESTIMATION_SERVICE_FKTEST_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 pr2_calibration_estimation 00023 { 00024 template <class ContainerAllocator> 00025 struct FkTestRequest_ { 00026 typedef FkTestRequest_<ContainerAllocator> Type; 00027 00028 FkTestRequest_() 00029 : root() 00030 , tip() 00031 , joint_positions() 00032 { 00033 } 00034 00035 FkTestRequest_(const ContainerAllocator& _alloc) 00036 : root(_alloc) 00037 , tip(_alloc) 00038 , joint_positions(_alloc) 00039 { 00040 } 00041 00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _root_type; 00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > root; 00044 00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _tip_type; 00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > tip; 00047 00048 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _joint_positions_type; 00049 std::vector<double, typename ContainerAllocator::template rebind<double>::other > joint_positions; 00050 00051 00052 ROS_DEPRECATED uint32_t get_joint_positions_size() const { return (uint32_t)joint_positions.size(); } 00053 ROS_DEPRECATED void set_joint_positions_size(uint32_t size) { joint_positions.resize((size_t)size); } 00054 ROS_DEPRECATED void get_joint_positions_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->joint_positions; } 00055 ROS_DEPRECATED void set_joint_positions_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->joint_positions = vec; } 00056 private: 00057 static const char* __s_getDataType_() { return "pr2_calibration_estimation/FkTestRequest"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00060 00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00062 00063 private: 00064 static const char* __s_getMD5Sum_() { return "708e14f98ff72822d3442bcaef9c218d"; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00067 00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00069 00070 private: 00071 static const char* __s_getServerMD5Sum_() { return "d0aebb48bb1f10495921a75dfb81a75a"; } 00072 public: 00073 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00074 00075 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00076 00077 private: 00078 static const char* __s_getMessageDefinition_() { return "string root\n\ 00079 string tip\n\ 00080 float64[] joint_positions\n\ 00081 \n\ 00082 "; } 00083 public: 00084 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00085 00086 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00087 00088 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00089 { 00090 ros::serialization::OStream stream(write_ptr, 1000000000); 00091 ros::serialization::serialize(stream, root); 00092 ros::serialization::serialize(stream, tip); 00093 ros::serialization::serialize(stream, joint_positions); 00094 return stream.getData(); 00095 } 00096 00097 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00098 { 00099 ros::serialization::IStream stream(read_ptr, 1000000000); 00100 ros::serialization::deserialize(stream, root); 00101 ros::serialization::deserialize(stream, tip); 00102 ros::serialization::deserialize(stream, joint_positions); 00103 return stream.getData(); 00104 } 00105 00106 ROS_DEPRECATED virtual uint32_t serializationLength() const 00107 { 00108 uint32_t size = 0; 00109 size += ros::serialization::serializationLength(root); 00110 size += ros::serialization::serializationLength(tip); 00111 size += ros::serialization::serializationLength(joint_positions); 00112 return size; 00113 } 00114 00115 typedef boost::shared_ptr< ::pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> > Ptr; 00116 typedef boost::shared_ptr< ::pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> const> ConstPtr; 00117 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00118 }; // struct FkTestRequest 00119 typedef ::pr2_calibration_estimation::FkTestRequest_<std::allocator<void> > FkTestRequest; 00120 00121 typedef boost::shared_ptr< ::pr2_calibration_estimation::FkTestRequest> FkTestRequestPtr; 00122 typedef boost::shared_ptr< ::pr2_calibration_estimation::FkTestRequest const> FkTestRequestConstPtr; 00123 00124 00125 template <class ContainerAllocator> 00126 struct FkTestResponse_ { 00127 typedef FkTestResponse_<ContainerAllocator> Type; 00128 00129 FkTestResponse_() 00130 : pos() 00131 , rot() 00132 { 00133 } 00134 00135 FkTestResponse_(const ContainerAllocator& _alloc) 00136 : pos(_alloc) 00137 , rot(_alloc) 00138 { 00139 } 00140 00141 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _pos_type; 00142 std::vector<double, typename ContainerAllocator::template rebind<double>::other > pos; 00143 00144 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _rot_type; 00145 std::vector<double, typename ContainerAllocator::template rebind<double>::other > rot; 00146 00147 00148 ROS_DEPRECATED uint32_t get_pos_size() const { return (uint32_t)pos.size(); } 00149 ROS_DEPRECATED void set_pos_size(uint32_t size) { pos.resize((size_t)size); } 00150 ROS_DEPRECATED void get_pos_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->pos; } 00151 ROS_DEPRECATED void set_pos_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->pos = vec; } 00152 ROS_DEPRECATED uint32_t get_rot_size() const { return (uint32_t)rot.size(); } 00153 ROS_DEPRECATED void set_rot_size(uint32_t size) { rot.resize((size_t)size); } 00154 ROS_DEPRECATED void get_rot_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->rot; } 00155 ROS_DEPRECATED void set_rot_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->rot = vec; } 00156 private: 00157 static const char* __s_getDataType_() { return "pr2_calibration_estimation/FkTestResponse"; } 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 "e2248c2f30c5f3e010ed2e9434015c6e"; } 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 "d0aebb48bb1f10495921a75dfb81a75a"; } 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 "float64[] pos\n\ 00179 float64[] rot\n\ 00180 \n\ 00181 \n\ 00182 "; } 00183 public: 00184 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00185 00186 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00187 00188 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00189 { 00190 ros::serialization::OStream stream(write_ptr, 1000000000); 00191 ros::serialization::serialize(stream, pos); 00192 ros::serialization::serialize(stream, rot); 00193 return stream.getData(); 00194 } 00195 00196 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00197 { 00198 ros::serialization::IStream stream(read_ptr, 1000000000); 00199 ros::serialization::deserialize(stream, pos); 00200 ros::serialization::deserialize(stream, rot); 00201 return stream.getData(); 00202 } 00203 00204 ROS_DEPRECATED virtual uint32_t serializationLength() const 00205 { 00206 uint32_t size = 0; 00207 size += ros::serialization::serializationLength(pos); 00208 size += ros::serialization::serializationLength(rot); 00209 return size; 00210 } 00211 00212 typedef boost::shared_ptr< ::pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> > Ptr; 00213 typedef boost::shared_ptr< ::pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> const> ConstPtr; 00214 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00215 }; // struct FkTestResponse 00216 typedef ::pr2_calibration_estimation::FkTestResponse_<std::allocator<void> > FkTestResponse; 00217 00218 typedef boost::shared_ptr< ::pr2_calibration_estimation::FkTestResponse> FkTestResponsePtr; 00219 typedef boost::shared_ptr< ::pr2_calibration_estimation::FkTestResponse const> FkTestResponseConstPtr; 00220 00221 struct FkTest 00222 { 00223 00224 typedef FkTestRequest Request; 00225 typedef FkTestResponse Response; 00226 Request request; 00227 Response response; 00228 00229 typedef Request RequestType; 00230 typedef Response ResponseType; 00231 }; // struct FkTest 00232 } // namespace pr2_calibration_estimation 00233 00234 namespace ros 00235 { 00236 namespace message_traits 00237 { 00238 template<class ContainerAllocator> struct IsMessage< ::pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> > : public TrueType {}; 00239 template<class ContainerAllocator> struct IsMessage< ::pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> const> : public TrueType {}; 00240 template<class ContainerAllocator> 00241 struct MD5Sum< ::pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> > { 00242 static const char* value() 00243 { 00244 return "708e14f98ff72822d3442bcaef9c218d"; 00245 } 00246 00247 static const char* value(const ::pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> &) { return value(); } 00248 static const uint64_t static_value1 = 0x708e14f98ff72822ULL; 00249 static const uint64_t static_value2 = 0xd3442bcaef9c218dULL; 00250 }; 00251 00252 template<class ContainerAllocator> 00253 struct DataType< ::pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> > { 00254 static const char* value() 00255 { 00256 return "pr2_calibration_estimation/FkTestRequest"; 00257 } 00258 00259 static const char* value(const ::pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> &) { return value(); } 00260 }; 00261 00262 template<class ContainerAllocator> 00263 struct Definition< ::pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> > { 00264 static const char* value() 00265 { 00266 return "string root\n\ 00267 string tip\n\ 00268 float64[] joint_positions\n\ 00269 \n\ 00270 "; 00271 } 00272 00273 static const char* value(const ::pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> &) { return value(); } 00274 }; 00275 00276 } // namespace message_traits 00277 } // namespace ros 00278 00279 00280 namespace ros 00281 { 00282 namespace message_traits 00283 { 00284 template<class ContainerAllocator> struct IsMessage< ::pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> > : public TrueType {}; 00285 template<class ContainerAllocator> struct IsMessage< ::pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> const> : public TrueType {}; 00286 template<class ContainerAllocator> 00287 struct MD5Sum< ::pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> > { 00288 static const char* value() 00289 { 00290 return "e2248c2f30c5f3e010ed2e9434015c6e"; 00291 } 00292 00293 static const char* value(const ::pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> &) { return value(); } 00294 static const uint64_t static_value1 = 0xe2248c2f30c5f3e0ULL; 00295 static const uint64_t static_value2 = 0x10ed2e9434015c6eULL; 00296 }; 00297 00298 template<class ContainerAllocator> 00299 struct DataType< ::pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> > { 00300 static const char* value() 00301 { 00302 return "pr2_calibration_estimation/FkTestResponse"; 00303 } 00304 00305 static const char* value(const ::pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> &) { return value(); } 00306 }; 00307 00308 template<class ContainerAllocator> 00309 struct Definition< ::pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> > { 00310 static const char* value() 00311 { 00312 return "float64[] pos\n\ 00313 float64[] rot\n\ 00314 \n\ 00315 \n\ 00316 "; 00317 } 00318 00319 static const char* value(const ::pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> &) { return value(); } 00320 }; 00321 00322 } // namespace message_traits 00323 } // namespace ros 00324 00325 namespace ros 00326 { 00327 namespace serialization 00328 { 00329 00330 template<class ContainerAllocator> struct Serializer< ::pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> > 00331 { 00332 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00333 { 00334 stream.next(m.root); 00335 stream.next(m.tip); 00336 stream.next(m.joint_positions); 00337 } 00338 00339 ROS_DECLARE_ALLINONE_SERIALIZER; 00340 }; // struct FkTestRequest_ 00341 } // namespace serialization 00342 } // namespace ros 00343 00344 00345 namespace ros 00346 { 00347 namespace serialization 00348 { 00349 00350 template<class ContainerAllocator> struct Serializer< ::pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> > 00351 { 00352 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00353 { 00354 stream.next(m.pos); 00355 stream.next(m.rot); 00356 } 00357 00358 ROS_DECLARE_ALLINONE_SERIALIZER; 00359 }; // struct FkTestResponse_ 00360 } // namespace serialization 00361 } // namespace ros 00362 00363 namespace ros 00364 { 00365 namespace service_traits 00366 { 00367 template<> 00368 struct MD5Sum<pr2_calibration_estimation::FkTest> { 00369 static const char* value() 00370 { 00371 return "d0aebb48bb1f10495921a75dfb81a75a"; 00372 } 00373 00374 static const char* value(const pr2_calibration_estimation::FkTest&) { return value(); } 00375 }; 00376 00377 template<> 00378 struct DataType<pr2_calibration_estimation::FkTest> { 00379 static const char* value() 00380 { 00381 return "pr2_calibration_estimation/FkTest"; 00382 } 00383 00384 static const char* value(const pr2_calibration_estimation::FkTest&) { return value(); } 00385 }; 00386 00387 template<class ContainerAllocator> 00388 struct MD5Sum<pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> > { 00389 static const char* value() 00390 { 00391 return "d0aebb48bb1f10495921a75dfb81a75a"; 00392 } 00393 00394 static const char* value(const pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> &) { return value(); } 00395 }; 00396 00397 template<class ContainerAllocator> 00398 struct DataType<pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> > { 00399 static const char* value() 00400 { 00401 return "pr2_calibration_estimation/FkTest"; 00402 } 00403 00404 static const char* value(const pr2_calibration_estimation::FkTestRequest_<ContainerAllocator> &) { return value(); } 00405 }; 00406 00407 template<class ContainerAllocator> 00408 struct MD5Sum<pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> > { 00409 static const char* value() 00410 { 00411 return "d0aebb48bb1f10495921a75dfb81a75a"; 00412 } 00413 00414 static const char* value(const pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> &) { return value(); } 00415 }; 00416 00417 template<class ContainerAllocator> 00418 struct DataType<pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> > { 00419 static const char* value() 00420 { 00421 return "pr2_calibration_estimation/FkTest"; 00422 } 00423 00424 static const char* value(const pr2_calibration_estimation::FkTestResponse_<ContainerAllocator> &) { return value(); } 00425 }; 00426 00427 } // namespace service_traits 00428 } // namespace ros 00429 00430 #endif // PR2_CALIBRATION_ESTIMATION_SERVICE_FKTEST_H 00431