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