Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KNICONVERTER_H_
00026 #define KNICONVERTER_H_
00027
00028 #include <ros/ros.h>
00029 #include <KNI/kmlFactories.h>
00030
00031 #include <katana/katana_constants.h>
00032
00033 namespace katana
00034 {
00035
00036 class KNIConverter
00037 {
00038 public:
00039 KNIConverter(std::string config_file_path);
00040 virtual ~KNIConverter();
00041
00042 double angle_rad2enc(int index, double angle);
00043 double angle_enc2rad(int index, int encoders);
00044
00045 double vel_rad2enc(int index, double vel);
00046 double acc_rad2enc(int index, double acc);
00047 double jerk_rad2enc(int index, double jerk);
00048
00049 double vel_enc2rad(int index, short encoders);
00050 double acc_enc2rad(int index, short encoders);
00051 double jerk_enc2rad(int index, short encoders);
00052
00053 private:
00054 KNI::kmlFactory config_;
00055
00056 double vel_acc_jerk_rad2enc(int index, double vel_acc_jerk);
00057 double vel_acc_jerk_enc2rad(int index, short encoders);
00058
00059 double deg2rad(const double deg);
00060
00061 };
00062
00063 }
00064
00065 #endif