pyrobosim.core.world.World.graph_node_from_entity

World.graph_node_from_entity(entity_query, resolution_strategy='nearest', robot=None)

Gets a graph node from an entity query, which could be any combination of room, hallway, location, object spawn, or object in the world, as well as their respective categories. For more information on the inputs, refer to the pyrobosim.utils.knowledge.query_to_entity() function. :param entity_query: List of entities (e.g., rooms or objects) or names/categories. :type entity_query: list[Entity/str] :param resolution_strategy: Resolution strategy to apply :type resolution_strategy: str :param robot: If set to a Robot instance, uses that robot for resolution strategy. :type robot: pyrobosim.core.robot.Robot, optional :return: A graph node for the entity that meets the resolution strategy, or None. :rtype: pyrobosim.utils.search_graph.Node