facebookresearch / habitat-lab

A modular high-level library to train embodied AI agents across a variety of tasks and environments.
https://aihabitat.org/
MIT License
1.81k stars 460 forks source link

HITL - Add buttons and modal dialog boxes. #1956

Closed 0mdc closed 1 month ago

0mdc commented 1 month ago

Motivation and Context

This change introduces networked UI elements. A button and modal dialog boxes are added.

https://github.com/facebookresearch/habitat-lab/assets/110583667/2c433d07-9234-4102-ba83-33073352ff1b

How it works

UI elements follow the immediate mode GUI pattern. They are both keyframe consumers and message producers.

How buttons work:

  1. Server creates a button named X and sends it to the client.
  2. Client receives it, renders it, and stores whether it was clicked.
  3. Client sends back X's state.
  4. Server checks whether X was clicked.

Notes

Related to:

How Has This Been Tested

Tested in multiplayer HITL application.

Types of changes

Checklist