facebookresearch / habitat-sim

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

how to obtain the stage object in a scene? #2373

Closed YueFan1014 closed 5 months ago

YueFan1014 commented 5 months ago

Hello, i am wondering how to get the stage object after loading a scene into habitat-sim? I want to get the bounding box of the stage in order to achieve the center point of the scene. I notice that there is rigid_object_manager and articulated_object_manager, but they cannot get the stage object. Is there any way to get the stage object? Thanks!

aclegg3 commented 5 months ago

Hey @YueFan1014, because the stage is a singleton STATIC backdrop, we don't have a ManagedObject wrapper for that. However, you can get the bounding box of the scene via Simulator.get_active_scene_graph().get_root_node().cumulative_bb.

YueFan1014 commented 5 months ago

Thanks!