2024-02-12 09:43:59 +08:00
|
|
|
# FROM isaac_ros_dev-aarch64
|
|
|
|
FROM ros:humble
|
2024-01-04 11:51:12 +08:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2024-02-12 09:43:59 +08:00
|
|
|
SHELL ["/bin/bash", "-c"]
|
2024-01-04 11:51:12 +08:00
|
|
|
# uodate and install dependencies
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2024-02-04 08:18:52 +08:00
|
|
|
ros-humble-rmw-cyclonedds-cpp ros-humble-rosidl-generator-dds-idl \
|
|
|
|
ros-humble-realsense2-camera \
|
|
|
|
ros-humble-pointcloud-to-laserscan \
|
2024-02-12 09:43:59 +08:00
|
|
|
libyaml-cpp-dev \
|
|
|
|
# ros-humble-isaac-ros-visual-slam \
|
|
|
|
# ros-humble-isaac-ros-occupancy-grid-localizer\
|
|
|
|
libboost-all-dev\
|
2024-01-04 11:51:12 +08:00
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
git \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2024-02-04 08:18:52 +08:00
|
|
|
# Cheange the ROS2 RMW to CycloneDDS as instructed by Unitree
|
|
|
|
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 humble && git clone https://github.com/eclipse-cyclonedds/cyclonedds -b releases/0.10.x &&\
|
|
|
|
cd .. && colcon build --packages-select cyclonedds && source /opt/ros/humble/setup.bash && colcon build
|
|
|
|
|
2024-02-12 09:43:59 +08:00
|
|
|
# RUN echo "source /opt/ros/humble/setup.bash" >> /usr/local/bin/scripts/workspace-entrypoint.sh
|
|
|
|
# RUN echo "source /unitree_ros2/cyclonedds_ws/install/setup.bash" >> /usr/local/bin/scripts/workspace-entrypoint.sh
|
|
|
|
# RUN echo "export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp" >> /usr/local/bin/scripts/workspace-entrypoint.sh
|
2024-02-09 09:37:11 +08:00
|
|
|
# RUN echo "export CYCLONEDDS_URI='<CycloneDDS><Domain><General><Interfaces> <NetworkInterface name="eth0" priority="default" multicast="default" /> </Interfaces></General></Domain></CycloneDDS>'" >> /usr/local/bin/scripts/workspace-entrypoint.sh
|
2024-02-04 08:18:52 +08:00
|
|
|
|
|
|
|
# copy the go2py ros2 nodes
|
2024-02-09 09:37:11 +08:00
|
|
|
COPY deploy/dock_ws/src /dock_ws/src
|
|
|
|
RUN cd /dock_ws && source /opt/ros/humble/setup.bash && colcon build --symlink-install
|
2024-02-04 08:18:52 +08:00
|
|
|
|
2024-05-03 11:06:29 +08:00
|
|
|
# # Compile the C++ hypervisor bridge
|
|
|
|
# COPY deploy/dds_bridge /dds_bridge
|
|
|
|
# WORKDIR /dds_bridge
|
|
|
|
# RUN ./install.sh && mkdir build && cd build && cmake .. && make
|
2024-01-04 11:51:12 +08:00
|
|
|
|
2024-02-04 08:18:52 +08:00
|
|
|
# Copy the script to start the nodes
|
|
|
|
COPY deploy/scripts /root/scripts
|
|
|
|
COPY deploy/launch /root/launch
|
2024-01-04 11:51:12 +08:00
|
|
|
# set the entrypoint to bash
|
2024-02-04 08:18:52 +08:00
|
|
|
# ENTRYPOINT ["/bin/bash"]
|
2024-02-12 09:43:59 +08:00
|
|
|
ENTRYPOINT ["/bin/bash", "/root/scripts/dock_hw_start.sh"]
|