pyrobosim.core.world.World.update_location
- World.update_location(location: Location | str, pose: Pose, room: Room | str | None = None, is_open: bool | None = None, is_locked: bool | None = None) bool
Updates an existing location in the world.
- Parameters:
location – Location instance or name to update.
pose – Pose of the location.
room – Room instance or name. If None, uses the previous room.
is_open – Whether the location should be open. If None, keeps the current state.
is_locked – Whether the location should be locked. If None, keeps the current state.
- Returns:
True if the update was successful, else False.