Skip to Content
ROS Programming: Building Powerful Robots
book

ROS Programming: Building Powerful Robots

by Anil Mahtani, Luis Sanchez, Enrique Fernandez, Aaron Martinez, Lentin Joseph
March 2018
Intermediate to advanced content levelIntermediate to advanced
1396 pages
42h 14m
English
Packt Publishing
Content preview from ROS Programming: Building Powerful Robots

How GPS sends messages

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: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Robots with ROS

Programming Robots with ROS

Morgan Quigley, Brian Gerkey, William D. Smart
Machine Learning Design Patterns

Machine Learning Design Patterns

Valliappa Lakshmanan, Sara Robinson, Michael Munn

Publisher Resources

ISBN: 9781788627436Supplemental Content