Function Rl-Step

Part of:

package org.rl-community.rl-glue-codec
( rl-step )
Take one step. rl-step uses the saved action and saves the returned
action for the next step. The action returned from one call must be
used in the next, so it is better to handle this implicitly so that
the user doesn't have to keep track of the action. If the
end-of-episode observation occurs, then no action is returned.

PARAMETERS:
exp : experiment in use [experiment]

RETURNS:
reward of the step [float]
observation after the step [observation]
terminal flag after the step [boolean]
next action (nil on terminal state) [action]