src/seals/diagnostics/proc_goal.py
def transition(self, state: np.ndarray, action: int) -> np.ndarray:
        """Returns next state according to grid."""
        pos, goal = state[:2], state[2:]
        next_pos = util.grid_transition_fn(pos, action)
        return np.concatenate([next_pos, goal])
Returns next state according to grid.
Returns next state according to grid.
Returns next state according to grid .
def transition(self, state: np.ndarray, action: int) -> np.ndarray:
        pos, goal = state[:2], state[2:]
        next_pos = util.grid_transition_fn(pos, action)
        return np.concatenate([next_pos, goal])
def transition ( self , state : np . ndarray , action : int ) -> np . ndarray : pos , goal = state [ : 2 ] , state [ 2 : ] next_pos = util . grid_transition_fn ( pos , action ) return np . concatenate ( [ next_pos , goal ] )
Returns next state according to grid.
Returns next state according to grid .
"""Returns next state according to grid."""
self
state
np.ndarray
action
int