gazebosim / gz-gui

Builds on top of Qt to provide widgets which are useful when developing robotics applications, such as a 3D view, plots, dashboard, etc, and can be used together in a convenient unified interface.
https://gazebosim.org
Apache License 2.0
74 stars 43 forks source link

Tape Measure - points placed in the Line of Sight of the User Camera #553

Open NicolasMallent opened 1 year ago

NicolasMallent commented 1 year ago

Environment

Description

Steps to reproduce

  1. sudo apt-get install gz-garden
  2. gz sim
  3. Select a world (NAO for example)
  4. Open Tape Measure in the plugins Menu (top right)
  5. Make a measurement
  6. Go around the measurement to see where the points are placed

Output

Here I try to measure 2 square in front of NAO Tape_Measure_1

But when I rotate my camera to see around my measurement, we can see that the point "in front of NAO" has an offset. Tape_Measure_2 Tape_Measure_3

iche033 commented 1 year ago

I think there may need to be a physical object for the mouse click (ray cast) to register a correct point otherwise it returns incorrect result as described.