Gazebo | Ignition | Community
Ask Your Question
0

Setting latitude/longitude position when using GPS plugin

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

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
0

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

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.

http://sdformat.org/spec?ver=1.7&elem...

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 1,309 times

Last updated: Nov 26 '21