Parse configuration for RSL-RL agent based on inputs. Args: task_name: The name of the environment. args_cli: The command line arguments. Returns: The parsed configuration for RSL-RL agent based on inputs.
(task_name: str, args_cli: argparse.Namespace)
| 40 | |
| 41 | |
| 42 | def parse_rsl_rl_cfg(task_name: str, args_cli: argparse.Namespace) -> RslRlBaseRunnerCfg: |
| 43 | """Parse configuration for RSL-RL agent based on inputs. |
| 44 | |
| 45 | Args: |
| 46 | task_name: The name of the environment. |
| 47 | args_cli: The command line arguments. |
| 48 | |
| 49 | Returns: |
| 50 | The parsed configuration for RSL-RL agent based on inputs. |
| 51 | """ |
| 52 | from isaaclab_tasks.utils.parse_cfg import load_cfg_from_registry |
| 53 | |
| 54 | # load the default configuration |
| 55 | rslrl_cfg: RslRlBaseRunnerCfg = load_cfg_from_registry(task_name, "rsl_rl_cfg_entry_point") |
| 56 | rslrl_cfg = update_rsl_rl_cfg(rslrl_cfg, args_cli) |
| 57 | return rslrl_cfg |
| 58 | |
| 59 | |
| 60 | def update_rsl_rl_cfg(agent_cfg: RslRlBaseRunnerCfg, args_cli: argparse.Namespace): |
nothing calls this directly
no test coverage detected