KNIConverter.h
Go to the documentation of this file.
1 /*
2  * UOS-ROS packages - Robot Operating System code by the University of Osnabrück
3  * Copyright (C) 2010 University of Osnabrück
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  * KNIConverter.h
20  *
21  * Created on: 21.01.2011
22  * Author: Martin Günther <mguenthe@uos.de>
23  */
24 
25 #ifndef KNICONVERTER_H_
26 #define KNICONVERTER_H_
27 
28 #include <ros/ros.h>
29 #include <KNI/kmlFactories.h>
30 
32 
33 namespace katana
34 {
35 
37 {
38 public:
39  KNIConverter(std::string config_file_path);
40  virtual ~KNIConverter();
41 
42  double angle_rad2enc(int index, double angle);
43  double angle_enc2rad(int index, int encoders);
44 
45  double vel_rad2enc(int index, double vel);
46  double acc_rad2enc(int index, double acc);
47  double jerk_rad2enc(int index, double jerk);
48 
49  double vel_enc2rad(int index, short encoders);
50  double acc_enc2rad(int index, short encoders);
51  double jerk_enc2rad(int index, short encoders);
52 
53 private:
55 
56  double vel_acc_jerk_rad2enc(int index, double vel_acc_jerk);
57  double vel_acc_jerk_enc2rad(int index, short encoders);
58 
59  double deg2rad(const double deg);
60 
61 };
62 
63 }
64 
65 #endif /* KNICONVERTER_H_ */
double vel_enc2rad(int index, short encoders)
double acc_rad2enc(int index, double acc)
double vel_acc_jerk_rad2enc(int index, double vel_acc_jerk)
double vel_acc_jerk_enc2rad(int index, short encoders)
KNI::kmlFactory config_
Definition: KNIConverter.h:54
double deg2rad(const double deg)
double angle_rad2enc(int index, double angle)
double angle_enc2rad(int index, int encoders)
FloatVector * angle
double vel_rad2enc(int index, double vel)
KNIConverter(std::string config_file_path)
double jerk_enc2rad(int index, short encoders)
double acc_enc2rad(int index, short encoders)
std::vector< int > encoders
double jerk_rad2enc(int index, double jerk)


katana
Author(s): Martin Günther
autogenerated on Fri Jun 7 2019 22:06:58