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 single ray gpu lidar #384

Merged
merged 3 commits into from
Sep 8, 2021
Merged

Fix single ray gpu lidar #384

merged 3 commits into from
Sep 8, 2021

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Aug 23, 2021

Signed-off-by: Ian Chen ichen@osrfoundation.org

🦟 Bug fix

Fixes osrf/subt#1001

Summary

Single ray gpu lidar are often created by setting <min_angle> == <max_angle> in sdf. Here's is an example taken from one of the robots from subt:

                <lidar>
                    <scan>
                        <horizontal>
                            <samples>1</samples>
                            <resolution>1</resolution>
                            <min_angle>3.141592654</min_angle>
                            <max_angle>3.141592654</max_angle>
                        </horizontal>
                    </scan>
                    <range>
                        <min>0.05</min>
                        <max>40</max>
                        <resolution>0.01</resolution>
                    </range>
                </lidar>

This generates a a lidar with 0 horizontal FOV. It sort of works but the range values produced has high precision error. The fix is to set a min allowed angle in the 1st pass when sampling depth data.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Ian Chen <ichen@osrfoundation.org>
@osrf-triage osrf-triage added this to Inbox in Core development Aug 23, 2021
@github-actions github-actions bot added the 🔮 dome Ignition Dome label Aug 23, 2021
@codecov
Copy link

codecov bot commented Aug 23, 2021

Codecov Report

Merging #384 (3b46775) into ign-rendering4 (622a7ba) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 3b46775 differs from pull request most recent head bd16bee. Consider uploading reports for the commit bd16bee to get more accurate results
Impacted file tree graph

@@                Coverage Diff                 @@
##           ign-rendering4     #384      +/-   ##
==================================================
+ Coverage           55.88%   55.90%   +0.01%     
==================================================
  Files                 147      147              
  Lines               13976    13981       +5     
==================================================
+ Hits                 7811     7816       +5     
  Misses               6165     6165              
Impacted Files Coverage Δ
ogre2/src/Ogre2GpuRays.cc 94.99% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 622a7ba...bd16bee. Read the comment docs.

@chapulina chapulina moved this from Inbox to In review in Core development Aug 24, 2021
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Copy link
Contributor

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with Green CI

@iche033 iche033 merged commit 018d256 into ign-rendering4 Sep 8, 2021
@iche033 iche033 deleted the single_gpu_ray branch September 8, 2021 22:36
Core development automation moved this from In review to Done Sep 8, 2021
@j-rivero j-rivero removed this from Done in Core development May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔮 dome Ignition Dome
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants