Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions embodichain/lab/gym/utils/gym_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,12 @@ def add_env_launcher_args_to_parser(parser: argparse.ArgumentParser) -> None:
default=False,
action="store_true",
)
parser.add_argument(
"--arena_space",
help="The size of the arena space.",
default=5.0,
type=float,
)
Comment on lines +772 to +777
parser.add_argument(
"--enable_rt",
help="Whether to use RTX rendering backend for the simulation.",
Expand Down Expand Up @@ -829,6 +835,7 @@ def merge_args_with_gym_config(args: argparse.Namespace, gym_config: dict) -> di
merged_config["headless"] = args.headless
merged_config["enable_rt"] = args.enable_rt
merged_config["gpu_id"] = args.gpu_id
merged_config["arena_space"] = args.arena_space
return merged_config


Expand Down Expand Up @@ -871,6 +878,7 @@ def build_env_cfg_from_args(
sim_device=gym_config["device"],
enable_rt=gym_config["enable_rt"],
gpu_id=gym_config["gpu_id"],
arena_space=gym_config["arena_space"],
)
Comment on lines 878 to 882

return cfg, gym_config, action_config
Expand Down
Loading