z1_controller/include/trajectory/EndLineTraj.h

24 lines
765 B
C
Raw Normal View History

2022-07-20 11:11:38 +08:00
#ifndef ENDLINETRAJ_H
#define ENDLINETRAJ_H
#include "trajectory/EndHomoTraj.h"
#include "trajectory/SCurve.h"
class EndLineTraj : public EndHomoTraj{
public:
EndLineTraj(CtrlComponents *ctrlComp);
~EndLineTraj(){}
2022-11-11 19:49:41 +08:00
bool setEndLineTraj(Vec6 startP, Vec6 endP, double speed);
bool setEndLineTraj(HomoMat startHomo, Vec3 deltaPos, Vec3 deltaOri, double speed);
bool setEndLineTraj(std::string stateName, Vec3 deltaPos, Vec3 deltaOri, double speed);
bool setEndLineTraj(std::string startName, std::string endName, double speed);
2022-07-20 11:11:38 +08:00
private:
bool _getEndTraj(HomoMat &homo, Vec6 &twist);
2022-11-11 19:49:41 +08:00
Vec3 _currentDistance, _currentAngle, _omgtheta;
Mat3 _startR, _endR, _delatR, _currentR;
Vec3 _startp, _endp, _deltap, _currentp;
2022-07-20 11:11:38 +08:00
};
2022-09-13 19:53:15 +08:00
#endif