Setting latitude/longitude position when using GPS plugin
I am trying to use the gps plugin in connection with some ros2 simulation, the demo world works fine but the object starts at latitude/longitude (0,0).
I haven't been able to find a way to set the initial position, is this possible? I'd like to use the gazebo plugin over something custom, but lacking this basic feature is a show-stopper.
Note: Using ubuntu 20, gazebo11, and ros foxy.
Asked by morten_nissov on 2021-11-23 04:33:05 UTC
Answers
Try adding the tags <latitude_deg>
, <longitude_deg>
, and <elevation>
in the <spherical_coordinates>
. This will be the coordinate of your origin point.
http://sdformat.org/spec?ver=1.7&elem=world#world_spherical_coordinates
Asked by Veerachart on 2021-11-26 04:29:18 UTC
Comments