From c6c4e3587b3350627bb828655de8d04d34983685 Mon Sep 17 00:00:00 2001 From: pcdangio <pcdangio@gmail.com> Date: Fri, 26 Feb 2021 12:55:14 -0500 Subject: [PATCH] package: updated readme to reference pigpiod in usage --- README.md | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 523ada7..1c0928e 100644 --- a/README.md +++ b/README.md @@ -29,20 +29,34 @@ The driver_mpu9250 package has been tested under [ROS] Melodic and Ubuntu 18.04. To build from source, clone the latest version from this repository into your catkin workspace and compile the package using - cd catkin_workspace/src - git clone https://github.com/pcdangio/ros-driver_mpu9250.git driver_mpu9250 - cd ../ - catkin_make +```bash +# Switch to your catkin workspace directory. +cd catkin_workspace + +# Clone the package into the workspace src directory. +git clone https://github.com/pcdangio/ros-driver_mpu9250.git src/driver_mpu9250 + +# Build the package. +catkin_make +``` ## Usage Run any of the driver nodes with (where xxx is the driver type): - rosrun driver_mpu9250 driver_mpu9250_xxx +```bash +rosrun driver_mpu9250 driver_mpu9250_xxx +``` For example, to run the node using a driver for a Raspberry Pi: - rosrun driver_mpu9250 driver_mpu9250_rpi +```bash +# First, in a different terminal, start up the PiGPIO Daemon: +sudo pigpiod + +# In a second terminal, start up the driver. +rosrun driver_mpu9250 driver_mpu9250_rpi +``` ### Creating Device Drivers -- GitLab