pyrobosim.core.room.Room.__init__

Room.__init__(*, name: str, footprint: Sequence[Sequence[float]] | dict[str, Any] = [], color: str | Sequence[float] = [0.4, 0.4, 0.4], wall_width: float = 0.2, pose: Pose | None = None, nav_poses: list[Pose] | None = None, height: float = 0.0) None

Creates a Room instance.

Parameters:
  • name – Room name.

  • footprint – Point list or Shapely polygon describing the room 2D footprint (required).

  • color

    Visualization color. Input can be:

    • an (R, G, B) tuple or list in the range (0.0, 1.0).

    • a string (e.g., “red”).

    • a hexadecimal string (e.g., “#FF0000”).

  • wall_width – Width of room walls, in meters.

  • pose – Pose of the room. This transforms the specified footprint. If set to None, the pose will be the centroid of the room polygon.

  • nav_poses – List of navigation poses in the room. If not specified, defaults to the centroid.

  • height – Height of room.