gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
709 stars 269 forks source link

Mouse interaction with simulated models #306

Closed diegoferigo closed 1 year ago

diegoferigo commented 4 years ago

Other widely used simulators like mujoco and pybullet allow to interact in a dynamic sense (as opposed as pure kinematics) with models part of the simulation. This is something that also Gazebo Classic never had. The most that could be done was selecting links and applying wrenches (I though there was a closethegap ticket for this but maybe I was wrong).

You can see a nice mujoco demo here: https://www.youtube.com/watch?v=0ORsj_E17B0

chapulina commented 2 years ago

The most that could be done was selecting links and applying wrenches (I though there was a closethegap ticket for this but maybe I was wrong).

That's Gazebo classic's Apply Force and Torque tool, it's true that we're missing a close-the-gap issue for it

https://classic.gazebosim.org/tutorials?tut=apply_force_torque&cat=tools_utilities

The dialog approach allows more precision, while the mouse dragging interaction is more intuitive. I think both are great tools to add.

scpeters commented 1 year ago

for reference, bullet's example use a ball joint (aka point-to-point constraint) between the mouse cursor and a point on the body where the user clicked: