ActionStatus

November 1, 2022 ยท View on GitHub

from tdw.replicant.action_status import ActionStatus

The status of the Replicant after doing an action.

ValueDescription
ongoingThe action is ongoing.
failureGeneric failure code (useful for custom APIs).
successThe action was successful.
failed_to_moveTried to move to a target position or object but failed.
failed_to_turnTried to turn but failed to align with the target angle, position, or object.
cannot_reachDidn't try to reach for the target position because it can't.
failed_to_reachTried to reach for the target but failed; the magnet isn't close to the target.
not_holdingDidn't try to drop the object(s) because it isn't holding them.
collisionTried to move or turn but failed because it collided with something.
detected_obstacleDetected an obstacle in its path.
already_holdingAlready holding the object.
still_droppingDropped an object but, after many communicate() calls, the object is still moving.
cannot_graspDidn't try to grasp the object because it's of an invalid type (e.g. a kinematic object).