pyrobosim.core.locations.Location

class pyrobosim.core.locations.Location(name=None, category=None, pose=None, parent=None, color=None)

Representation of a location in the world.

Methods

__init__([name, category, pose, parent, color])

Creates a location instance.

add_graph_nodes()

Creates graph nodes for searching.

create_polygons([inflation_radius])

Creates collision and visualization polygons for the location.

create_spawn_locations()

Creates the object spawn locations at this location.

get_room_name()

Returns the name of the room containing the location.

is_inside(pose)

Checks if a pose is inside the location polygon.

print_details()

Prints string with details.

set_metadata(filename)

Assign a metadata file to the pyrobosim.core.locations.Location class.

set_pose(pose)

Sets the pose of a location, accounting for its navigation poses and object spawns.

update_collision_polygon([inflation_radius])

Updates the collision polygon using the specified inflation radius.

update_visualization_polygon()

Updates the visualization polygon for the location.

Attributes

height

Vertical height of location.

viz_color

Visualization color (RGB tuple).