Gazebo | Ignition | Community
Ask Your Question

Setting latitude/longitude position when using GPS plugin

asked 2021-11-23 03:33:05 -0500

morten_nissov gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-11-26 03:29:18 -0500

Veerachart gravatar image

Try adding the tags <latitude_deg>, <longitude_deg>, and <elevation> in the <spherical_coordinates>. This will be the coordinate of your origin point.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2021-11-23 03:33:05 -0500

Seen: 789 times

Last updated: Nov 26 '21