Make a Gazebo model in one sentence

Make a Gazebo model in one sentence

github: GitHub - yjphhw/gazebo-pack: Blender→Gazebo 资产包管线: manifest 契约 + 校验打包器 + 建模脚本 (bus/tesla/falcon9 等10例) · GitHub

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 a manifest.yaml contract.
  • 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 / primitives collision,
    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 into gz 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:

  1. falcon9 rocket:

  1. shelf

  2. skyscraper

  3. coca cola bottle

1 Like