Control APIs
Admittance Control Law
Section titled “Admittance Control Law”The admittance control law is defined in the c++\include\control\admittance_control.h header file. It computes the joint angles for the next time step based on the current end-effector pose, the desired pose, external forces, and the stiffness and damping parameters.
-
Method:
AbcErrorCode addmittance_control_law(std::unique_ptr<alphabot::ArmKinematics> arm,const AbcPose pose,const AbcType p_stiffness,const AbcType r_stiffness,const std::array<AbcType, 6> force,const AbcType t,const std::vector<AbcType> q,std::vector<AbcType> next_q) -
Parameters:
ParameterTypeDescription armInput A unique pointer to an ArmKinematicsinstance.poseInput Current end-effector pose. p_stiffnessInput Translational stiffness. r_stiffnessInput Rotational stiffness. forceInput Six-dimensional spatial force applied at the end-effector, ordered as [Mx, My, Mz, Fx, Fy, Fz].tInput Integration time, which must be less than or equal to the duration of one control loop. qInput Current joint angles. next_qOutput Joint angles at the next time step. -
Return Value:
AbcErrorCode::SUCCESSindicates success. For other error codes, please refer to AbcErrorCode.