# 如何将Gazebo默认渲染引擎永久设置为ogre？

> 原文链接：https://robotics.hellobike.com/pitfalls/2025-11-07-robotics-se-117720
> 频道：pitfalls | 更新日期：2025-11-07 | 标签：auto, stackexchange, gazebo
> 核心摘要：用户需要将Gazebo默认渲染引擎永久设为ogre，可通过修改GUI和服务端的MinimalScene插件配置实现。

# 如何将Gazebo默认渲染引擎永久设置为ogre？

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[How to permanently set gazebo default render engine to ogre?](https://robotics.stackexchange.com/questions/117720/how-to-permanently-set-gazebo-default-render-engine-to-ogre)（Robotics Stack Exchange #117720）

**状态**：有绕过办法

## 问题

使用Linux radeon驱动的设备无法适配ogre2，加`--render-engine ogre`参数可正常运行，但部分脚本无该参数，需永久设置默认引擎为ogre。

## 环境

系统为Ubuntu 24.04，搭配ROS2 jazzy，Gazebo Sim版本8.9.0，使用Linux radeon驱动。

## 解决办法

1. 针对GUI端：修改gui.config文件，将MinimalScene插件中的&lt;engine&gt;配置项的值改为ogre。
2. 针对服务端：修改服务端的MinimalScene插件对应配置，将渲染引擎设置为ogre。

原问题作者：AmirHossein Zarei；采纳答案作者：JRTG。原内容依 CC BY-SA 4.0 授权，本页摘要同样依 CC BY-SA 4.0 授权。
:::

## 原始参考来源 (Sources)

- [Robotics Stack Exchange #117720：How to permanently set gazebo default render engine to ogre?](https://robotics.stackexchange.com/questions/117720/how-to-permanently-set-gazebo-default-render-engine-to-ogre)