This example uses the catkin
build system, as
used by the Robot Operating System (ROS), with an installed instance of the
Drake binary packages.
If you wish use catkin
from the Ubuntu package archive, without ROS Humble,
install the required packages as follows:
sudo setup/install_prereqs
If you wish use catkin
from ROS Humble package archive, install the required
packages and configure your environment as follows:
sudo setup/install_prereqs --ros-humble
source /opt/ros/humble/setup.bash
To build the drake_catkin_installed
library:
catkin_make --cmake-args "-DCMAKE_PREFIX_PATH=/path/to/drake;$CMAKE_PREFIX_PATH"
To build and run the drake_catkin_installed_test
test executable:
catkin_make run_tests --cmake-args "-DCMAKE_PREFIX_PATH=/path/to/drake;$CMAKE_PREFIX_PATH"
If the Drake binary package is installed to /opt/drake
, you may omit the
--cmake-args <args>
argument.