mlpy.agents.world.WorldObject

class mlpy.agents.world.WorldObject[source]

Bases: mlpy.modules.Module

The world object base class.

The world object base class keeps track of the location of the object and its level of confidence for the information based on when the object was last seen.

Notes

All world objects should derive from this class.

Todo

Update the location based on localization.

Attributes

confidence The level of confidence of the object’s information based on when the object was last seen.
location (Points3D) The objects current location.
timestamp (float) The timestamp the object was last seen (the image was captured).

Methods

enter(t) Enter the world object.
exit() Exit the module and perform cleanup tasks.
load(filename) Load the state of the module from file.
reset(t, **kwargs) Reset the module.
save(filename) Save the current state of the module to file.
update(dt) Update the world object based on the elapsed time.
update_confidence() Update the level of confidence.