grid¶
-
safemdp.
grid
(world_shape, step_size)¶ Creates grids of coordinates and indices of state space
Parameters: world_shape: tuple
Size of the grid world (rows, columns)
step_size: tuple
Phyiscal step size in the grid world
Returns: states_ind: np.array
(n*m) x 2 array containing the indices of the states
states_coord: np.array
(n*m) x 2 array containing the coordinates of the states