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

Fix Spot-floating bug #1661

Merged
merged 2 commits into from
Nov 3, 2023
Merged

Fix Spot-floating bug #1661

merged 2 commits into from
Nov 3, 2023

Conversation

rpartsey
Copy link
Collaborator

Motivation and Context

Fix Spot-floating bug (see video attached). For more context see this Asana task.

Screen.Recording.2023-10-31.at.16.02.31.mov

How Has This Been Tested

Running HITL tool locally on MacBook Pro 2021.

python examples/siro_sandbox/sandbox_app.py \
--disable-inverse-kinematics \
--never-end \
--gui-controlled-agent-index 1 \
--app-state rearrange \
--cfg social_rearrange/pop_play.yaml \
--cfg-opts \
habitat.environment.iterator_options.cycle=False \
habitat_baselines.evaluate=True \
habitat_baselines.num_environments=1 \
habitat_baselines.eval.should_load_ckpt=False \
habitat_baselines.rl.agent.num_pool_agents_per_type='[1,1]' \
habitat.simulator.habitat_sim_v0.allow_sliding=False

Types of changes

  • [Bug Fix] (non-breaking change which fixes an issue)

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 Oct 31, 2023
Copy link
Contributor

@eundersander eundersander left a comment

Choose a reason for hiding this comment

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

See comment.

# Offset the base
end_pos -= self.cur_articulated_agent.params.base_offset
# Offset the base if the base height is different between end_pos and the current state
if end_pos[1] != rigid_state.translation[1]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you tested this in a scene with different floor heights? At a glance, it's not really intuitive why this fix is necessary or correct.

Copy link
Contributor

@jimmytyyang jimmytyyang left a comment

Choose a reason for hiding this comment

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

LGTM! thanks Ruslan and Eric!

@rpartsey rpartsey merged commit 72d000e into main Nov 3, 2023
4 checks passed
@rpartsey rpartsey deleted the rpartsey/main_spot_floating_fix branch November 3, 2023 13:38
rpartsey added a commit that referenced this pull request Nov 4, 2023
rpartsey added a commit that referenced this pull request Nov 7, 2023
rpartsey added a commit that referenced this pull request Nov 9, 2023
rpartsey added a commit that referenced this pull request Nov 9, 2023
* Using cleaner Spot-floating bug fix (#1661)
* fix spot floating bug
* Ruta's rearrange study progress_str changes
* Ruta's shorter tutorial changes
* keepping only short tutorial version
* enable tutorial for the AppStateSocialNavStudy
* delete file added after rebase
dannymcy pushed a commit to dannymcy/habitat-lab that referenced this pull request Jul 8, 2024
HHYHRHY pushed a commit to SgtVincent/habitat-lab that referenced this pull request Aug 31, 2024
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.

4 participants