Open Robotics Blog· @yjphhw yjphhw·AI 评分22
用一句话生成 Gazebo 模型:gazebo-pack 的 Blender→Gazebo 资产包管线
Make a Gazebo model in one sentence
AI 导读
gazebo-pack 工具链把 Blender 建模、UV 映射、SDF XML 手写与碰撞/惯性修正压缩为“一句话给 AI + 两条命令”,输出含 manifest.yaml 契约的完整资产包。
正文
2026 年10 月 24 日 09:07 1
Make a Gazebo model in one sentence
Getting a textured, physics-ready model into Gazebo usually means: modeling in Blender,
UV mapping, exporting, hand-writing SDF XML, fixing collision and inertial, fighting
axis conventions — until it finally runs in gz sim.
This toolchain compresses all of that into: one sentence to an AI + two commands.
What it does
- One-sentence modeling. Give an AI a brief — e.g. “bus, 10.5×2.5×3.05 m,
detailed textures, 1 dynamic instance, realistic collision” — and it returns a
complete asset package: watertight Blender scene, embedded textures, programmatic
build scripts, and amanifest.yamlcontract. - Scripted, reproducible assets. Every model is generated by Python scripts
(geometry + textures). Change a size constant, rerun, done — no manual re-modeling. - Contract-first. Dimensions, mass, collision, and scene layout live in one small
manifest.yaml. No hidden state. - Hard validation (V1–V12). Watertightness, signed volume, dimension cross-check
against the real mesh bbox, embedded textures, origin strategy — anything that fails
refuses to pack and prints why. - Physics that actually behaves.
mesh/box/primitivescollision,
auto-inertia, dynamic or static. Stability is verified in headless sim: a 12 t bus
on box collision is rock-steady for 45 s; a Tesla Model 3 on four cylinder tires
rests at z = 0.71999999996 — exactly the theoretical height. - Zero Fuel dependency. Generated SDFs are fully offline:
gz sdf -k→Valid.,
then straight intogz sim.
60-second start
git clone https://github.com/yjphhw/gazebo-pack && cd gazebo-pack
python3 gazebo_pack.py build assets/coke_bottle --world # build the bundled example
export SDF_PATH=$PWD/gazebo_models:$SDF_PATH
export GZ_SIM_RESOURCE_PATH=$PWD/gazebo_models:$GZ_SIM_RESOURCE_PATH
gz sdf -k worlds/coke_bottle_world.sdf # -> Valid.
gz sim -r worlds/coke_bottle_world.sdf # a red coke bottle standing on the floor
Some results:
1.bus:
- falcon9 rocket:
来源:Open Robotics Blog · discourse.openrobotics.org




