![]() Max_speed ( float) – Maximum speed of Vector’s head in radians per second.ĭuration ( float) – Time for Vector’s head to move in seconds. ParametersĪngle ( Angle) – Desired angle for Vector’s head.Īccel ( float) – Acceleration of Vector’s head in radians per second squared. Tell Vector’s head to move to a given angle. SetEyeColorResponse set_head_angle ( angle, accel=10.0, max_speed=10.0, duration=0.0, num_retries=0, _behavior_id=None ) ¶ Saturation ( float) – The saturation to use for Vector’s eyes. Hue ( float) – The hue to use for Vector’s eyes. Robot () as robot : print ( "Set Vector's eye color to purple." ) robot. Import anki_vector import time with anki_vector. Relative_to_robot ( bool) – Whether the given pose is relative to This means that the onlyĪpplicable elements of pose in this situation are position.x position.y It does not understand movement in the z axis. Since the robot understands position by monitoring its tread movement, If relative_to_robot is set to True, the given pose will assume the In navigating to the requested pose, Vector will use path planning. Tells Vector to drive to the specified pose and orientation. GoToObjectResponse go_to_pose ( pose, relative_to_robot=False, num_retries=0, _behavior_id=None ) ¶ ![]() connected_light_cube, distance_mm ( 70.0 )) Return type Should_play_anim ( bool) – Whether to play idle animations whilst driving (>0 for forwards, 0, the abs(speed) is used internally) Vector must be off of the charger for this movement action.ĭistance ( Distance) – The distance to drive Vector will drive for the specified distance (forwards or backwards) Tells Vector to drive in a straight line. drive_on_charger () Return typeĭriveOnChargerResponse drive_straight ( distance, speed, should_play_anim=True, num_retries=0, _behavior_id=None ) ¶ Num_retries ( int) – Number of times to reattempt action in case of a failure.Ī response from the robot with status information sent when this request successfully completes or fails. Target_object ( LightCube) – The LightCube object to dock with.Īpproach_angle ( Optional) – Angle to approach the dock with.Īlignment_type ( ) – Which part of the robot to align with the object.ĭistance_from_marker ( Optional) – How far from the object to approach (0 to dock) Go_to_pose(), dock_with_cube(), turn_in_place(), drive_straight(), and pickup_object(). Otherwise you may see a TRACKS_LOCKED error. Note that actions that use the wheels cannot be performed at the same time, While docking with the cube, Vector will use path planning. Tells Vector to dock with a light cube, optionally using a given approach angle and distance. Run behaviors on Vector dock_with_cube ( target_object, approach_angle=None, alignment_type=2, distance_from_marker=None, num_retries=0, _behavior_id=None ) ¶ ![]() The lowest height-above-ground that lift can be moved to class anki_vector.behavior. The largest height-above-ground that lift can be moved to anki_vector.behavior. The minimum angle the robot’s head can be set to. The maximum angle the robot’s head can be set to anki_vector.behavior. ReserveBehaviorControl()Ī ReserveBehaviorControl object can be used to suppress the ordinary idle behaviors of the Robot and keep Vector still between SDK control instances.Īnki_vector.behavior. The BehaviorComponent class in this module contains Is found while following the path, a new plan may be created. Loads known obstacles from his map, creates a path to navigateĪround those objects, then starts following the path. Navigating the robot from point A to B without collisions. Vector uses path planning, which refers to the problem of Examples include drive_on_charger,įor commands such as go_to_pose, drive_on_charger and dock_with_cube, May include combinations of animation, path planning or Internal logic to determine how long it will take. Behaviors represent a complex task which requires Vector’s ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |