diff --git a/src/jaxsim/mujoco/loaders.py b/src/jaxsim/mujoco/loaders.py index 684322a40..32b7a4a5a 100644 --- a/src/jaxsim/mujoco/loaders.py +++ b/src/jaxsim/mujoco/loaders.py @@ -476,7 +476,7 @@ def convert( ) # Add user-defined camera - cameras = cameras if cameras is not None else {} + cameras = cameras if cameras is not None else [] for camera in cameras if isinstance(cameras, list) else [cameras]: mj_camera = MujocoCamera.build(**camera) _ = ET.SubElement(