Open Jaeyoung-Lim opened 3 years ago
@chapulina @ahcorde @tfoote Would any one know how to move forward regarding this issue?
Hello all. I know this issue is quite old, but the bug seems to be still happening. See for example this issue in PX4 forum. Pinging recent contributors @chapulina @scpeters @iche033, anything you can do would help me.
The best way to push this forward would be to open a PR with the expected behavior.
Problem Description When using DEM models that have the global origin in the meta data, it is not possible to override the world location using the
spherical_coordinates
tag in the sdf file(world).Even if the
spherical_coordinates
are modified, theworld->SphericalCoords()
returns the origin of the DEM file, not the origin defined with thespherical_coordinates
flag.It seems like gazebo overrides the spherical coordinate defined in the world file and uses the origin of the DEM if I understand correctly the following.
https://github.com/osrf/gazebo/blob/063d7386ed5499c2883de48e19ff5fb9dec01dff/gazebo/physics/HeightmapShape.cc#L109-L131
Expected behavior
world->SphericalCoords()
returns the origin of the DEM file if there are nospherical_coordinates
defined in the world fileworld->SphericalCoords()
returns the location defined inspherical_coordinates
if defined in world file@ahcorde FYI
Additional Context