Skip to main content

sleep_for

Skill class for ai.intrinsic.sleep_for skill.

The sleep_for skill sleeps (or pauses) execution for a fixed time before returning.

Prerequisites

This skill does not have any prerequisite.

Usage Example

This skill is useful in delaying the execution of another skill. For example, let's say you want to run pose estimation while an arm is moving, but want to give the arm a headstart so that it clears the camera view. This can be achieved by following the process illustrated below:

sleep_for example

warning

This skill only implements a simple fixed time delay and doesn't provide any guarantee that it will wait for another skill to complete before finishing. If you need a strong guarantee of ordering between skills consider reorganizing your behavior tree so that the skills in question cannot run at the same time.

Parameters

timeout

Duration for which the skill will sleep.

Error Code

The skill does not have error codes yet