gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.19k stars 481 forks source link

Visual bounding box calculation ignore gui visuals #2009

Open osrf-migration opened 8 years ago

osrf-migration commented 8 years ago

Original report (archived issue) by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


Bounding box calculation currently ignores gui visuals like inertia, wrench, selection objects, etc. This also means that calling Visual::GetBoundingBox() on a gui visual will always return incorrect results (empty box).

Some ideas to improve the check:

  1. If visual already has the GZ_VISIBILITY_GUI flag then don't ignore child gui visuals

  2. Add optional argument to Visual::GetBoundingBox() to ignore certain visual types

osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).