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

Better stable rearrange sampling #1301

Merged
merged 11 commits into from
May 25, 2023
Merged

Better stable rearrange sampling #1301

merged 11 commits into from
May 25, 2023

Conversation

aclegg3
Copy link
Contributor

@aclegg3 aclegg3 commented Apr 27, 2023

Motivation and Context

This PR adjusts some generator parameters for object placement sampling to enable more robust performance and faster generation times on HSSD.

Primarily this: 1. samples object COM placements about the Receptacle such that raycasts don't begin inside of convex shapes and miss surfaces. 2. better accounts for object margins causing similar issues.

How Has This Been Tested

Tested with rearrange generator on HSSD scenes. MUCH better performance that main. Episodes generated in 1-2 attempts instead of 10-20 attempts.

Locally with habitat-sim 2078.

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.

…ort for filter files configured in scene instance config user_defined fields.
…nsistency of support surface from bb corners projected in gravity direction
@aclegg3 aclegg3 requested a review from ykarmesh April 27, 2023 23:10
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Apr 27, 2023
@@ -39,6 +39,7 @@ def __init__(
sample_region_ratio: Optional[Dict[str, float]] = None,
nav_to_min_distance: float = -1.0,
recep_set_sample_probs: Optional[Dict[str, float]] = None,
translation_up_offset=0.08,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
translation_up_offset=0.08,
translation_up_offset : float =0.08,

@aclegg3 aclegg3 merged commit 26aab97 into main May 25, 2023
@aclegg3 aclegg3 deleted the better-stable-sampling branch May 25, 2023 15:22
@yvsriram yvsriram restored the better-stable-sampling branch July 18, 2023 13:08
dannymcy pushed a commit to dannymcy/habitat-lab that referenced this pull request Jul 8, 2024
* refactor snapping functionality to improve stability by buffering vertical COM placement height

* fix margin issues

---------

Co-authored-by: Aaron Gokaslan <[email protected]>
HHYHRHY pushed a commit to SgtVincent/habitat-lab that referenced this pull request Aug 31, 2024
* refactor snapping functionality to improve stability by buffering vertical COM placement height

* fix margin issues

---------

Co-authored-by: Aaron Gokaslan <[email protected]>
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.

None yet

3 participants