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
-
__init__
(self, result, succeeded)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(self, result, succeeded)Initialize self.
Attributes
NO_ACTION_GIVEN
RESULT_NOT_PASSABLE_OBJECT
When the move action would lead the agent outside the world bounds.
When the move action would lead the agent to a location occupied by an intraversable object.
When the move action would lead the agent to a location occupied by another agent.
When the agent is already at the location it tries to move to.