Files
Robotics-at-Home-with-Raspb…/ch-13/3.4-movement-uncertainty/robot/arena.py
T
2023-01-21 23:20:32 +00:00

21 lines
497 B
Python

"""Represent the lines of the arena"""
try:
from ulab import numpy as np
except ImportError:
import numpy as np
width = 1500
height = 1500
cutout_width = 500
cutout_height = 500
boundary_lines = [
[(0,0), (0, height)],
[(0, height), (width, height)],
[(width, height), (width, cutout_height)],
[(width, cutout_height), (width - cutout_width, cutout_height)],
[(width - cutout_width, cutout_height), (width - cutout_width, 0)],
[(width - cutout_width, 0), (0, 0)],
]