px4-sitl-gazebo-ros2

Px4 Sitl Gazebo Ros2 Docker Image

包含ROS 2 Jazzy、Gazebo Harmonic、XRCE-DDS Agent和PX4 ROS 2接口库的PX4软件在环仿真(SITL)环境,可用于无人机自动驾驶应用的开发与仿真。

下载次数: 0状态:社区镜像维护者:px4io仓库类型:镜像最近更新:1 个月前
下载命令
点击查看

PX4 SITL with ROS 2 and Gazebo Harmonic

A ready-to-use environment for developing ROS 2 applications with PX4 Autopilot and Gazebo Harmonic. Run packaged PX4 firmware with Gazebo worlds, vehicle models, and simulated sensors, without compiling PX4.

Use this image when your ROS 2 application needs Gazebo simulation, including visual environments and sensor-driven workflows. Headless operation is supported; displaying the Gazebo GUI requires host display configuration.

Included

  • Ubuntu 24.04 and ROS 2 Jazzy.
  • PX4 SITL and Gazebo Harmonic, with packaged models and worlds; the default vehicle is the X500 quadrotor.
  • Micro XRCE-DDS Agent v2.4.3 for communication between PX4 and ROS 2.
  • Prebuilt px4_msgs matching the packaged PX4 firmware.
  • The https://github.com/Auterion/px4-ros2-interface-lib, including examples and development tools.

Images are available for Linux amd64 and arm64.

Quick start: headless simulation

Run these commands in separate host terminals.

Terminal 1: start the container and DDS Agent.

sh
docker run --rm -it --name px4-gazebo-ros2 \
  px4io/px4-sitl-gazebo-ros2:latest MicroXRCEAgent udp4 -p 8888

Terminal 2: start PX4 and headless Gazebo.

sh
docker exec -it px4-gazebo-ros2 \
  /usr/local/bin/ros2-entrypoint.sh env HEADLESS=1 px4-gazebo

Terminal 3: list ROS 2 topics.

sh
docker exec -it px4-gazebo-ros2 \
  /usr/local/bin/ros2-entrypoint.sh ros2 topic list

PX4, the Agent, and ROS 2 communicate inside the same container; this example does not require host networking. Connecting ROS nodes outside the container requires additional DDS networking configuration.

Without an explicit command, the image opens Bash with ROS 2 and the workspace at /opt/px4_ros2 already sourced. PX4, Gazebo, and the Agent do not start automatically.

For the Gazebo GUI, follow the container display setup guide and leave HEADLESS unset.

For reproducible environments, pin an image digest rather than relying on the moving latest tag. If you modify PX4 firmware or its message definitions, rebuild the ROS workspace to match; do not assume the bundled messages are compatible.

Related images and documentation

  • https://hub.docker.com/r/px4io/px4-sitl-ros2 is the lighter alternative when you do not need Gazebo.
  • ghcr.io/px4/px4-dev-ros2:main-jazzy provides the standalone source-build toolchain used by PX4 ROS integration CI, without bundled firmware or a prebuilt ROS workspace.
  • PX4 prebuilt simulation packages
  • PX4 ROS 2 guide
  • https://github.com/PX4/PX4-Autopilot/tree/main/Tools/packaging/containers

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 px4-sitl-gazebo-ros2 镜像标签

docker pull docker.xuanyuan.run/px4io/px4-sitl-gazebo-ros2:<标签>

DockerHub 原生拉取命令

docker pull px4io/px4-sitl-gazebo-ros2:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持99.95% SLA 保障付费会员免广告