pyrobosim.core.locations.Location
- class pyrobosim.core.locations.Location(name=None, category=None, pose=None, parent=None, color=None, is_open=True, is_locked=False, is_charger=False)
Representation of a location in the world.
Methods
__init__([name, category, pose, parent, ...])Creates a location instance.
Creates graph nodes for searching.
add_metadata(filename)Add location metadata from a new file to existing metadata.
Clear out old location metadata.
create_polygons([inflation_radius])Creates collision and visualization polygons for the location.
Creates the object spawn locations at this location.
Returns the name of the room containing the location.
is_inside(pose)Checks if a pose is inside the location polygon.
Prints string with details.
set_pose(pose)Sets the pose of a location, accounting for its navigation poses and object spawns.
to_dict()Serializes the location to a dictionary.
update_collision_polygon([inflation_radius])Updates the collision polygon using the specified inflation radius.
Updates the visualization polygon for the location.
Attributes
Vertical height of location.
Metadata for location categories.
Visualization color (RGB tuple).