Support variable contact sensor for Sorting task. #381
Merged
Conversation
alexmillane
approved these changes
Feb 4, 2026
Collaborator
alexmillane
left a comment
There was a problem hiding this comment.
Thanks for cleaning this up! Looks great!
| from isaaclab_arena.utils.pose import Pose | ||
|
|
||
| assert len(args_cli.destination) == len(args_cli.object) | ||
| assert len(args_cli.destinations) == len(args_cli.objects) |
Collaborator
There was a problem hiding this comment.
The code below only works for 2 objects. Let's add an additional assert that len(args_cli.destinations) == 2
Collaborator
Author
There was a problem hiding this comment.
Sure. Do you think is there a way that we could support multiple objects and destinations more than two because I think the current blocker is to automatically arrange the objects position without overlap.
Collaborator
Author
There was a problem hiding this comment.
Anyway, let's go ahead and merge this for now. We can explore a better solution in a follow-up MR if needed..
b4b3b80 to
7a3b560
Compare
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.
Summary
Support variable number of objects in sorting task
Detailed description
What was the reason for the change?
The original SortMultiObjectTask used a hardcoded SceneCfg with fixed fields (contact_sensor_0, contact_sensor_1, etc.), limiting support to fewer than 4 objects.
What has been changed?
What is the impact of this change?
SortMultiObjectTask now supports an arbitrary number of objects without hardcoded limitations.