Skip to content

Commit

Permalink
Clone the upstream repositories of navigation2 repo
Browse files Browse the repository at this point in the history
  • Loading branch information
CihatAltiparmak committed Jan 4, 2025
1 parent 9ed8928 commit fc4f9fb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ WORKDIR /root/nav2_ws
RUN mkdir -p ~/nav2_ws/src
ARG VERSION_TAG=latest
RUN if [ "${ROS_DISTRO}" = "rolling" ]; then \
git clone https://github.com/ros-planning/navigation2.git --branch main ./src/navigation2; \
git clone https://github.com/ros-planning/navigation2.git --branch main ./src/navigation2 && \
vcs import ./src/ < ./src/navigation2/tools/underlay.repos; \
elif [ "${VERSION_TAG}" = "latest" ]; then \
git clone https://github.com/ros-planning/navigation2.git --branch ${ROS_DISTRO} ./src/navigation2; \
git clone https://github.com/ros-planning/navigation2.git --branch ${ROS_DISTRO} ./src/navigation2 && \
vcs import ./src/ < ./src/navigation2/tools/underlay.repos; \
else \
git clone https://github.com/ros-planning/navigation2.git --branch ${VERSION_TAG} ./src/navigation2; \
git clone https://github.com/ros-planning/navigation2.git --branch ${VERSION_TAG} ./src/navigation2 && \
vcs import ./src/ < ./src/navigation2/tools/underlay.repos; \
fi

RUN rm /etc/ros/rosdep/sources.list.d/20-default.list && rosdep init
Expand Down

0 comments on commit fc4f9fb

Please sign in to comment.