pyrobosim.utils.knowledge

Utilities to reason about entities using world knowledge (that is, metadata about locations and objects).

Functions

apply_resolution_strategy(entity_list, ...)

Accepts a list of entities in the world (e.g. rooms, objects, etc.) and applies a resolution strategy to get a single entity from that list that best meets one of the following criteria:.

graph_node_from_entity(world, entity_query)

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.

query_to_entity(world, query_list, mode[, ...])

Resolves a generic query list of strings to an entity mode can be "location" or "object"

resolve_to_location(world[, category, room, ...])

Resolves a category/room query combination to a single specific location.

resolve_to_object(world[, category, ...])

Resolves a category/location/room query to an object.