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 to do it…

The source code for the rviz_plugin_tutorials package can be downloaded from the chapter3_tutorials/rviz_plugin_tutorials/ file, which contains the code for ImuDisplay in these files: src/imu_display.h, src/imu_display.cpp, src/imu_visual.h, and src/imu_visual.cpp.

Alternatively, we can create a package with the ImuDisplay plugin and add the source code in the respective files:

$ catkin_create_pkg rviz_plugin_tutorials roscpp rviz std_msgs 

The open source code is self-explanatory.

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