Skip to content

Commit 8b071b3

Browse files
yconstclaude
andcommitted
Fix Docker setup with complete build dependencies
ros:humble-desktop doesn't exist for ARM64. Using ros:humble-ros-base with complete list of required build packages: - rosidl-typesupport-c/cpp for message type support - rosidl-default-generators for code generation - colcon and ament_package (via pip) for building Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b0a2df4 commit 8b071b3

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ cd ~/Tinymovr-ROS # Or wherever you cloned the repo
113113
./docker_run.sh
114114
```
115115

116-
This starts a persistent container named `tinymovr_ros2` with Ubuntu + ROS 2 Humble Desktop (includes all build tools).
116+
This starts a persistent container named `tinymovr_ros2` with Ubuntu + ROS 2 Humble.
117117

118118
#### 3. Enter Container and Build
119119

@@ -123,11 +123,18 @@ docker exec -it tinymovr_ros2 bash
123123

124124
# Inside container: Install dependencies
125125
apt update && apt install -y \
126+
python3-pip \
127+
python3-colcon-common-extensions \
126128
iproute2 \
129+
ros-humble-rosidl-typesupport-c \
130+
ros-humble-rosidl-typesupport-cpp \
131+
ros-humble-rosidl-default-generators \
127132
ros-humble-ros2-control \
128133
ros-humble-ros2-controllers \
129134
ros-humble-teleop-twist-keyboard
130135

136+
pip3 install ament_package
137+
131138
# Build your robot package
132139
cd /workspace
133140
source /opt/ros/humble/setup.bash

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
ros2:
3-
image: ros:humble-desktop
3+
image: ros:humble-ros-base
44
container_name: tinymovr_ros2
55
privileged: true
66
network_mode: host

docker_run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ echo "Container started. To enter the container:"
3232
echo " docker exec -it tinymovr_ros2 bash"
3333
echo ""
3434
echo "Once inside, build and run your robot:"
35-
echo " apt update && apt install -y iproute2 ros-humble-ros2-control ros-humble-ros2-controllers ros-humble-teleop-twist-keyboard"
35+
echo " apt update && apt install -y python3-pip python3-colcon-common-extensions iproute2 ros-humble-rosidl-typesupport-c ros-humble-rosidl-typesupport-cpp ros-humble-rosidl-default-generators ros-humble-ros2-control ros-humble-ros2-controllers ros-humble-teleop-twist-keyboard"
36+
echo " pip3 install ament_package"
3637
echo " cd /workspace"
3738
echo " source /opt/ros/humble/setup.bash"
3839
echo " colcon build --packages-select tinymovr_ros"

0 commit comments

Comments
 (0)