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

Compiling and running the TF

In the preceding subsection, we had to learn to develop the code for the TF demo application. To compile this, we will have to make an entry in CMakeLists.txt about source files and compilation rules:

add_executable(turtle_tf_broadcaster src/turtle_tf_broadcaster.cpp) 
target_link_libraries(turtle_tf_broadcaster ${catkin_LIBRARIES}) 
 
add_executable(turtle_tf_listener src/turtle_tf_listener.cpp) 
target_link_libraries(turtle_tf_listener ${catkin_LIBRARIES}) 

Now, we can build the package from the top folder of the workspace using catkin_make. If everything goes well, we will have binary files called turtle_tf_broadcaster and turtle_tf_listner in our devel/lib/ folder. To start the application, we will create a launch ...

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