z1_controller/include/FSM/State_MoveL.h

21 lines
470 B
C
Raw Normal View History

2022-07-20 11:11:38 +08:00
#ifndef MOVEL_H
#define MOVEL_H
#include "FSM/FSMState.h"
2022-11-11 19:49:41 +08:00
#include "trajectory/EndLineTraj.h"
2022-07-20 11:11:38 +08:00
class State_MoveL : public FSMState{
public:
State_MoveL(CtrlComponents *ctrlComp);
~State_MoveL();
void enter();
void run();
void exit();
int checkChange(int cmd);
private:
2022-11-11 19:49:41 +08:00
double _speed;
std::vector<Vec6> _postures;
EndLineTraj *_lineTraj;
2022-07-20 11:11:38 +08:00
bool _timeReached, _taskReached, _pastTaskReached, _finalReached;
};
#endif // CARTESIAN_H