This commit is contained in:
Björn Ellensohn 2023-08-18 09:57:35 +02:00
parent a0f9fe9ace
commit 1ddcc6531d
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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 #
###########################################