mlpy.agents.world.WorldModel.add_object

WorldModel.add_object(name, obj)[source]

Add a world object.

Parameters:

name : str

The identifier of the world object.

obj : WorldObject

The world object instance.

Raises:

AttributeError

If an world object with the given name has already been registered.