mlpy.environments.nao.NaoEnvFactory

class mlpy.environments.nao.NaoEnvFactory[source]

Bases: object

The NAO environment factory.

An instance of a NAO environment can be created by passing the environment type.

Notes

Currently only soccer related events are handled by the Nao worlds. To be more specific the environment attempts to detect whether a goal was scored. The physical world will prompt the user to reset the experiment while the supervisor in the Webots world is responsible for resetting the environment for the next experiment.

Examples

>>> from mlpy.environments.nao import NaoEnvFactory
>>> NaoEnvFactory.create('nao.physicalworld')

This creates a PhysicalWorld instance controlling agents in the real world.

>>> NaoEnvFactory.create('nao.webots', 12345)

This creates a Webots instance controlling simulated agents in Webots. The port ‘12345’ is the port the controller of the supervisor in the Webots world listens to.

Methods

create(_type, *args, **kwargs) Create a Nao environment of the given type.