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 - Rearrange State Machine #1964

Closed 0mdc closed 1 month ago

0mdc commented 1 month ago

Motivation and Context

This changeset turns rearrange_v2 into a state machine with the following states:

  1. Reset (initial state)
    • Kicks all users. Intended to reset states between sessions.
    • When all users are disconnected, changes state to lobby.
  2. Lobby
    • Blank screen. New incoming connections are only allowed in this state.
    • When max_client_count users are connected, changes state to rearrange_v2.
  3. Rearrange
    • rearrange_v2 application.
    • When both users signaled that the episode is done, changes state to reset.

https://github.com/facebookresearch/habitat-lab/assets/110583667/b76e4b5d-5c09-4268-969f-c8e1747ceb0a

Notes

Depends on:

Limitations

How Has This Been Tested

Tested on multiplayer HITL application.

Types of changes

Checklist