mlpy.environments.nao.NaoEnvFactory.create¶
-
static
NaoEnvFactory.
create
(_type, *args, **kwargs)[source]¶ Create a Nao environment of the given type.
Parameters: _type : str
The Nao environment type. Valid environment types:
- nao.physicalworld
This controls the robots in the real world. The environment interacts with the user to inquire about events happening in the real world. A
PhysicalWorld
instance is created.- nao.webots
This controls the simulated robots in the Webots simulator. The world in the simulator should include a supervisor using a controller to handle the required events. A sample controller can be found in environments/webots/controllers/serverc. A
Webots
instance is created.
args : tuple, optional
Positional arguments to pass to the class of the given type for initialization.
kwargs : dict, optional
Non-positional arguments to pass to the class of the given type for initialization.
Returns: Environment
A Nao environment instance of the given type.