[DO NOT MERGE] Example of adding articulated cart into Arena obj library#547
Draft
[DO NOT MERGE] Example of adding articulated cart into Arena obj library#547
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The MobileShelvingCart USD asset has 9 rigid bodies (cart body + 4 swivels + 4 wheels) connected by joints, but was registered as ObjectType.RIGID with no ArticulationRootAPI baked into the USD. This caused two failures:
find_shallowest_rigid_body raised ValueError — found 9 rigid bodies at the same depth when expecting one
Isaac Lab's articulation initializer raised RuntimeError — no ArticulationRootAPI on the prim
Changes
New files (4)
isaaclab_arena/affordances/movable.py— Movable affordance for objects that can be pushed across the floor (carts, trolleys). Provides get_displacement(env) (XY Euclidean distance from initial position) and is_moved(env, threshold).isaaclab_arena/utils/usd/spawners.py— Custom spawn functionspawn_from_usd_and_add_articulation_rootthat wraps the standard USD spawner and callsschemas.define_articulation_root_propertiesto create the ArticulationRootAPI at spawn time for USDs that have joints but were authored without the API.isaaclab_arena/tasks/move_object_task.py—MoveObjectTaskextendingTaskBase. Success is defined as XY displacement exceeding a configurable threshold. IncludesMoveObjectTerminationsCfgwith timeout + displacement-based success.isaaclab_arena_environments/kitchen_move_object_environment.py—KitchenMoveObjectEnvironmentexample env with the kitchen background. Defaults to mobile_shelving_cart as the movable object. CLI args: --object, --embodiment, --displacement_threshold, --episode_length, --teleop_device.Modified files (3)
isaaclab_arena/assets/object_library.py—MobileShelvingCartupdated:isaaclab_arena/tasks/terminations.py— Added object_displaced() termination function that measures XY displacement from initial position.isaaclab_arena_environments/cli.py— Registered KitchenMoveObjectEnvironment in the ExampleEnvironments dict.