How to use:
sudo apt update
sudo apt upgrade -y
sudo apt install -y docker.io
sudo apt-get install -y raspberrypi-kernel-headers
sudo modprobe ch341
sudo systemctl enable --now docker
sudo usermod -aG docker $USERPlease restart the pi after the install
# Download Docker Compose binary
sudo curl -L "https://github.com/docker/compose/releases/download/v2.23.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# Make it executable
sudo chmod +x /usr/local/bin/docker-compose
# Create a symbolic link
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
# Verify installation
docker-compose --versiongit clone https://github.com/zenith-polymtl/dockerfile-raspberrypi5.git
cd dockerfile-raspberrypi5
git clone https://github.com/zenith-polymtl/ros2-mission-2.git ros2_wsdocker-compose build ros2-missiondocker-compose up -ddocker-compose exec ros2-mission bashls -l /dev/ttyUSB*ls -l /sys/class/tty/ttyUSB0/device/driverYou should see something like this:
/sys/class/tty/ttyUSB0/device/driver -> ../../../../../../../../../../bus/usb-serial/drivers/ch341-uartInside the container:
cd /ros2_ws
colcon build --packages-up-to mission
source install/setup.bash
ros2 run mission (insert package here)sudo chown -R $(whoami):$(whoami) ros2_ws