Skip to content

Support Pi camera launch in Docker containers#1130

Merged
GyuH13 merged 5 commits intomainfrom
feature-docker-camera-update
Dec 11, 2025
Merged

Support Pi camera launch in Docker containers#1130
GyuH13 merged 5 commits intomainfrom
feature-docker-camera-update

Conversation

@GyuH13
Copy link
Copy Markdown
Member

@GyuH13 GyuH13 commented Dec 9, 2025

Description

Added the required dependency for Pi camera support in the Docker container.
Users now only need to enter the container and launch the camera to use the Pi camera.

Test

  • It is tested on raspberry pi4 and Remote PC in both Humble and jazzy.
  • The image made by this change of dockerfile is already distributed in Docker Hub.

E-manual PR : ROBOTIS-GIT/emanual#1832

Copilot AI review requested due to automatic review settings December 9, 2025 05:41
@github-project-automation github-project-automation bot moved this to 🌱 Todo in Platform Dec 9, 2025
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @GyuH13, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces comprehensive support for Raspberry Pi cameras within the TurtleBot3 Docker environments for both ROS Humble and Jazzy distributions. By integrating libcamera and adding essential system dependencies, users can now seamlessly utilize Pi cameras from within their Docker containers, simplifying development and deployment for camera-based robotics applications on the TurtleBot3 platform.

Highlights

  • Pi Camera Support in Docker: Added necessary dependencies and build steps to Dockerfiles for both Humble and Jazzy ROS distributions to enable Raspberry Pi camera functionality within containers.
  • libcamera Integration: The libcamera library (v0.5.2) is now cloned and built from source within the Docker images, ensuring proper camera hardware abstraction layer support.
  • Docker Compose Updates: The docker-compose.yml files were modified to mount /run/udev into the containers, which is crucial for device discovery and access.
  • Version Bumps: All turtlebot3 related packages have their versions incremented to 2.3.5, and corresponding changelog entries have been added.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for using the Raspberry Pi camera within the Docker containers for Humble and Jazzy distributions. The changes primarily involve adding necessary system and ROS dependencies, and building libcamera from source inside the Dockerfiles. My review focuses on optimizing the Dockerfiles by reducing the number of layers, cleaning up build artifacts to decrease image size, and making the library path configuration more robust. These improvements will lead to more efficient and portable Docker images.

Comment thread docker/humble/Dockerfile
Comment thread docker/humble/Dockerfile
Comment thread docker/humble/Dockerfile
Comment thread docker/jazzy/Dockerfile
Comment thread docker/jazzy/Dockerfile
Comment thread docker/jazzy/Dockerfile
@GyuH13 GyuH13 self-assigned this Dec 9, 2025
@GyuH13 GyuH13 added the enhancement New feature or request label Dec 9, 2025
@GyuH13 GyuH13 moved this from 🌱 Todo to 📝 Pull Request in Platform Dec 9, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Raspberry Pi camera support to TurtleBot3 Docker containers by installing the required dependencies and libcamera library. The changes enable users to launch and use Pi cameras directly from within Docker containers.

  • Version bumped from 2.3.4 to 2.3.5 across all TurtleBot3 packages
  • Added libcamera v0.5.2 and camera-ros dependencies to both Humble and Jazzy Docker images
  • Added /run/udev volume mount for device detection in docker-compose files

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
turtlebot3_teleop/setup.py Version bump to 2.3.5
turtlebot3_teleop/package.xml Version bump to 2.3.5
turtlebot3_teleop/CHANGELOG.rst Added 2.3.5 changelog entry with no changes noted
turtlebot3_node/package.xml Version bump to 2.3.5
turtlebot3_node/CHANGELOG.rst Added 2.3.5 changelog entry with no changes noted
turtlebot3_navigation2/package.xml Version bump to 2.3.5
turtlebot3_navigation2/CHANGELOG.rst Added 2.3.5 changelog entry with no changes noted
turtlebot3_example/setup.py Version bump to 2.3.5
turtlebot3_example/package.xml Version bump to 2.3.5
turtlebot3_example/CHANGELOG.rst Added 2.3.5 changelog entry with no changes noted
turtlebot3_description/package.xml Version bump to 2.3.5
turtlebot3_description/CHANGELOG.rst Added 2.3.5 changelog entry with no changes noted
turtlebot3_cartographer/package.xml Version bump to 2.3.5
turtlebot3_cartographer/CHANGELOG.rst Added 2.3.5 changelog entry with no changes noted
turtlebot3_bringup/package.xml Version bump to 2.3.5
turtlebot3_bringup/CHANGELOG.rst Added 2.3.5 changelog entry with no changes noted
turtlebot3/package.xml Version bump to 2.3.5
turtlebot3/CHANGELOG.rst Added 2.3.5 changelog entry documenting Pi Camera Docker support
docker/jazzy/docker-compose.yml Added /run/udev volume mount for device detection
docker/jazzy/Dockerfile Added camera-ros, urdf, libcamera dependencies and build instructions
docker/humble/docker-compose.yml Added /run/udev volume mount for device detection
docker/humble/Dockerfile Added camera-ros, urdf, libcamera dependencies and build instructions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docker/jazzy/Dockerfile
Comment thread docker/jazzy/Dockerfile
Comment thread docker/humble/Dockerfile
Comment thread docker/humble/Dockerfile
Comment thread docker/jazzy/Dockerfile
Comment thread docker/humble/Dockerfile
Comment thread docker/humble/Dockerfile
Comment thread docker/jazzy/Dockerfile
Copy link
Copy Markdown
Member

@yun-goon yun-goon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good!

Copy link
Copy Markdown
Member

@sunghowoo sunghowoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@GyuH13 GyuH13 removed the request for review from Woojin-Crive December 11, 2025 01:22
@GyuH13 GyuH13 merged commit 3aa30e5 into main Dec 11, 2025
10 checks passed
@GyuH13 GyuH13 deleted the feature-docker-camera-update branch December 11, 2025 01:22
@github-project-automation github-project-automation bot moved this from 📝 Pull Request to 🚩Done in Platform Dec 11, 2025
This was referenced Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants