跳转到内容

控制相关接口

导纳控制律在 c++\include\control\admittance_control.h 头文件中。它根据当前末端执行器的位姿、期望位姿、外力、刚度和阻尼参数,计算下一个时刻的关节角度。

  • 方法原型:

    AbcErrorCode addmittance_control_law(
    alphabot::ArmKinematics& arm,
    const AbcPose& pose,
    AbcType p_stiffness,
    AbcType r_stiffness,
    const std::array<AbcType, 6>& force,
    AbcType t,
    const std::vector<AbcType>& q,
    std::vector<AbcType>& next_q)
  • 参数说明:

    参数名称
    类型
    说明
    arm输入参数ArmKinematics 类型对象的引用
    pose输入参数末端位置和姿态
    p_stiffness输入参数平移刚度
    r_stiffness输入参数旋转刚度
    force输入参数末端施加的空间六维力顺序:
    [Mx, My, Mz, Fx, Fy, Fz]
    t输入参数积分时间(小于等于一次控制循环所用时间)
    q输入参数当前关节角度
    next_q输出参数下一个时刻的关节角度
  • 返回值:

    AbcErrorCode::SUCCESS 表示成功;其他错误码,请参见 AbcErrorCode