upkie 9.0.0
Open-source wheeled biped robots
Loading...
Searching...
No Matches

◆ compute_joint_torque()

double compute_joint_torque ( const std::string &  joint_name,
const double  feedforward_torque,
const double  target_position,
const double  target_velocity,
const double  kp_scale,
const double  kd_scale,
const double  maximum_torque 
)

Reproduce the moteus position controller in Bullet.

Parameters
[in]joint_nameName of the joint.
[in]feedforward_torqueFeedforward torque command in N⋅m.
[in]target_positionTarget angular position in rad.
[in]target_velocityTarget angular velocity in rad/s.
[in]kp_scaleMultiplicative factor applied to the proportional gain in torque control.
[in]kd_scaleMultiplicative factor applied to the derivative gain in torque control.
[in]maximum_torqueMaximum torque in N⋅m from the command.