matrx.actions.move_actions.MoveActionResult

class MoveActionResult(result, succeeded)

ActionResult for a Move action

The results uniquely for Move action are (as class constants):

  • RESULT_SUCCESS: When the MoveAction is possible.

  • RESULT_NO_MOVE: If the agent is already at the location it wishes to move to.

  • RESULT_OCCUPIED: When the new location is occupied by an intraversable agent.

  • RESULT_NOT_PASSABLE_OBJECT: When the new location is occupied by an intraversable object.

  • RESULT_OUT_OF_BOUNDS: When the new location is outside the GridWorld’s bounds.

Parameters
resultstr

A string representing the reason for a (expected) success or fail of a matrx.actions.move_actions.Move.

succeededbool

A boolean representing the (expected) success or fail of a matrx.actions.move_actions.Move.

See also

Move
__init__(self, result, succeeded)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, result, succeeded)

Initialize self.

Attributes

ACTION_NOT_POSSIBLE

ACTION_SUCCEEDED

AGENT_NOT_CAPABLE

AGENT_WAS_REMOVED

IDLE_ACTION

NO_ACTION_GIVEN

RESULT_NOT_PASSABLE_OBJECT

RESULT_NO_MOVE

When the move action would lead the agent outside the world bounds.

RESULT_OCCUPIED

When the move action would lead the agent to a location occupied by an intraversable object.

RESULT_OUT_OF_BOUNDS

When the move action would lead the agent to a location occupied by another agent.

RESULT_SUCCESS

When the agent is already at the location it tries to move to.

UNKNOWN_ACTION