SparseEnv.find_object#
- SparseEnv.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