
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This repository contains Docker-related material aimed at setting up, configuring and developing a https://microros.github.io/-based application.
This set of Dockerfiles provides ready-to-use environments to easily execute micro-ROS examples in your host machine, as well as to use the standalone https://github.com/micro-ROS/micro_ros_setup. In addition, two images are provided that allow using micro-ROS as an external library, both in https://github.com/micro-ROS/micro_ros_espidf_component/tree/foxy/docker and within https://github.com/micro-ROS/micro_ros_arduino/tree/foxy/extras/library_generation.
The Docker images can be found at https://hub.docker.com/u/microros.
The available images are listed below:
| Image | Description | Status |
|---|---|---|
| base | Base image with a ROS 2 Foxy installation + micro-ROS specific build system tools. Used as base of any other micro-ROS image | https://img.shields.io/docker/cloud/automated/microros/base.svg?logo=docker](https://hub.docker.com/r/microros/base/)https://img.shields.io/docker/cloud/build/microros/base.svg?logo=docker](https://hub.docker.com/r/microros/base/)https://images.microbadger.com/badges/image/microros/base.svg](https://microbadger.com/images/microros/base) |
| micro-ros-agent | Image containing a pre-compiled micro-ROS-Agent, ready to use as a standalone application | https://img.shields.io/docker/cloud/automated/microros/micro-ros-agent.svg?logo=docker](https://hub.docker.com/r/microros/micro-ros-agent/)https://img.shields.io/docker/cloud/build/microros/micro-ros-agent.svg?logo=docker](https://hub.docker.com/r/microros/micro-ros-agent/)https://images.microbadger.com/badges/image/microros/micro-ros-agent.svg](https://microbadger.com/images/microros/micro-ros-agent) |
| micro-ros-demos | Contains pre-compiled micro-ROS demo applications, ready to use to get a taste of micro-ROS capabilities | https://img.shields.io/docker/cloud/automated/microros/micro-ros-demos.svg?logo=docker](https://hub.docker.com/r/microros/micro-ros-demos/)https://img.shields.io/docker/cloud/build/microros/micro-ros-demos.svg?logo=docker](https://hub.docker.com/r/microros/micro-ros-demos/)https://images.microbadger.com/badges/image/microros/micro-ros-demos.svg](https://microbadger.com/images/microros/micro-ros-demos) |
| micro-ros-olimex-nuttx | Contains a ready to flash example for Olimex STM32 E407 | https://img.shields.io/docker/cloud/automated/microros/micro-ros-olimex-nuttx.svg?logo=docker](https://hub.docker.com/r/microros/micro-ros-olimex-nuttx/)https://img.shields.io/docker/cloud/build/microros/micro-ros-olimex-nuttx.svg?logo=docker](https://hub.docker.com/r/microros/micro-ros-olimex-nuttx/)https://images.microbadger.com/badges/image/microros/micro-ros-olimex-nuttx.svg](https://microbadger.com/images/microros/micro-ros-olimex-nuttx) |
| micro_ros_arduino_builder | Allows to use a pre-compiled micro-ROS library to develop applications using Arduino IDE | https://img.shields.io/docker/cloud/automated/microros/micro_ros_arduino_builder.svg?logo=docker](https://hub.docker.com/r/microros/micro_ros_arduino_builder/)https://img.shields.io/docker/cloud/build/microros/micro_ros_arduino_builder.svg?logo=docker](https://hub.docker.com/r/microros/micro_ros_arduino_builder/)https://images.microbadger.com/badges/image/microros/micro_ros_arduino_builder.svg](https://microbadger.com/images/microros/micro_ros_arduino_builder) |
| esp-idf-microros | Allows to use micro-ROS as a component of the ESP-IDF build system | https://img.shields.io/docker/cloud/automated/microros/esp-idf-microros.svg?logo=docker](https://hub.docker.com/r/microros/esp-idf-microros/)https://img.shields.io/docker/cloud/build/microros/esp-idf-microros.svg?logo=docker](https://hub.docker.com/r/microros/esp-idf-microros/)https://images.microbadger.com/badges/image/microros/esp-idf-microros.svg](https://microbadger.com/images/microros/esp-idf-microros) |
.
This image entry point has a ROS 2 environment set up with micro-ROS examples.
You can run regular ROS 2 tools to launch the examples.
docker run -it --net=host microros/micro-ros-demos bashThe currently available examples are listed https://github.com/micro-ROS/micro-ROS-demos/rclc.
micro-ros-olimex-nuttx (unmaintained)
This image provides you with a ready-to-flash firmware for Olimex-STM32-E407 boards with demos included. To be able to flash, you need to map your devices to the Docker container as follows:
docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb microros/micro-ros-olimex-nuttx:foxyOnce inside the container, you can flash the board by running scripts/flash.sh from the firmware/NuttX directory.
There you can find a publisher and a subscriber examples.
Both examples use serial transport to communicate with a micro-ROS Agent, so you should start an Agent with the same transport (You can use the micro-ros-agent image to do so).
Once a Client-Agent communication is established you can use ROS 2 tools to view the publications from the Olimex or to publish messages to it.
micro_ros_arduino_builder
The micro_ros_arduino_builder docker image provides you with a set of include files and pre-compiled micro-ROS libraries to develop your micro-ROS application within the Arduino IDE environment.
To be able to use it, use the following command to instantiate a container of this image:
docker run -it -v $(pwd):/arduino_project --net=host microros/micro_ros_arduino_builder:foxy.Note that folders added to extras/library_generation/extra_packages and entries added to extras/library_generation/extra_packages/extra_packages.repos will be taken into account by this build system.
esp-idf-microros
This Docker image allows you to use micro-ROS as a component of the ESP-IDF build system.
To use it:
docker run -it --user espidf --volume="/etc/timezone:/etc/timezone:ro" -v $(pwd):/micro_ros_espidf_component -v /dev:/dev --privileged --workdir /micro_ros_espidf_component microros/esp-idf-microros:latest /bin/bash"Then, you can navigate to your example aplications and build it using the ESP IDF buildtool system script, idf.py menuconfig/build/flash/monitor.
These Dockerfiles are used for automatically creating images on Docker Hub. These builds are tagged with the ROS 2 version they will be compatible with: e.g. dashing, foxy... The latest tag will always correspond to the latest release of ROS 2.
These automatic builds have a direct relationship with the content of the micro-ROS repositories:
| Image | Triggers |
|---|---|
| base | https://github.com/micro-ROS/micro-ROS-build |
| micro-ros-agent | https://github.com/micro-ROS/micro-ROS-Agent https://github.com/eProsima/Micro-XRCE-DDS-Agent |
| micro-ros-demos | https://github.com/micro-ROS/micro-ROS-demos |
| micro_ros_arduino_builder | https://github.com/micro-ROS/micro_ros_arduino |
| esp-idf-microros | https://github.com/micro-ROS/micro_ros_espidf_component |
Apart from GitHub repositories changes, a build can be triggered whenever the base image is updated on Docker Hub.
Base images are specified with the FROM: directive in the Dockerfile.
This software is not ready for production use. It has neither been developed nor tested for a specific use case. However, the license conditions of the applicable Open Source licenses allow you to adapt the software to your needs. Before using it in a safety relevant setting, make sure that the software fulfills your requirements and adjust it according to any applicable safety standards, e.g., ISO 26262.
This repository is open-sourced under the Apache-2.0 license. See the LICENSE file for details.
For a list of other open-source components included in this repository, see the file 3rd-party-licenses.txt.
There are no known limitations.
If you find issues, https://github.com/micro-ROS/micro_ros_setup/issues.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务