March 2018
Intermediate to advanced
1396 pages
42h 14m
English
If everything is OK, we will see a topic named /fix in the topic list by typing this:
$ rostopic list
To know which kind of data we will use, we typed the rostopic command. The NMEA GPS driver uses the sensor_msgs/NavSatFix message to send the GPS status information:
$ rostopic type /fix
sensor_msgs/NavSatFix
The /fix topic is sensor_msg/NavSatFix. The fields are used to indicate the latitude, longitude, altitude, status, quality of the service, and the covariance matrix. In our example, we will use the latitude and the longitude to project them to a 2D Cartesian coordinate system namedUniversal Transverse Mercator (UTM).
Check a message to see a real example of the data sent. You can do it with the following command: ...