From d068108b44c9eb28e97ebb926dfc41f1d6e833c1 Mon Sep 17 00:00:00 2001 From: Rooholla-KhorramBakht Date: Sun, 5 May 2024 03:10:43 +0800 Subject: [PATCH] bridge docker bug fixed --- deploy/docker/Dockerfile.bridge | 8 ++++---- deploy/docker/Dockerfile.hesai | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy/docker/Dockerfile.bridge b/deploy/docker/Dockerfile.bridge index f6fd468..cee6953 100644 --- a/deploy/docker/Dockerfile.bridge +++ b/deploy/docker/Dockerfile.bridge @@ -19,14 +19,14 @@ git clone https://github.com/ros2/rmw_cyclonedds -b humble && git clone https:// cd .. && colcon build --packages-select cyclonedds && source /opt/ros/humble/setup.bash && colcon build # copy the go2py ros2 nodes -COPY ros2_nodes/go2py_bridge /bridge_ws/src -COPY ros2_nodes/go2py_common /bridge_ws/src -RUN cd /bridge_ws && source /opt/ros/humble/setup.bash && colcon build --symlink-install +COPY ros2_nodes/go2py_bridge /bridge_ws/src/go2py_bridge +COPY ros2_nodes/go2py_common /bridge_ws/src/go2py_common +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 # set the entrypoint to bash -# ENTRYPOINT ["/bin/bash"] +#ENTRYPOINT ["/bin/bash"] ENTRYPOINT ["/bin/bash", "/root/scripts/bridge_start.sh"] diff --git a/deploy/docker/Dockerfile.hesai b/deploy/docker/Dockerfile.hesai index 52c450c..a23fb78 100644 --- a/deploy/docker/Dockerfile.hesai +++ b/deploy/docker/Dockerfile.hesai @@ -20,7 +20,7 @@ git clone https://github.com/ros2/rmw_cyclonedds -b humble && git clone https:// cd .. && colcon build --packages-select cyclonedds && source /opt/ros/humble/setup.bash && colcon build # copy the go2py ros2 nodes -COPY ros2_nodes/lidar_node /hesai_ws/src +COPY ros2_nodes/lidar_node /hesai_ws/src/lidar_node RUN cd /hesai_ws && source /opt/ros/humble/setup.bash && colcon build --symlink-install # Copy the script to start the nodes