unisim.backend.mujoco.xml.get_named_bodies

unisim.backend.mujoco.xml.get_named_bodies(model_file)[source]

List MuJoCo-style body ids and names declared in a (possibly included) XML.

Returns (ids, names) in document order, with ids starting at 1 (the MuJoCo implicit world body 0 is not listed).

Parameters:

model_file (str)

Return type:

tuple[list[int], list[str]]