Skip to content
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

"Above" set query util #1817

Merged
merged 7 commits into from
Feb 22, 2024
Merged

"Above" set query util #1817

merged 7 commits into from
Feb 22, 2024

Conversation

aclegg3
Copy link
Contributor

@aclegg3 aclegg3 commented Feb 22, 2024

Motivation and Context

Based on #1770.

Adds "above" preposition query based on raycasting from object keypoints.

NOTE: returns a set of object_id rather than previous prototype's ManagedObject tuples.

How Has This Been Tested

Added pytests for keypoint casting and "above".

Types of changes

  • [Development] A pull request that add new features to the habitat-lab task and environment codebase. Development Pull Requests must be small (less that 500 lines of code change), have unit testing, very extensive documentation and examples. These are typically new tasks, environments, sensors, etc... The review process for these Pull Request is longer because these changes will be maintained by our core team of developers, so make sure your changes are easy to understand!

Checklist

  • My code follows the code style of this project.
  • I have updated the documentation if required.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes if required.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 22, 2024
@aclegg3 aclegg3 changed the title [WIP] Above set query util Above set query util Feb 22, 2024
@aclegg3 aclegg3 marked this pull request as ready for review February 22, 2024 18:54
@aclegg3 aclegg3 changed the title Above set query util "Above" set query util Feb 22, 2024
@aclegg3 aclegg3 mentioned this pull request Feb 22, 2024
5 tasks
Copy link
Contributor

@jacobkrantz jacobkrantz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good assuming tests pass and my question about test stability is a non-issue.

all_objects = get_all_object_ids(sim)

mixer_object = get_obj_from_handle(
sim, "frl_apartment_small_appliance_01_:0000"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these sim entities stable enough to be included in tests, or should we be placing new entities?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming these are stable because they are ReplicaCAD scenes which we have no intention of modifying. This scene "apt_0" is a reconstruction of the first static "FRL apartment" arrangement from Replica.

If anything were to change in the future it would most likely be dynamic settling which should preserve the tested relationships here.

@aclegg3 aclegg3 merged commit 220135c into main Feb 22, 2024
4 checks passed
@aclegg3 aclegg3 deleted the prepositional-logic-for-eval-2 branch February 22, 2024 23:38
dannymcy pushed a commit to dannymcy/habitat-lab that referenced this pull request Jul 8, 2024
* add above set query util

* add tests for above and general purpose object_keypoint_cast
HHYHRHY pushed a commit to SgtVincent/habitat-lab that referenced this pull request Aug 31, 2024
* add above set query util

* add tests for above and general purpose object_keypoint_cast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants