# Gazebo中URDF模型穿透地面：static标签位置错误导致物理失效

> 原文链接：https://robotics.hellobike.com/pitfalls/2024-12-19-robotics-se-105618
> 频道：pitfalls | 更新日期：2024-12-19 | 标签：auto, stackexchange, urdf
> 核心摘要：SolidWorks导出URDF在Gazebo中穿透地面，因<static>标签未包裹在<gazebo>内致物理引擎忽略静态属性，修正标签层级后解决。

# Gazebo中URDF模型穿透地面：static标签位置错误导致物理失效

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[Gazebo urdf model falls through the ground](https://robotics.stackexchange.com/questions/105618/gazebo-urdf-model-falls-through-the-ground)（Robotics Stack Exchange #105618）

**状态**：已解决

## 问题

使用SolidWorks URDF Exporter导出的模型加载至Gazebo后直接穿透地面下落。尽管collision几何体与摩擦系数配置正确，且初步尝试添加地面平面无效，模型仍无法保持静止，表现为物理仿真中静态属性未生效。

## 环境

Gazebo仿真器；SolidWorks URDF Exporter v1.6.0-4；URDF格式机器人模型；ODE物理引擎。

## 解决办法

1. 检查world文件是否包含ground plane，若缺失需添加标准地面平面模型作为碰撞基准。
2. 将URDF中顶层&lt;static&gt;True&lt;/static&gt;标签移除，改为嵌套在&lt;gazebo&gt;标签内部，写作&lt;gazebo&gt;&lt;static&gt;true&lt;/static&gt;&lt;/gazebo&gt;。
3. 确保&lt;gazebo&gt;标签位于&lt;robot&gt;根节点下且不绑定特定link reference，使静态属性被Gazebo插件正确解析并应用于整个模型。

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

## 原始参考来源 (Sources)

- [Robotics Stack Exchange #105618：Gazebo urdf model falls through the ground](https://robotics.stackexchange.com/questions/105618/gazebo-urdf-model-falls-through-the-ground)