Skip to content

Conversation

@JBVAkshaya
Copy link
Contributor

Changes Made

Added params to .devcontainer/nvidia/devcontainer.json.
Edited .devcontainer/nvidia/Dockerfile to support updated ROS2 signing keys.

Associated Issues

  1. [BUG]: GPU-Accelerated images, using exclusively CPU instead of GPU (ROS2 humble) #390
  • Fixes # (issue)
    Able to access NVIDIA GPU inside of docker where the docker is running on Ubuntu 24.04 LTS
    Added ROS2 signing keys

Testing

This fix has been tested on main and jazzy branch.

On jazzy:
It completely fixed the issue and I could see the PIDs for gazebo processes on nvidia-smi. The RTF is above 98%.

On main:
After upgrading to Gazebo Ionic along with this fix, the blueROV gets spawned in Gazebo but it still shows the Ardupilot version incompatibility error.

image image

@mergify
Copy link

mergify bot commented Jul 17, 2025

Please target the main branch for development, we will backport the changes to jazzy for you if approved and if they don't break API.

Copy link
Member

@evan-palmer evan-palmer left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this @JBVAkshaya. Is there any reason these changes can't target main? I don't see any breaking changes here that affect ROS.

Comment on lines +13 to +16

ENV ROS2_LATEST_ARCHIVE_KEYRING="/usr/share/keyrings/ros2-latest-archive-keyring.gpg"
RUN sudo rm -f ${ROS2_LATEST_ARCHIVE_KEYRING}
RUN sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o ${ROS2_LATEST_ARCHIVE_KEYRING}
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be needed. See docker-library/official-images#19162

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@evan-palmer I can raise the PR to main instead. The main isn't working for me due to ardupilot_gz issue in rolling. In regards to Nvidia GPU access issue, main is working fine.

Are you suggesting installing dedicated .deb for setting up gpg key? Or would you like me to remove this altogether?

@JBVAkshaya
Copy link
Contributor Author

Creating a PR to main.

@JBVAkshaya JBVAkshaya closed this Jul 26, 2025
@JBVAkshaya JBVAkshaya deleted the jazzy-nvidia-gpu-bug branch July 29, 2025 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants