nodes_to_states

safemdp.nodes_to_states(nodes, world_shape, step_size)

Convert node numbers to physical states.

Parameters:

nodes: np.array

Node indices of the grid world

world_shape: tuple

The size of the grid_world

step_size: np.array

The step size of the grid world

Returns:

states: np.array

The states in physical coordinates