Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

This tutorial explains how to add an interactive button to the simulation.

I don't think there are any tutorials, but there are examples you can get an idea from. The idea is basically to add a prismatic joint to your model to make the button pressable, ideally with a spring. Then have a plugin monitor the current state of the joint, and do something once the joint is past a threshold.

Here's an example:

old answer about GUI overlays

This tutorial explains how to add an interactive button to the simulation.