ros2-branch build failed when I did not run rodep install.

I had a similar error as referenced in #613. It turns out that I had missing dependencies which got fixed when I ran `rosdep install --from-paths src --ignore-src -r -y`. This was mentioned [here](https://github.com/introlab/rtabmap_ros/issues/613#issuecomment-922550063).
This commit is contained in:
Adarsh TS
2022-11-12 00:17:28 +05:30
committed by GitHub
parent ab27bd6673
commit 4bd88fd83d
+1
View File
@@ -45,6 +45,7 @@ ros2 launch rtabmap_ros rtabmap.launch.py \
cd ~/ros2_ws
git clone https://github.com/introlab/rtabmap.git src/rtabmap
git clone --branch ros2 https://github.com/introlab/rtabmap_ros.git src/rtabmap_ros
rosdep update && rosdep install --from-paths src --ignore-src -r -y
export MAKEFLAGS="-j6" # Can be ignored if you have a lot of RAM (>16GB)
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
```