DistractiveEnv.find_object#

DistractiveEnv.find_object(position: ndarray) GridObject | None#

Get non-wall grid object at given position.

Parameters:

position (np.ndarray) – Position where the object is located inside the environment.

Returns:

Gridobject if there is a non-wall gridobject at given position, None otherwise.

Return type:

objects.GridObject | None