zonopyrobots.make_cfg_dict

Contents

zonopyrobots.make_cfg_dict#

zonopyrobots.make_cfg_dict(configs: Dict[str, Any] | List[Any] | None, robot: URDF, allow_incomplete: bool = False) Dict[str, Any][source]#

Helper function to create a config dictionary if a list is provided.

Parameters:
  • configs (Union[Dict[str, Any], List[Any], None]) – The configs.

  • robot (URDF) – The URDF.

  • allow_incomplete (bool, optional) – Whether to allow incomplete list configs. Defaults to False.

Returns:

The config dictionary.

Return type:

Dict[str, Any]