ros-navigation / docs.nav2.org

https://docs.nav2.org/
https://docs.nav2.org/
Apache License 2.0
85 stars 179 forks source link

Fix installation for rolling #515

Closed Ryanf55 closed 7 months ago

Ryanf55 commented 7 months ago

Purpose

How to test

Use this dockerfile:

ARG ROS_DISTRO=rolling
FROM ros:${ROS_DISTRO}-ros-core

RUN apt-get update \
    && apt-get install -y \
        ros-dev-tools \
        wget

WORKDIR /root/ros2_ws 
RUN mkdir -p ~/ros2_ws/src
RUN git clone https://github.com/ros-planning/navigation2.git --branch main ./src/navigation2
RUN rosdep init

SHELL ["/bin/bash", "-c"]
RUN apt-get update \
    && rosdep update \
    && source /opt/ros/${ROS_DISTRO}/setup.bash \
    && rosdep install -y -r --ignore-src --from-paths src

RUN source /opt/ros/${ROS_DISTRO}/setup.bash \ 
    && colcon build --symlink-install

ANd run docker build .

Note - because it's rolling, this may not be reproducible, but it works today.