From 100453f07c74b48babc7333a25c6db342dd187b1 Mon Sep 17 00:00:00 2001 From: Arjo Chakravarty Date: Thu, 18 Jul 2024 05:19:30 +0800 Subject: [PATCH] Add `rosdep update` before `rosdep install` (#497) * Add `rosdep update` before `rosdep install` I know we ask the user to run `rosdep update` when they install `ros-dev-tools` for the first time. However, it probably is a good idea to `rosdep update` before running `rosdep install`. Signed-off-by: Arjo Chakravarty Signed-off-by: Arjo Chakravarty * Update README.md Co-authored-by: Yadu Signed-off-by: Arjo Chakravarty Signed-off-by: Arjo Chakravarty * Update README.md Signed-off-by: Arjo Chakravarty Signed-off-by: Arjo Chakravarty * Minor touchup Signed-off-by: Yadunund --------- Signed-off-by: Arjo Chakravarty Signed-off-by: Arjo Chakravarty Signed-off-by: Arjo Chakravarty Signed-off-by: Yadunund Co-authored-by: Yadu --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fea3529..479a06c 100644 --- a/README.md +++ b/README.md @@ -110,12 +110,14 @@ wget https://raw.githubusercontent.com/open-rmf/rmf/main/rmf.repos vcs import src < rmf.repos ``` -Install dependencies via `rosdep`. -Replace `humble` with ROS 2 distro of your choice. +Update your rosdep definitions and install dependencies via `rosdep`. ```bash cd ~/rmf_ws -rosdep install --from-paths src --ignore-src --rosdistro humble -y +sudo apt update +rosdep update +source /opt/ros/humble/setup.bash # replace humble with preferred ROS 2 distro. +rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y ``` **NOTE: We strongly recommend compiling Open-RMF packages with `clang` as compiler and `lld` as linker.** @@ -129,8 +131,6 @@ Compile the workspace after sourcing the ROS 2 distro of choice. ```bash cd ~/rmf_ws -source /opt/ros/humble/setup.bash # replace humble with ROS 2 distro of choice. - export CXX=clang++ export CC=clang colcon build --mixin release lld