O'Reilly logo

Robot Operating System Cookbook by Kumar Bipin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works…

Here, we are ready with the Linux system ROS-9DoF Razor IMU interface software packages. We also need the Arduino interface software, which can control the 9DoF Razor IMU using the I2C protocol and also enable the Arduino-ROS interface to communicate with the Linux system.

We will launch the Arduino IDE installed in the previous section and open the Razor_AHRS.ino file from the razor_imu_9dof package at ~/catkin_ws/src/razor_imu_9dof/Razor_AHRS/Razor_AHRS.ino. Now, we have to select our hardware options from the code and uncomment the right line as follows:

Hardware selection

We will compile and upload the code on the Arduino ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required