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 lidar 1st pass texture resolution calculation for FOV < 90 degrees #1012

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Jun 28, 2024

🦟 Bug fix

Summary

There is a calculation error for 1st pass texture size when the lidar FOV is lower than 90 degrees. It ended up using a texture resolution larger than it needed (and almost always got clamped to max size of 1024). This PR fixes the calculation. Now with a single point lidar, it should get clamped to the min texture size of 128 instead of 1024.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • 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 and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Jun 28, 2024
Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

Just a small style nit

test/integration/gpu_rays.cc Outdated Show resolved Hide resolved
@iche033 iche033 merged commit 2aeff41 into gz-rendering8 Jun 28, 2024
8 of 9 checks passed
@iche033 iche033 deleted the lidar_fov_res branch June 28, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants