| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| FROM ros:jazzy-ros-base |
|
|
| ENV DEBIAN_FRONTEND=noninteractive |
|
|
| |
| RUN apt-get update && apt-get install -y --no-install-recommends \ |
| curl \ |
| gnupg2 \ |
| lsb-release \ |
| software-properties-common \ |
| python3-pip \ |
| clang \ |
| portaudio19-dev \ |
| mesa-utils \ |
| libgl1-mesa-dev \ |
| ffmpeg \ |
| ros-${ROS_DISTRO}-rviz2 \ |
| ros-${ROS_DISTRO}-rmw-cyclonedds-cpp \ |
| ros-${ROS_DISTRO}-image-tools \ |
| ros-${ROS_DISTRO}-vision-msgs \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| WORKDIR /ros2_ws |
|
|
| |
| COPY requirements.txt src/requirements.txt |
| |
| |
| RUN pip install --no-cache-dir --break-system-packages 'numpy<2.0.0' && \ |
| pip install --no-cache-dir --break-system-packages -r src/requirements.txt |
|
|
| |
| COPY . src/ |
| RUN . /opt/ros/${ROS_DISTRO}/setup.sh && \ |
| rosdep update && \ |
| rosdep install --from-paths src --ignore-src -r -y && \ |
| colcon build --symlink-install |
|
|
| RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /root/.bashrc && \ |
| echo "source /ros2_ws/install/setup.bash" >> /root/.bashrc && \ |
| sed --in-place --expression \ |
| '$isource "/ros2_ws/install/setup.bash"' \ |
| /ros_entrypoint.sh |
|
|
| |
| |
| ENV ROBOT_IP="" |
| ENV ROBOT_TOKEN="" |
| ENV CONN_TYPE="webrtc" |
| ENV WEBRTC_SERVER_HOST="0.0.0.0" |
| ENV WEBRTC_SERVER_PORT="9991" |
|
|
| CMD ["ros2", "launch", "go2_navigation", "bringup.launch.py"] |
|
|