Skip to content

Commit

Permalink
generalized forces
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTedrake committed Aug 30, 2023
1 parent a37b43e commit 86c1d0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htmlbook
2 changes: 1 addition & 1 deletion underactuated/multibody.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ def ManipulatorDynamics(plant, q, v=None, context=None):
forces = MultibodyForces_(plant)
plant.CalcForceElementsContribution(context, forces)
# TODO(russt): add in contact forces to tauExt.
tauExt = forces.generalized_forces()
tauExt = plant.CalcGeneralizedForces(context, forces)

return (M, Cv, tauG, B, tauExt)

0 comments on commit 86c1d0e

Please sign in to comment.