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 - Add GUI rendering wrapper. #1838

Merged
merged 6 commits into from
Mar 12, 2024
Merged

HITL - Add GUI rendering wrapper. #1838

merged 6 commits into from
Mar 12, 2024

Conversation

0mdc
Copy link
Contributor

@0mdc 0mdc commented Mar 7, 2024

Motivation and Context

This adds a wrapper for DebugLineRender, which also supports networking via ClientMessageManager.

  • If DebugLineRender is None (headless mode), server rendering is skipped.
  • If ClientMessageManager is None (local mode), remote rendering is skipped.

Rendering for multiple clients would be supported by either adding a "destination" parameter to GuiDrawer functions (relayed to ClientMessageManager), or carrying an array of GuiDrawers and ClientMessageManagers. I think that the former would be simpler in the long run.

How Has This Been Tested

Tested in all apps along with the Unity mouse/keyboard client.

Types of changes

  • [Refactoring]
  • [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.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 7, 2024
@0mdc 0mdc marked this pull request as ready for review March 11, 2024 16:55
@0mdc 0mdc requested a review from jturner65 March 11, 2024 16:55
Copy link
Contributor

@aclegg3 aclegg3 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.
I was thinking about ways to reduce the API forwarding/mirroring.
Talking to @0mdc we concluded that this intermediate class will have expanded function variable set and a branched implementation for client-side interface, so this mirror is a lesser of two evils for now.

@0mdc 0mdc merged commit ae45d63 into main Mar 12, 2024
3 of 4 checks passed
@0mdc 0mdc deleted the 0mdc/hitl-gui-drawer branch March 12, 2024 00:42
dannymcy pushed a commit to dannymcy/habitat-lab that referenced this pull request Jul 8, 2024
* Add GuiDrawer class.

* Change gui_drawer creation flow. Change line renderer calls to gui_drawer. Add accessor for internal line renderer. Remove networking placeholder. Fix typing.

* Minor fixed.

* Adapt remaining code to use gui_drawer.

* Add comments.

* Fix typing and typos.
HHYHRHY pushed a commit to SgtVincent/habitat-lab that referenced this pull request Aug 31, 2024
* Add GuiDrawer class.

* Change gui_drawer creation flow. Change line renderer calls to gui_drawer. Add accessor for internal line renderer. Remove networking placeholder. Fix typing.

* Minor fixed.

* Adapt remaining code to use gui_drawer.

* Add comments.

* Fix typing and typos.
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