Skip to content

Commit c037676

Browse files
committed
fix(template_ws): Allow rosdep to continue installing packages despite errors.
Sometimes we might use packages that are no longer maintained. Although these packages can compile normally, `rosdep` might report errors because the `package.xml` is not updated. Using this flag can help avoid this issue. If a package is missing, it will still be displayed in the terminal, so you don’t need to worry about missing error messages.
1 parent 39f5981 commit c037676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template_ws/docker/.bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ ! -f $ROS2_WS/install/setup.bash ]; then
1515
echo "Workspace has not been built yet. Building workspace..."
1616
cd $ROS2_WS
1717
# Ref: https://docs.ros.org/en/humble/Tutorials/Intermediate/Rosdep.html
18-
rosdep install --from-paths src --ignore-src -y
18+
rosdep install --from-paths src --ignore-src -y -r
1919
# TODO: If command `arch` outputs `aarch64`, consider adding `--packages-ignore <package>` to ignore x86 packages
2020
# Ref: https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Creating-Your-First-ROS2-Package.html
2121
if [ $(arch) == "aarch64" ]; then

0 commit comments

Comments
 (0)