zoo.policies.human_in_the_loop module

This examples runs the human-keyboard Agent, which allows you to control and monitor input devices.

NOTE: You will need to install [extras] to run this example. pip install -e .[extras]

class zoo.policies.human_in_the_loop.HumanKeyboardAgent[source]
act(obs)[source]

The agent action. See documentation on observations, AgentSpec, and AgentInterface.

Expects an adapted observation and returns a raw action.

on_press(key)[source]

To control, use the keys: Up: to increase the throttle Left Alt: to increase the brake Left: to decrease the steering angle Right: to increase the steering angle