Repository navigation
Rename the Maple-table destination to destination_object - #1530
cvolkcvolk wants to merge 7 commits into
Conversation
PickAndPlaceMapleTableEnvironment named its destination bowl after the PickAndPlaceTask parameter it fills, destination_location. The bowl is a standalone object, and a selection on it read as destination_location.asset_selection, the asset a location spawns. PickAndPlaceTask keeps destination_location for the place an object ends up, which can be part of another asset, such as a refrigerator shelf. The environment field is now destination_object, and with it the --destination_object flag, the environment.destination_object key of experiment YAMLs and the arena_env_args key of eval jobs JSON. The scene object and its variation keys are named destination_object, so records keyed destination_location.* no longer replay. Signed-off-by: Clemens Volk <cvolk@nvidia.com>
swap_objects selected its pick-up objects but still replaced the bowl through the environment's destination_object field. It now selects the wooden bowl too, so the Run swaps both objects the same way. With one name in the list, every build of the Run spawns the wooden bowl. Signed-off-by: Clemens Volk <cvolk@nvidia.com>
The first-environment page swapped the Rubik's cube and bowl with the --pick_up_object and --destination_object flags, while the getting-started Experiment swaps them with asset selection. The page now uses the same pick_up_object.asset_selection and destination_object.asset_selection overrides. Its reference and background commands, and the Experiment's shared settings, no longer restate the default objects, so the two pages choose objects one way. Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Since swap_objects builds the scene once for each of its three pick-up objects and runs three episodes, the page no longer matched the Experiment: it said every Run has a one-episode limit and builds one environment. It now names the swap_objects exception in both places. The run-experiment skill said each Run builds one fresh environment and now mentions num_rebuilds. Signed-off-by: Clemens Volk <cvolk@nvidia.com>
The variations page said rebuild k spawns the k-th name of registry_names. The swap_objects Run it links to now lists one destination for three rebuilds, which works only because the list starts over after its last name (SequentialSampler takes the index modulo the list length). The page now says so. Signed-off-by: Clemens Volk <cvolk@nvidia.com>
swap_objects selected the wooden bowl with a one-name destination_object.asset_selection list, which spawned it in every build only because in-order selection starts over after the last name. The Run sets the bowl with environment.destination_object again and keeps selection for its three pick-up objects, so it shows the field for one fixed object and selection for several. The shared settings list the default objects again, so the Run shows what it changes, and the variations page no longer needs the note about the list starting over. Signed-off-by: Clemens Volk <cvolk@nvidia.com>
The first-environment page swapped its objects with one-name pick_up_object.asset_selection and destination_object.asset_selection lists. For one fixed object the --pick_up_object and --destination_object flags say the same thing in one token each, and the swap_objects Run sets its fixed bowl with the field too. The page uses the flags again, and its reference and background commands state the default objects again, so it differs from before only in the flag name. Signed-off-by: Clemens Volk <cvolk@nvidia.com>
c381b80 to
d3d83aa
Compare
[Medium impact] The PR appears safe to merge with its stated breaking changes. SummaryRenames the Maple-table config field and scene object to
Reviews (1) · Last reviewed commit: "Swap the quickstart objects with the env..." · Reviewed by Greptile |
| task = PickAndPlaceTask( | ||
| pick_up_object=pick_up_object, | ||
| destination_location=destination_location, | ||
| destination_location=destination_object, |
There was a problem hiding this comment.
🔵 Also pass the bowl as destination_object?
PickAndPlaceTask has its own destination_object parameter: the asset the default Mimic config uses (pick_and_place_task.py:71, documented at :53). After this rename, the env calls the bowl destination_object, but task.destination_object is still None, so the same name now means two different things here. It also means Mimic mode with franka_ik fails at self.destination_object.name (pick_and_place_task.py:150). That failure predates this PR. The bowl is both the placement target and the object, so could we pass it to both?
| destination_location=destination_object, | |
| destination_location=destination_object, | |
| destination_object=destination_object, |
🤖 Isaac Lab-Arena Review BotSummaryThis PR renames the Maple-table environment's Findings🔵 Improvement: isaaclab_arena_environments/pick_and_place_maple_table_environment.py:106: the env now calls the bowl Test Coverage and CI CostI couldn't confirm that the renamed scene key works at runtime. VerdictShip it |
|
@qianl-nv looks like |
Rename the Maple-table environment's
destination_locationoption and scene object todestination_object, and correct how the first-experiment page describesswap_objects.Why this change?
The Maple-table bowl is a standalone object, but its option and scene name were
destination_location, so its asset selection read asdestination_location.asset_selection.Since #1458,
swap_objectsbuilds the scene once per pick-up object, but the first-experiment page still said every Run runs one episode in one environment.What changes?
PickAndPlaceMapleTableEnvironmentCfg.destination_locationis nowdestination_object. This renames the CLI flag, the Experiment YAML and eval jobs JSON keys, the scene object and its variation keys.run-experimentskill say thatswap_objectsbuilds one environment per pick-up object.Breaking: the old
destination_locationflag and keys are rejected, and recorded variation samples withdestination_location.*keys no longer replay.Usage example
Before:
After:
Validation
test_experiment_hydra.pyandtest_arena_experiment_config_loader.pypass locally.test_task_objects_are_named_by_role, did not run locally: the local image has Isaac Sim 6.1, where Isaac Lab 3.0 cannot importisaaclab.sim. They run in CI.