Skip to content

Commit

Permalink
Fix hardware docker
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Nov 28, 2024
1 parent d0d201d commit 4be5e6f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion docker/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
SERIAL_PORT=/dev/ttyUSB0
ROS_NAMESPACE=rosbot
2 changes: 1 addition & 1 deletion docker/Dockerfile.hardware
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y \
ros-${ROS_DISTRO}-teleop-twist-keyboard && \
# Setup workspace
vcs import src < src/rosbot_ros/rosbot/rosbot_hardware.repos && \
rm -r src/rosbot_gazebo && \
rm -r src/rosbot_ros/rosbot_gazebo && \
# Install dependencies
rosdep init && \
rosdep update --rosdistro $ROS_DISTRO && \
Expand Down
8 changes: 6 additions & 2 deletions docker/compose.hardware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ services:
dockerfile: docker/Dockerfile.hardware
network_mode: host
ipc: host
restart: unless-stopped
devices:
- /dev/ttyUSB0
- ${SERIAL_PORT:-/dev/ttyUSB0}
- /dev/bus/usb/ # FTDI
environment:
- FASTRTPS_DEFAULT_PROFILES_FILE=/shm-only.xml
- USER=${USER:-root}
command: >
ros2 launch rosbot_bringup combined.launch.py
mecanum:=${MECANUM:-False}
serial_port:=/dev/ttyUSB0
serial_port:=${SERIAL_PORT:-/dev/ttyUSB0}
serial_baudrate:=576000

0 comments on commit 4be5e6f

Please sign in to comment.