z1_controller/include/FSM/State_ToState.h

24 lines
488 B
C
Raw Normal View History

2022-07-20 11:11:38 +08:00
#ifndef TOSTATE_H
#define TOSTATE_H
#include "FSM/FSMState.h"
#include "trajectory/JointSpaceTraj.h"
class State_ToState : public FSMState{
public:
State_ToState(CtrlComponents *ctrlComp);
~State_ToState();
void enter();
void run();
void exit();
int checkChange(int cmd);
private:
2022-09-13 19:53:15 +08:00
bool _setCorrectly;
2022-07-20 11:11:38 +08:00
double _costTime;
HomoMat _goalHomo;
JointSpaceTraj *_jointTraj;
bool _reach, _pastReach;
std::string _goalName;
};
#endif // TOSTATE_H