From 36e9434c3be77cfd0af50cad0f101971e59686ec Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 20 Nov 2023 11:24:42 +0100 Subject: [PATCH] README: Cleanup "Build with ROS msgs compiled in separate colcon workspace" section --- README.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index a12cc50..78540fa 100644 --- a/README.md +++ b/README.md @@ -17,30 +17,32 @@ Documentation of the individual devices is provided in the official Yarp documen Installation ------------- +### Build with pure CMake commands + +~~~ +# Configure, compile and install +cmake -S. -Bbuild -DCMAKE_INSTALL_PREFIX= +cmake --build build +cmake --build build --target install + +# Make ROS msgs available in [ament index](https://github.com/ament/ament_index) +export AMENT_PREFIX_PATH=$AMENT_PREFIX_PATH: +~~~ + + ### Build with ROS msgs compiled in separate colcon workspace ~~~bash # Compile the colcon workspace containing the required messages and services -(cd ros2_interfaces_ws && colcon build --packages-select map2d_nws_ros2_msgs) +(cd ros2_interfaces_ws && colcon build) # Make the workspace available . ros2_interfaces_ws/install/setup.bash # Configure and compile -cmake -S. -Bbuild -cmake --build build -~~~ - -### Build with pure CMake commands - -~~~ -# Configure, compile and install -cmake -S. -Bbuild -DCMAKE_INSTALL_PREFIX= +cmake -S. -Bbuild -DYARP_ROS2_USE_SYSTEM_map2d_nws_ros2_msgs:BOOL=ON -DYARP_ROS2_USE_SYSTEM_yarp_control_msgs:BOOL=ON -DCMAKE_INSTALL_PREFIX= cmake --build build cmake --build build --target install - -# Make ROS msgs available in [ament index](https://github.com/ament/ament_index) -export AMENT_PREFIX_PATH=$AMENT_PREFIX_PATH: ~~~ CI Status