b466829482
The derivatives of actuator velocity with respect to generalized velocities were incorrectly computed when the actuator force was limited by `forcerange`. This CL adds a check to zero out these derivatives when the actuator force is at its upper or lower limit, as the force is no longer a function of velocity in this clamped state. PiperOrigin-RevId: 868818281 Change-Id: I89742a3f04989dd11f9cfada107200015b1472a7