Search code examples
drake

Visualizing Drake collision geometries in Meshcat


I'm using the Python bindings for the Drake robotics package. Is there any way to set up my Drake script so that I can have a checkbox in Meshcat to visualize my collision geometries?


Solution

  • Use pydrake.visualization.ApplyVisualizationConfig(config=..., builder=..., meshcat=...) to add Meshcat visualization to your Diagram. That will add several checkboxes, sliders, etc. to Meshcat to control what is visualized, including a checkbox for the proximity geometry.