2024-07-29 02:13:23 +08:00
|
|
|
FROM robocaster/navigation2:aarch64
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
# uodate and install dependencies
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
ros-rolling-rmw-cyclonedds-cpp ros-rolling-rosidl-generator-dds-idl \
|
|
|
|
libyaml-cpp-dev \
|
|
|
|
libboost-all-dev\
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
git \
|
2024-05-08 05:40:59 +08:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2024-07-29 02:13:23 +08:00
|
|
|
# Cheange the ROS2 RMW to CycloneDDS as instructed by Unitree
|
2024-07-29 04:24:10 +08:00
|
|
|
# RUN cd / && git clone https://github.com/unitreerobotics/unitree_ros2 && cd /unitree_ros2/cyclonedds_ws/src && \
|
|
|
|
# git clone https://github.com/ros2/rmw_cyclonedds -b rolling && git clone https://github.com/eclipse-cyclonedds/cyclonedds -b releases/0.10.x &&\
|
|
|
|
# cd .. && colcon build --packages-select cyclonedds && source /opt/ros/rolling/setup.bash && colcon build
|
2024-05-08 05:40:59 +08:00
|
|
|
|
|
|
|
# copy the go2py ros2 nodes
|
2024-07-29 02:13:23 +08:00
|
|
|
# COPY ros2_nodes/go2py_messages /bridge_ws/src/go2py_messages
|
|
|
|
# RUN cd /bridge_ws && source /opt/ros/humble/setup.bash && source /unitree_ros2/cyclonedds_ws/install/setup.bash && colcon build --symlink-install
|
|
|
|
|
|
|
|
# Copy the script to start the nodes
|
|
|
|
COPY docker/scripts /root/scripts
|
|
|
|
COPY launch_files /root/launch
|
2024-07-28 09:32:32 +08:00
|
|
|
|
2024-07-29 02:13:23 +08:00
|
|
|
# set the entrypoint to bash
|
|
|
|
ENTRYPOINT ["/bin/bash", "/root/scripts/nav2_start.sh"]
|