Skip to Content
Robot Operating System Cookbook
book

Robot Operating System Cookbook

by Kumar Bipin
June 2018
Intermediate to advanced
484 pages
11h 36m
English
Packt Publishing
Content preview from Robot Operating System Cookbook

How to do it…

  1.  Install the NMEA GPS driver package by using the following command:
$ sudo apt-get install ros-kinetic-nmea-gps-driver
$ rosstack profile & rospack profile
  1. Download the package from the repository and build the package from the source:
$ cd ~/catkin_ws/src
$ git clone git https://github.com/ros-drivers/nmea_navsat_driver.git
$ cd ..
$ catkin_make
  1. To execute the GPS driver, we will run the nmea_gpst_driver.py script, which requires two arguments: the port name that is connected to the GPS, and the baud-rate.
It is important to find the correct port name and supported baud-rate.
$ sudo chmod 666 /dev/ttyUSB0
$ rosrun nmea_gps_driver nmea_gps_driver.py _port:=/dev/ttyUSB0 _baud:=9600
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

Mobile Intelligent Autonomous Systems

Mobile Intelligent Autonomous Systems

Jitendra R. Raol, Ajith K. Gopal
Wheeled Mobile Robotics

Wheeled Mobile Robotics

Gregor Klancar, Andrej Zdesar, Saso Blazic, Igor Skrjanc

Publisher Resources

ISBN: 9781783987443Supplemental Content