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

Building the ROS node

As we are working with the chapter2_tutorials package, we will edit the CMakeLists.txt file here and prepare and configure the packages for the build:

$ rosed chapter2_tutorials CMakeLists.txt 

At the end of this file, we will have to add the following lines (https://github.com/kbipin/Robot-Operating-System-Cookbook/blob/master/chapter2_tutorials/CMakeLists.txt):

include_directories( include ${catkin_INCLUDE_DIRS} ) add_executable(example1a src/example_1a.cpp) add_executable(example1b src/example_1b.cpp) add_dependencies(example1a chapter2_tutorials_generate_messages_cpp) add_dependencies(example1b chapter2_tutorials_generate_messages_cpp) target_link_libraries(example1a ${catkin_LIBRARIES}) target_link_libraries(example1b ...

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