Open zeroAska opened 4 years ago
is the feedforward term, legTorque always zero?
No. The legTorque contains the input joint torque for all the actuators of a given leg, so it cannot be zero.
If not, how is it computed?
The controller is responsible for generating the appropriate leg torques for a specified action. One simple example, you can checkout the FSM_Standup where the input torque is calculated based on desired foot position. Here, the desired foot positions is calculated based on the interpolation of pDes[2](Z-axis of foot). And based on the error between the current foot position and desired foot position the required footForce is calculated. Finally, a Jacobian transformation of footForce gives you the required joint torques of each actuator of a leg.
Does it have different values when the foot is in the air and the food is touching the ground?
As stated earlier, these are commands and it's values are determined by the controller. The foot being in air/ground doesn't directly affect it's value.
Hi, I'm looking forward to estimating the foot contacts of MiniCheetah. I'm thinking about if it is possible to use the feedback term of motor positions to detect a contact, as shown in
in LegController::updateCommand.
My question is that, is the feedforward term,
legTorque
always zero? If not, how is it computed? Does it have different values when the foot is in the air and the food is touching the ground? The code related tolegTorque
is