2022-07-20 11:11:38 +08:00
|
|
|
#ifndef CARTESIAN_H
|
|
|
|
#define CARTESIAN_H
|
|
|
|
|
|
|
|
#include "FSM/FSMState.h"
|
|
|
|
|
|
|
|
class State_Cartesian : public FSMState{
|
|
|
|
public:
|
|
|
|
State_Cartesian(CtrlComponents *ctrlComp);
|
|
|
|
~State_Cartesian(){}
|
|
|
|
void enter();
|
|
|
|
void run();
|
|
|
|
void exit();
|
|
|
|
int checkChange(int cmd);
|
|
|
|
private:
|
2023-01-11 20:57:47 +08:00
|
|
|
double _oriSpeed = 0.3;// control by keyboard
|
|
|
|
double _posSpeed = 0.2;
|
2022-12-07 11:15:36 +08:00
|
|
|
double oriSpeedLimit = 0.5;// limits in SDK
|
|
|
|
double posSpeedLimit = 0.5;
|
2023-04-18 20:26:55 +08:00
|
|
|
VecX _changeDirectionsf;
|
2022-11-11 19:49:41 +08:00
|
|
|
|
2022-07-20 11:11:38 +08:00
|
|
|
Vec6 _twist;
|
2022-12-07 11:15:36 +08:00
|
|
|
HomoMat _endHomoGoal, _endHomoPast, _endHomoDelta;
|
2022-09-13 19:53:15 +08:00
|
|
|
Vec6 _endPostureGoal, _endPosturePast, _endPostureDelta;
|
2022-07-20 11:11:38 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CARTESIAN_H
|