StanfordVL / OmniGibson

OmniGibson: a platform for accelerating Embodied AI research built upon NVIDIA's Omniverse engine. Join our Discord for support: https://discord.gg/bccR5vGFEx
https://behavior.stanford.edu/omnigibson/
MIT License
435 stars 48 forks source link

Scene graph tool does not work with multiple robots #800

Closed yubinwang11 closed 2 weeks ago

yubinwang11 commented 1 month ago

It seems that the function of _scene_graph_builder.start(self.scene) in OmniGibson/omnigibson/scene_graphs/graph_builder.py only supports single agent settings:

if self._robot_name is None: assert ( len(scene.robots) == 1 ), "Cannot build scene graph without specifying robot name if there are multiple robots." self._robot = scene.robots[0] else: self._robot = scene.object_registry("name", self._robot_name) assert self._robot, f"Robot with name {self._robot_name} not found in scene." The self._robot_name should be a list instead of a string when multi-agent is considered.

Thanks a lot for your review.

cgokmen commented 1 month ago

Thanks for the report. We will fix this for our next release.

hang-yin commented 3 weeks ago

Here's a proposed fix: https://github.com/StanfordVL/OmniGibson/pull/836