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

HITL - Configure camera height based on the agent height. #2070

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

0mdc
Copy link
Contributor

@0mdc 0mdc commented Sep 6, 2024

Motivation and Context

This changeset sets the HITL first person camera height from the agent type they are controlling.

This is hacky - This will be moved into a purposeful API in the HITL controllers.

How Has This Been Tested

Tested locally.

Types of changes

  • [Development]

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.

@0mdc 0mdc requested review from aclegg3 and zephirefaith September 6, 2024 15:58
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 6, 2024
sim = self.app_service.sim
agent_data = self.agent_data
camera_height_offset = 1.0
if isinstance(gui_agent_controller, GuiRobotController):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zephirefaith : Beware that until this code is handled at the right place, you'll have to check for LLMController.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it. Makes sense.

Copy link
Contributor

@zephirefaith zephirefaith left a comment

Choose a reason for hiding this comment

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

Makes sense. Thanks for figuring this out!

examples/hitl/rearrange_v2/rearrange_v2.py Show resolved Hide resolved
@0mdc 0mdc merged commit c3a094b into main Sep 6, 2024
4 checks passed
@0mdc 0mdc deleted the 0mdc/hitl_agent_camera_height branch September 6, 2024 20:52
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