google-deepmind / mujoco

Multi-Joint dynamics with Contact. A general purpose physics simulator.
https://mujoco.org
Apache License 2.0
7.47k stars 734 forks source link

Disabling contact rendering for Touch Sensor Grid plugin #1705

Closed eneserciyes closed 3 weeks ago

eneserciyes commented 3 weeks ago

Hi,

I'm using the touch sensor grid plugin for tactile simulation.

This plugin renders the force on touch points like this:

Screenshot from 2024-05-30 20-32-40

Is there a way I can disable this rendering?

yuvaltassa commented 3 weeks ago

Currently there is no way to disable it, but there probably should be...

However, I'd rather not add yet another vis flag just for plugins. In the meantime, assuming you are building from source, just add above this line something like

if (opt.flags[mjVIS_FLAGOFYOURCHOICE]) return;