MCPcopy Create free account
hub / github.com/BrainCoTech/RevoLab / parse_rsl_rl_cfg

Function parse_rsl_rl_cfg

scripts/rsl_rl/cli_args.py:42–57  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

40
41
42def 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
60def update_rsl_rl_cfg(agent_cfg: RslRlBaseRunnerCfg, args_cli: argparse.Namespace):

Callers

nothing calls this directly

Calls 1

update_rsl_rl_cfgFunction · 0.85

Tested by

no test coverage detected