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
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00040
00041 #ifndef CartesianControl_hpp
00042 #define CartesianControl_hpp
00043
00044
00045 #include "ControlSystems/Control.h"
00046 #include "ForwardKinematics/FKAcceleration.h"
00047
00049 namespace OSCAR {
00050
00051 class CartesianControl : public Control
00052 {
00053 public:
00054 CartesianControl(unsigned int dof, unsigned int noOutputs,
00055 FKAcceleration* fowkin, IDStandAlone* dyn = NULL);
00056 virtual ~CartesianControl();
00057
00058 virtual bool SetJointStates(Vector *q, Vector *qd);
00059 virtual bool SetCartesianStates(Vector *position, Vector *velocity,
00060 Vector *des_pos, Vector *des_vel,
00061 Vector *des_acc);
00062
00063 ControlInformation info;
00064
00065 protected:
00066 unsigned int noOfOutputs;
00067 FKAcceleration *fowKin;
00068 bool cartesianStatesSet;
00069 bool jointStatesSet;
00070 Vector *pos, *vel;
00071 Vector *pos_d, *vel_d, *acc_d;
00072 Vector *q, *qd;
00073 };
00074
00075 }
00076 #endif //CartesianControl_hpp