ami-iit / jaxsim

A differentiable physics engine and multibody dynamics library for control and robot learning.
https://jaxsim.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
61 stars 9 forks source link

Visualize 3D contact forces in the Mujoco passive viewer #113

Open diegoferigo opened 4 months ago

diegoferigo commented 4 months ago

PR #83 introduced initial support of visualizing the kinematics of simulated models with the passive Mujoco viewer. It would be pretty interesting to exploit the same viewer to also visualize the 3D contact forces applied to all collidable points.

diegoferigo commented 2 months ago

For those that might be interested in adding support for contact forces visualization, I'd start exploring the programmatic addition of arrows using the user_scn attribute of the viewer together with: