parent
7e90b60520
commit
8fc3297d90
|
@ -24,6 +24,7 @@ protected:
|
||||||
void _armCtrl();
|
void _armCtrl();
|
||||||
void _recordData();
|
void _recordData();
|
||||||
Vec6 _postureToVec6(Posture posture);
|
Vec6 _postureToVec6(Posture posture);
|
||||||
|
void _tauFriction();
|
||||||
|
|
||||||
LowlevelCmd *_lowCmd;
|
LowlevelCmd *_lowCmd;
|
||||||
LowlevelState *_lowState;
|
LowlevelState *_lowState;
|
||||||
|
@ -34,16 +35,14 @@ protected:
|
||||||
double _gripperPos, _gripperW, _gripperTau;
|
double _gripperPos, _gripperW, _gripperTau;
|
||||||
|
|
||||||
CtrlComponents *_ctrlComp;
|
CtrlComponents *_ctrlComp;
|
||||||
Vec6 _g, _tauCmd;
|
Vec6 _g, _tauCmd, _tauFric;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void _tauFriction();
|
|
||||||
|
|
||||||
uint _collisionCnt;
|
uint _collisionCnt;
|
||||||
|
|
||||||
Vec6 _mLinearFriction;
|
Vec6 _mLinearFriction;
|
||||||
Vec6 _mCoulombFriction;
|
Vec6 _mCoulombFriction;
|
||||||
Vec6 _tauFric;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ public:
|
||||||
private:
|
private:
|
||||||
bool _reach, _pastReach;
|
bool _reach, _pastReach;
|
||||||
JointSpaceTraj *_jointTraj;
|
JointSpaceTraj *_jointTraj;
|
||||||
|
Vec6 _pos_startFlat;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // STATE_BACKTOSTART_H
|
#endif // STATE_BACKTOSTART_H
|
|
@ -12,8 +12,8 @@ public:
|
||||||
void exit();
|
void exit();
|
||||||
int checkChange(int cmd);
|
int checkChange(int cmd);
|
||||||
private:
|
private:
|
||||||
double _oriSpeed = 0.4;// control by keyboard
|
double _oriSpeed = 0.3;// control by keyboard
|
||||||
double _posSpeed = 0.3;
|
double _posSpeed = 0.2;
|
||||||
double oriSpeedLimit = 0.5;// limits in SDK
|
double oriSpeedLimit = 0.5;// limits in SDK
|
||||||
double posSpeedLimit = 0.5;
|
double posSpeedLimit = 0.5;
|
||||||
VecX _changeDirections;
|
VecX _changeDirections;
|
||||||
|
|
|
@ -23,7 +23,7 @@ public:
|
||||||
std::string armConfigPath;
|
std::string armConfigPath;
|
||||||
CmdPanel *cmdPanel;
|
CmdPanel *cmdPanel;
|
||||||
IOInterface *ioInter;
|
IOInterface *ioInter;
|
||||||
ArmModel *armModel;
|
Z1Model *armModel;
|
||||||
CSVTool *stateCSV;
|
CSVTool *stateCSV;
|
||||||
|
|
||||||
SendCmd sendCmd; // cmd that receive from SDK
|
SendCmd sendCmd; // cmd that receive from SDK
|
||||||
|
@ -43,8 +43,7 @@ public:
|
||||||
void geneObj();
|
void geneObj();
|
||||||
void writeData();
|
void writeData();
|
||||||
private:
|
private:
|
||||||
void inputProcess(int argc, char** argv);
|
void configProcess(int argc, char** argv);
|
||||||
void configProcess();
|
|
||||||
|
|
||||||
std::string ctrl_IP;
|
std::string ctrl_IP;
|
||||||
uint ctrl_port;
|
uint ctrl_port;
|
||||||
|
|
|
@ -55,6 +55,7 @@ private:
|
||||||
size_t _dof = 6;
|
size_t _dof = 6;
|
||||||
int temporatureLimit = 80.0;// centigrade
|
int temporatureLimit = 80.0;// centigrade
|
||||||
std::vector<int> _isMotorConnectedCnt;
|
std::vector<int> _isMotorConnectedCnt;
|
||||||
|
std::vector<bool> _isMotorLostConnection;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //LOWLEVELSTATE_HPP
|
#endif //LOWLEVELSTATE_HPP
|
||||||
|
|
|
@ -66,11 +66,11 @@ public:
|
||||||
bool checkInSingularity(Vec6 q);
|
bool checkInSingularity(Vec6 q);
|
||||||
bool inverseKinematics(HomoMat TDes, Vec6 qPast, Vec6& q_result, bool checkInWorkSpace = false);
|
bool inverseKinematics(HomoMat TDes, Vec6 qPast, Vec6& q_result, bool checkInWorkSpace = false);
|
||||||
void solveQP(Vec6 twist, Vec6 qPast, Vec6& qd_result, double dt);
|
void solveQP(Vec6 twist, Vec6 qPast, Vec6& qd_result, double dt);
|
||||||
|
double _theta2Bias;
|
||||||
private:
|
private:
|
||||||
void setParam_V3_6();
|
void setParam_V3_6();
|
||||||
void setParam_V3_7();//long
|
void setParam_V3_7();
|
||||||
void setParam_V3_8();
|
void setParam_V3_8();
|
||||||
double _theta2Bias;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -24,8 +24,8 @@ private:
|
||||||
void _generateA345(double pathTime);
|
void _generateA345(double pathTime);
|
||||||
|
|
||||||
SCurve _jointCurve;
|
SCurve _jointCurve;
|
||||||
double ddQMax;
|
const double ddQMax = 15.0;
|
||||||
double dddQMax;
|
const double dddQMax = 30.0;
|
||||||
|
|
||||||
double _a3, _a4, _a5, _s, _sDot;
|
double _a3, _a4, _a5, _s, _sDot;
|
||||||
};
|
};
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue