Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix misc point cloud ogre helper bounds issues #1644

Open
wants to merge 4 commits into
base: noetic-devel
Choose a base branch
from

Commits on Jul 1, 2021

  1. ogre helpers point_cloud: fix bounding radius bug

    The PointCloudRenderable returns an incorrect bounding radius when
    the furthest corner of the box is not the minimum or maximum corner.
    
    Use Ogre::Math::boundingRadiusFromAABB to return the correct value.
    C. Andy Martin committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    21476d7 View commit details
    Browse the repository at this point in the history
  2. ogre helpers point_cloud: fix bug in getSquaredViewDepth

    getSquaredViewDepth was not applying scene node transforms to the
    camera position, resulting in incorrect values of squared depth.
    
    Instead, find the distance in world coordinates from the bounding
    box to the camera.
    C. Andy Martin committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    5455c25 View commit details
    Browse the repository at this point in the history
  3. ogre helpers point_cloud: calculate bounding radius

    Instead of calculating the bounding radius of the entire cloud as
    we go, calculate it once at the end when updating the bounding
    box by calling Ogre::Math::boundingRadiusFromAABB on the bounding box.
    C. Andy Martin committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    cfb3f81 View commit details
    Browse the repository at this point in the history
  4. ogre helpers point_cloud: add size into bounds

    Add the size of the point visual into the bounding box.
    For small or zero sized points this makes little difference,
    but for large points (such as visualizing an octomap with
    large compressed regions), it is important to add the bounds
    to keep the points visible at the very edges of the cloud.
    C. Andy Martin committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    c0315f3 View commit details
    Browse the repository at this point in the history