1
0

CartForceScan.h 920 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #ifndef __CartForceScan_H__
  3. #define __CartForceScan_H__
  4. #include "AdmittanceBasic.h"
  5. class CartForceScan : public AdmittanceBasic
  6. {
  7. public:
  8. void Init();
  9. void LoadData(WayPoint curWayPt, FTData curForce, WayPoint refWayPt);
  10. void GetActualTarget(WayPoint& wayPoint);
  11. void RefreshAdmittancePara();
  12. private:
  13. void CartScanFunction(WayPoint& wayPoint);
  14. CartesianPos _curCart;
  15. CartesianForce _curForce;
  16. CartesianPos _refCart;
  17. typedef Eigen::DiagonalMatrix<double, 6> Diag6d;
  18. // ŔúʡĘýžÝ
  19. Sophus::Vector6d deltaFkminus1;
  20. Sophus::Vector6d deltaFkminus2;
  21. Sophus::Vector6d Vkminus1;
  22. Sophus::Vector6d Vkminus2;
  23. Eigen::Matrix4d tool2Basekminus1 = Eigen::Matrix4d::Identity();
  24. bool first;
  25. // ×čżšżŘÖƲÎĘý
  26. Diag6d M;
  27. Diag6d B;
  28. Diag6d K;
  29. Sophus::Matrix6d Md;
  30. Sophus::Matrix6d Bd;
  31. Sophus::Matrix6d Kd;
  32. };
  33. #endif
  34. #pragma once