matrx.agents.agent_utils.state_tracker.StateTracker

class StateTracker(agent_id, knowledge_decay=10, fov_occlusion=True)

The tracker of agent observations over ticks.

Deprecated since version 2.0.7: StateTracker will be removed in a future MATRX version where it will be fully replaced by State.

Methods

get_memorized_state(self)

Returns the memorized state so far.

get_traversability_map(self[, inverted, state])

Returns a map where the agent can move to.

set_knowledge_decay(self, knowledge_decay)

Sets the number of ticks the tracker should memorize unobserved objects.

update(self, state)

Updates this tracker with the new observations.

Create an instance to track an agent’s observations over ticks.

Parameters
agent_idstr

The agent id this tracker is linked to.

knowledge_decayint

For how many ticks observations need to be remembered when not observed.

fov_occlusionbool

Whether intraversable objects should block the agent’s field of view or not.

.. deprecated:: 2.0.7

StateTracker will be removed in MATRX v2.2 and fully replaced by State.

Warning

The fov_occlusion is a very unstable feature not fully tested. Use at your own risk!

Methods

get_memorized_state(self)

Returns the memorized state so far.

get_traversability_map(self[, inverted, state])

Returns a map where the agent can move to.

set_knowledge_decay(self, knowledge_decay)

Sets the number of ticks the tracker should memorize unobserved objects.

update(self, state)

Updates this tracker with the new observations.

__init__(self, agent_id, knowledge_decay=10, fov_occlusion=True)

Create an instance to track an agent’s observations over ticks.

Parameters
agent_idstr

The agent id this tracker is linked to.

knowledge_decayint

For how many ticks observations need to be remembered when not observed.

fov_occlusionbool

Whether intraversable objects should block the agent’s field of view or not.

.. deprecated:: 2.0.7

StateTracker will be removed in MATRX v2.2 and fully replaced by State.

Warning

The fov_occlusion is a very unstable feature not fully tested. Use at your own risk!

Methods

__init__(self, agent_id[, knowledge_decay, …])

Create an instance to track an agent’s observations over ticks.

get_memorized_state(self)

Returns the memorized state so far.

get_traversability_map(self[, inverted, state])

Returns a map where the agent can move to.

set_knowledge_decay(self, knowledge_decay)

Sets the number of ticks the tracker should memorize unobserved objects.

update(self, state)

Updates this tracker with the new observations.