pyrobosim.utils.knowledge.resolve_to_object
- pyrobosim.utils.knowledge.resolve_to_object(world, category=None, location=None, room=None, resolution_strategy='first', robot=None, ignore_grasped=True)
Resolves a category/location/room query to an object
- Parameters:
world (
pyrobosim.core.world.World
) – World model.category (str, optional) – Object category (e.g. “apple”)
location (str, optional) – Location category search in (e.g. “table”)
room (str, optional) – Room name to search in (e.g. “kitchen”)
resolution_strategy (str) – Resolution strategy to apply (see
apply_resolution_strategy()
)robot (
pyrobosim.core.robot.Robot
, optional) – If set to a Robot instance, uses that robot for resolution strategy.ignore_grasped (bool) – If True, ignores the current manipulated object.
- Returns:
The object that meets the category, location, and/or room filters, or None.
- Return type: