# `BB.Urdf.Exporter`
[🔗](https://github.com/beam-bots/bb/blob/main/lib/bb/urdf/exporter.ex#L5)

Export a BB robot definition to URDF XML format.

# `export`

```elixir
@spec export(module()) :: {:ok, String.t()} | {:error, term()}
```

Export a robot module to URDF XML string.

The module must use `BB` and have a `robot/0` function.

# `export_robot`

```elixir
@spec export_robot(BB.Robot.t()) :: {:ok, String.t()}
```

Export a Robot struct to URDF XML string.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
