-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Semantic sensor for receptacle #1786
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it works, but I have a few questions about the internals.
|
||
cls_uuid: str = "arm_receptacle_semantic_sensor" | ||
|
||
def __init__(self, sim, config, *args, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add type hints. E.g. to clarify that sim:RearrangeSim
) | ||
|
||
def _get_rep_text(self, targ_idx): | ||
# Cache the name of the receptacle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this looking for the closest of a number of target receptacles?
if obj is not None: | ||
target_receps_id = ( | ||
obj.object_id + self.habitat_config.object_ids_start | ||
) | ||
elif ao is not None: | ||
target_receps_id = ao.visual_scene_nodes[0].semantic_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems wrong or arcane, can you explain? For objects it looks like the custom instance id for aos it grabs a pre-configured semantic id. 🤔
Motivation and Context
This introduces a feature that adds semantic sensor for the target receptacleHow Has This Been Tested
Run interactive_play.pyTypes of changes
Checklist