From 1ddcc6531d638031203e349f842ec8d594131ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ellensohn?= Date: Fri, 18 Aug 2023 09:57:35 +0200 Subject: [PATCH] update --- docker-compose.yaml | 2 ++ docker/Dockerfile | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 30e22e9..c0aca94 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -89,6 +89,8 @@ services: controller: extends: base command: > + source /opt/ros/humble/setup.bash && + source /rmp_ws/install/setup.bash && ros2 run segwayrmp SmartCar --ros-args -r cmd_vel:=cmd_vel_out -p serial_full_name:=/dev/ttyUSB0 devices: - /dev/ttyUSB0:/dev/ttyUSB0 diff --git a/docker/Dockerfile b/docker/Dockerfile index e92ab7b..604c0d5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -61,6 +61,12 @@ ENV RMW_IMPLEMENTATION=rmw_cyclonedds_cpp ENV UNDERLAY_WS=${UNDERLAY_WS} +# Set up the entrypoint +COPY ./docker/entrypoint.sh / +RUN chmod +x /entrypoint.sh + +ENTRYPOINT [ "/entrypoint.sh" ] + ########################################### # Overlay Image for RMP Control # ###########################################