# Webots

**Webots** 是一款开源的三维移动机器人仿真器，由Cyberbotics有限公司开发和维护，该公司是洛桑联邦理工学院（EPFL）的衍生企业。它提供了一个开发环境，用于在具有质量、关节和摩擦系数等物理属性的三维虚拟世界中对机器人进行建模、编程和仿真，并支持将控制器程序迁移到真实机器人上。<sup>[1](https://www.cyberbotics.com/doc/guide/foreword?version=R2023a)</sup><sup> • </sup><sup>[2](https://www.cyberbotics.com/doc/guide/introduction-to-webots?version=2a3f8c3)</sup><sup> • </sup><sup>[3](https://www.cyberbotics.com/)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 一款开源、多平台的三维机器人仿真桌面应用，面向工业、教育和科研领域的专业用途<sup>[3](https://www.cyberbotics.com/)</sup> |
| 起源 | 1996年由奥利维耶·米歇尔（Olivier Michel）在洛桑联邦理工学院微型计算机实验室（LAMI）开始开发；自1998年起由Cyberbotics有限公司持续维护<sup>[4](https://ict.hvl.no/wp-content/uploads/2020/09/Masteroppgave_jgr036.pdf)</sup><sup> • </sup><sup>[5](https://cyberbotics.com/doc/reference/generalities?version=R2023b)</sup> |
| 许可 | 作为专有软件约二十年；自2018年12月发布的R2019a版本起，在Apache 2.0许可证下完全免费开源<sup>[6](https://www.cyberbotics.com/doc/blog/Webots-2019-a-release)</sup> |
| 物理引擎 | 开放动力学引擎（ODE）<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC11305172/)</sup> |
| 控制器语言 | C、C++、Python、Java、MATLAB或ROS，通过统一API<sup>[3](https://www.cyberbotics.com/)</sup> |
| 最新稳定版本 | R2025a，2025年2月4日发布，包含新的机器人模型、新的演示以及改进的ROS 2支持<sup>[8](https://github.com/cyberbotics/webots/releases)</sup> |
| 知名应用 | 2021年RoboCup虚拟人形足球赛在Webots上运行，使用了专门的竞赛配置<sup>[3](https://www.cyberbotics.com/)</sup> |

## 历史与许可

Webots最初是洛桑联邦理工学院的研究工具，用于研究移动机器人中的控制算法。奥利维耶·米歇尔于1996年开始开发，从洛桑联邦理工学院衍生而来、位于洛桑附近的Cyberbotics有限公司于1998年接手该软件，并持续维护至今。<sup>[4](https://ict.hvl.no/wp-content/uploads/2020/09/Masteroppgave_jgr036.pdf)</sup><sup> • </sup><sup>[3](https://www.cyberbotics.com/)</sup>米歇尔在2004年发表于《国际先进机器人系统杂志》的论文中描述了该软件包，当时Webots是Cyberbotics的主要商业产品。<sup>[9](https://arxiv.org/abs/cs/0412052)</sup>

在大约二十年的时间里，Webots一直是按许可证销售的专有软件。2018年12月18日，随R2019a版本发布，Cyberbotics将其完全免费开源，采用Apache 2.0许可证，停止销售许可证，并将业务转向咨询、培训和付费支持服务。源代码在GitHub上公开。<sup>[6](https://www.cyberbotics.com/doc/blog/Webots-2019-a-release)</sup>

## 仿真如何构建

一个Webots仿真由三部分组成：一个扩展名为.wbt的世界文件，定义一台或多台机器人及其环境；一个或多个用于这些机器人的控制器程序；以及一个可选的物理插件，用C或C++编写，可以修改仿真器的常规物理行为。<sup>[2](https://www.cyberbotics.com/doc/guide/introduction-to-webots?version=2a3f8c3)</sup>

世界是对场景中每个物体的三维描述：其位置、朝向、几何形状、外观、物理属性和类型。世界以层级结构组织，物体可以包含其他物体，遵循VRML97的模型，.wbt格式正是基于这种虚拟现实建模语言。<sup>[2](https://www.cyberbotics.com/doc/guide/introduction-to-webots?version=2a3f8c3)</sup>机器人可以采用不同的运动方式——轮式、足式或飞行——并可搭载距离传感器、摄像头、电机、触摸传感器、发射器和接收器等仿真设备。每台机器人单独编程以表现出期望的行为。<sup>[2](https://www.cyberbotics.com/doc/guide/introduction-to-webots?version=2a3f8c3)</sup>

在底层，Webots将其场景构造映射到[开放动力学引擎](https://www.edgepedia.org/zh/open-dynamics-engine)对象上：带有Physics节点的Solid变为一个ODE刚体，其boundingObject变为一个ODE几何体，而HingeJoint或BallJoint等关节节点则映射到相应的ODE关节类型。<sup>[11](https://www.cyberbotics.com/doc/reference/structure-of-ode-objects?version=R2021a)</sup>仿真步长由WorldInfo节点的basicTimeStep字段设定；较大的步长会加速仿真，但会降低物理计算和碰撞检测的精度与稳定性。<sup>[12](https://cyberbotics.com/doc/reference/worldinfo?tab-language=c&version=released)</sup>

## 编程与接口

控制器可以用C、C++、Python、Java或MATLAB编写，针对覆盖基本机器人需求的统一API，也可以使用ROS。<sup>[3](https://www.cyberbotics.com/)</sup>不会使用这些语言的用户可以通过BotStudio——一种简单的图形化编程语言——为e-puck和Hemisson机器人编程。<sup>[2](https://www.cyberbotics.com/doc/guide/introduction-to-webots?version=2a3f8c3)</sup>

Webots包含与真实机器人的接口，因此一旦仿真机器人表现出预期行为，其控制程序就可以迁移到e-puck、DARwIn-OP或Nao等硬件上。Webots的节点和API是开放规范，可以通过远程控制和交叉编译框架自由复用和移植到其他机器人平台。<sup>[2](https://www.cyberbotics.com/doc/guide/introduction-to-webots?version=2a3f8c3)</sup><sup> • </sup><sup>[13](https://www.cyberbotics.com/doc/reference/introduction?version=R2021a)</sup>ROS集成有两条路径：一个预编译的标准ROS控制器，将Webots功能暴露为ROS服务和话题（仅限Linux）；以及一个本身就是ROS节点的自定义控制器，后者在Windows和macOS上的Python中也适用。<sup>[14](https://www.cyberbotics.com/doc/guide/using-ros?version=2a3f8c3)</sup>维护中的webots_ros2软件包提供第一方ROS 2集成，包含针对TIAGo、UR机械臂和[TurtleBot](https://www.edgepedia.org/zh/turtlebot)等常见平台的软件包。<sup>[15](https://msusar.org/research/simulation-stack)</sup>

## 应用

Webots面向移动机器人的研究和教育项目。有文献记载的使用领域包括：学术和工业环境中的移动机器人原型设计、足式和仿人机器人的机器人运动研究、群体智能等多智能体研究、遗传算法和神经网络的自适应行为研究、机器人教学，以及Robotstadium和Rat's Life等机器人竞赛。<sup>[2](https://www.cyberbotics.com/doc/guide/introduction-to-webots?version=2a3f8c3)</sup>附带的示例涵盖工厂环境中的工业机械臂、在从[OpenStreetMap](https://www.edgepedia.org/zh/openstreetmap)导入的地图上行驶并带交通流的自动驾驶车辆、使用简单流体动力学的无人机和水下机器人，以及用于步态训练的足式机器人。<sup>[3](https://www.cyberbotics.com/)</sup>

工业项目已使用该仿真器进行培训和验证。INTRA集团（EDF、CEA和Areva）委托Cyberbotics构建一个室内机器人仿真器，用于培训在核事故中部署的遥控机器人的操作员；BHP在实时Webots仿真中模拟矿区自动驾驶车辆之间的交互。<sup>[3](https://www.cyberbotics.com/)</sup>

## 与其他仿真器的比较

Webots经常与Gazebo、[CoppeliaSim](https://www.edgepedia.org/zh/coppeliasim)（原V-REP）、MORSE等软件包进行基准对比。2020年一项对Gazebo、Webots和V-REP的定量比较中，每个仿真器各运行NAO导航场景20次，发现Webots在三者中CPU、内存和磁盘资源占用最低。<sup>[16](https://arxiv.org/abs/2008.04627)</sup>2022年一项针对机械臂操作的[ROS 2](https://www.edgepedia.org/zh/ros-2)兼容仿真器的系统性比较，评估了长期运行、任务成功率、可重复性和资源使用情况，未发现总体最佳仿真器，但报告Ignition和Webots表现出比其他仿真器更高的稳定性，而[PyBullet](https://www.edgepedia.org/zh/pybullet)和CoppeliaSim消耗的资源更少。<sup>[17](https://arxiv.org/abs/2204.06433)</sup>2022年一项在混合地形上将运动精度与真实Husky A200机器人的实测基准数据进行比较的研究得出结论：CoppeliaSim在所测试的四种仿真器中表现最佳，Gazebo紧随其后；Webots也在受评估的软件包之列。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S1569190X22001046)</sup>

功能综述将Webots列为广泛使用的专用仿真器之一，其物理引擎为ODE，部分支持无头模式，开源可用，并同时支持ROS 1和ROS 2。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC11305172/)</sup><sup> • </sup><sup>[19](https://dspace.ut.ee/server/api/core/bitstreams/de20f685-db50-4047-a6a4-2249c6399d56/content)</sup>其传感器仿真被描述为与Gazebo强大且可定制的传感器模型相比偏基础，其图形也被描述为与Isaac Sim的逼真渲染相比偏基础。<sup>[19](https://dspace.ut.ee/server/api/core/bitstreams/de20f685-db50-4047-a6a4-2249c6399d56/content)</sup>

## References

1. [Webots User Guide: Foreword, Cyberbotics](https://www.cyberbotics.com/doc/guide/foreword?version=R2023a)
2. [Webots User Guide: Introduction to Webots, Cyberbotics](https://www.cyberbotics.com/doc/guide/introduction-to-webots?version=2a3f8c3)
3. [Cyberbotics: Robotics simulation with Webots](https://www.cyberbotics.com/)
4. [Master's thesis, Western Norway University of Applied Sciences, technological review of Webots](https://ict.hvl.no/wp-content/uploads/2020/09/Masteroppgave_jgr036.pdf)
5. [Webots Reference Manual, R2023b, Cyberbotics](https://cyberbotics.com/doc/reference/generalities?version=R2023b)
6. [Version R2019a - Webots Goes Open Source, Webots Blog](https://www.cyberbotics.com/doc/blog/Webots-2019-a-release)
7. [Beyond simulation: Pepper's open-source digital twin, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC11305172/)
8. [Releases, cyberbotics/webots, GitHub](https://github.com/cyberbotics/webots/releases)
9. [Michel, O. (2004). Webots: Professional Mobile Robot Simulation, arXiv:cs/0412052](https://arxiv.org/abs/cs/0412052)
10. [Webots README, cyberbotics/webots, GitHub](https://github.com/cyberbotics/webots/blob/master/README.md)
11. [Webots Reference Manual: Structure of ODE Objects, Cyberbotics](https://www.cyberbotics.com/doc/reference/structure-of-ode-objects?version=R2021a)
12. [Webots Reference Manual: WorldInfo, Cyberbotics](https://cyberbotics.com/doc/reference/worldinfo?tab-language=c&version=released)
13. [Webots Reference Manual: Introduction, R2021a, Cyberbotics](https://www.cyberbotics.com/doc/reference/introduction?version=R2021a)
14. [Webots User Guide: Using ROS, Cyberbotics](https://www.cyberbotics.com/doc/guide/using-ros?version=2a3f8c3)
15. [Simulation Stack, MSU SAR Research](https://msusar.org/research/simulation-stack)
16. [Ayala et al. (2020). A Comparison of Humanoid Robot Simulators: A Quantitative Approach, arXiv:2008.04627](https://arxiv.org/abs/2008.04627)
17. [Audonnet, Hamilton, Aragon-Camarasa (2022). A Systematic Comparison of Simulation Software for Robotic Arm Manipulation using ROS2, arXiv:2204.06433](https://arxiv.org/abs/2204.06433)
18. [Farley et al. (2022). How to pick a mobile robot simulator, Simulation Modelling Practice and Theory 120](https://www.sciencedirect.com/science/article/abs/pii/S1569190X22001046)
19. [Master's thesis, University of Tartu, comparison of simulation environments](https://dspace.ut.ee/server/api/core/bitstreams/de20f685-db50-4047-a6a4-2249c6399d56/content)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 工程与制造 › 机器人技术与自动化 › Robot software, AI, and methods › Simulation, physics engines, and digital twins

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/webots

English original: https://www.edgepedia.org/webots
