gz-gui icon indicating copy to clipboard operation
gz-gui copied to clipboard

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

Open NicolasMallent opened this issue 2 years ago • 1 comments

Environment

  • OS Version: Ubuntu 22.04
  • Binary build gz-garden 7

Description

  • Expected behavior: Measure a distance between two points placed by the user.

  • Actual behavior: When selecting a distance to measure, the points are placed in the line of sight of the user camera. Which mean that the point can be anywhere on this line. For example far behind where the user want to measure or right in front of the camera.

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

NicolasMallent avatar Jul 06 '23 09:07 NicolasMallent

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.

iche033 avatar Jul 17 '23 19:07 iche033