facebookresearch / habitat-sim

A flexible, high-performance 3D simulator for Embodied AI research.
https://aihabitat.org/
MIT License
2.54k stars 414 forks source link

Region Query API #2317

Closed aclegg3 closed 7 months ago

aclegg3 commented 7 months ago

Motivation and Context

Add functions to query region containment for one point and a set of points.

How Has This Been Tested

Added pytests and a demo in viewer.py.

In the below video when the crib object is selected, containing regions are displayed colored by containment percentage. Red is full containment fading to green with less containment. Notice the hues shift as the object is moved between regions.

https://github.com/facebookresearch/habitat-sim/assets/1445143/695d1aa6-5eb3-4948-914f-ee6d34e98f82

Note: this demo will be reverted before merge.

Types of changes

Checklist