2022-07-20 11:11:38 +08:00
|
|
|
#ifndef ENDHOMOTRAJ_H
|
|
|
|
#define ENDHOMOTRAJ_H
|
|
|
|
|
2022-11-11 19:49:41 +08:00
|
|
|
#include "model/ArmModel.h"
|
2022-07-20 11:11:38 +08:00
|
|
|
#include "trajectory/Trajectory.h"
|
|
|
|
#include "trajectory/SCurve.h"
|
|
|
|
|
|
|
|
class EndHomoTraj : public Trajectory{
|
|
|
|
public:
|
|
|
|
EndHomoTraj(CtrlComponents *ctrlComp);
|
|
|
|
virtual ~EndHomoTraj();
|
|
|
|
bool getJointCmd(Vec6 &q, Vec6 &qd);
|
|
|
|
bool getJointCmd(Vec6 &q, Vec6 &qd, double &gripperQ, double &gripperQd);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual bool _getEndTraj(HomoMat &homo, Vec6 &twist) = 0;
|
|
|
|
|
|
|
|
HomoMat _cmdHomo;
|
|
|
|
Vec6 _cmdTwist;
|
|
|
|
|
2022-11-11 19:49:41 +08:00
|
|
|
SCurve _sCurve;
|
2022-07-20 11:11:38 +08:00
|
|
|
};
|
|
|
|
|
2022-09-13 19:53:15 +08:00
|
|
|
#endif // ENDHOMOTRAJ_H
|