anki_vector.behavior

Behavior related classes and functions.

Behaviors represent a complex task which requires Vector’s internal logic to determine how long it will take. This may include combinations of animation, path planning or other functionality. Examples include drive_on_charger, set_lift_height, etc.

For commands such as go_to_pose, drive_on_charger and dock_with_cube, Vector uses path planning, which refers to the problem of navigating the robot from point A to B without collisions. Vector loads known obstacles from his map, creates a path to navigate around those objects, then starts following the path. If a new obstacle is found while following the path, a new plan may be created.

The BehaviorComponent class in this module contains functions for all the behaviors.

Module Attributes

MIN_HEAD_ANGLE

The minimum angle the robot's head can be set to.

MAX_HEAD_ANGLE

The maximum angle the robot's head can be set to

MIN_LIFT_HEIGHT

The lowest height-above-ground that lift can be moved to

MAX_LIFT_HEIGHT

The largest height-above-ground that lift can be moved to

Classes

BehaviorComponent(robot)

Run behaviors on Vector

ReserveBehaviorControl([serial, ip, config, ...])

A ReserveBehaviorControl object can be used to suppress the ordinary idle behaviors of the Robot and keep Vector still between SDK control instances.