March 2018
Intermediate to advanced
1396 pages
42h 14m
English
In this section, we will see how to simulate a GPS sensor in Gazebo. As you know, GPS is one of the essential sensors in a self-driving car. You can start a GPS simulation using the following command:
$ roslaunch sensor_sim_gazebo gps.launch
Now, you can list out the topic and find the GPS topics published from the Gazebo plugin. Here is a list of topics from the GPS plugin:

You can echo the /gps/fix topic to confirm that the plugin is publishing the values correctly.
You can use the following command to echo this topic:
$ rostopic echo /gps/fix