facebookresearch / habitat-sim

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

--[BE] - Add utility function to specify whether object is ao or not #2416

Closed jturner65 closed 1 week ago

jturner65 commented 1 week ago

Motivation and Context

This small PR exposes a read-only property ("is_articulated") in the python bindings that says whether an object is articulated or not, as an alternative to checking for the object type before attempting to access type-specific functions.

How Has This Been Tested

c++ PhysicsTest.cpp and SimTest.cpp and python test_physics.py have been expanded to test this field, and all tests pass locally.

Types of changes

Checklist