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

Check camera sensors have non-zero width or height #480

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Nov 8, 2024

🦟 Bug fix

Summary

Check to verify that camera sensors have non-zero width / height before creating the rendering cameras. The check prevents gz-sim from crashing and will output a more meaningful msg.

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.

Signed-off-by: Ian Chen <[email protected]>
@github-actions github-actions bot added 🏛️ ionic Gazebo Ionic 🪵 jetty Gazebo Jetty labels Nov 8, 2024
@ahcorde ahcorde merged commit aaef365 into gz-sensors9 Nov 11, 2024
11 checks passed
@ahcorde ahcorde deleted the camera_invalid_size branch November 11, 2024 09:09
@ahcorde
Copy link
Contributor

ahcorde commented Nov 11, 2024

https://github.com/Mergifyio backport ign-sensors6 gz-sensors7 gz-sensors8

Copy link

mergify bot commented Nov 11, 2024

backport ign-sensors6 gz-sensors7 gz-sensors8

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Nov 11, 2024
Signed-off-by: Ian Chen <[email protected]>
(cherry picked from commit aaef365)

# Conflicts:
#	src/RgbdCameraSensor.cc
#	src/WideAngleCameraSensor.cc
mergify bot pushed a commit that referenced this pull request Nov 11, 2024
Signed-off-by: Ian Chen <[email protected]>
(cherry picked from commit aaef365)

# Conflicts:
#	src/RgbdCameraSensor.cc
mergify bot pushed a commit that referenced this pull request Nov 11, 2024
Signed-off-by: Ian Chen <[email protected]>
(cherry picked from commit aaef365)
ahcorde pushed a commit that referenced this pull request Nov 11, 2024
Signed-off-by: Ian Chen <[email protected]>
(cherry picked from commit aaef365)

Co-authored-by: Ian Chen <[email protected]>
ahcorde added a commit that referenced this pull request Nov 11, 2024
)

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
ahcorde added a commit that referenced this pull request Nov 11, 2024
)

* Check camera resolution (#480)

Signed-off-by: Ian Chen <[email protected]>
(cherry picked from commit aaef365)

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏛️ ionic Gazebo Ionic 🪵 jetty Gazebo Jetty
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants