pyrobosim.core.world.World.update_location

World.update_location(loc, pose, room=None, is_open=None, is_locked=None)

Updates an existing location in the world.

Parameters:
  • loc (pyrobosim.core.locations.Location/str) – Location instance or name to update.

  • pose (pyrobosim.utils.pose.Pose) – Pose of the location.

  • room (pyrobosim.core.room.Room/str, optional) – Room instance or name. If none, uses the previous room.

  • is_open (bool, optional) – Whether the location should be open. If None, keeps the current state.

  • is_locked (bool, optional) – Whether the location should be locked. If None, keeps the current state.

Returns:

True if the update was successful, else False.

Return type:

bool