[ ] 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.
🦟 Bug fix
Fixes crash introduced by #3257
Summary
While reviewing #3257, I didn't notice one instance in
rendering/Heightmap.cc
in which aSphericalCoordinates
pointer will be passed in its defaultnullptr
state when the surface type isEARTH_WGS84
. It particularly causes a crash when loading a DEM ingzclient
or loading a DEM with a camera sensor ingzserver
. This adds a failing test with a CameraSensor and DEM in https://github.com/gazebosim/gazebo-classic/commit/9739cebbb4d56e427ff99edca2a97b7dc85f8670 and.a fix in https://github.com/gazebosim/gazebo-classic/commit/75f9e6cc73ccc4f999db8925939e3cf9c3237985.Checklist
codecheck
passed (See contributing)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.