artificialpicasso.arm.ArmController#
- class artificialpicasso.arm.ArmController(*, arm1len, arm2len, arm1servo, arm2servo, tip_servo)[source]#
Bases:
object- __init__(*, arm1len, arm2len, arm1servo, arm2servo, tip_servo)[source]#
Initializes all the different components of the robot, as well as their positions.
The default position of the arms are them perpendicular to each other and the base. The default position of the tip_servo connects the pen to the paper.
Methods
__init__(*, arm1len, arm2len, arm1servo, ...)Initializes all the different components of the robot, as well as their positions.
drop_tip()Drops the tip of the pen onto the page.
get_angles(x, y)Given a (x, y) coordinate, find the two angles that the robotic arms need to make in order to move to that position.
lift_tip()Lifts the tip of the pen from the page.
move_to(x, y[, seconds])Given a (x, y) coordinate and a specified time, moves the robotic arm to the desired coordinate within that exact time frame.
Resets the positions of all the servos to their default position.
- get_angles(x, y)[source]#
Given a (x, y) coordinate, find the two angles that the robotic arms need to make in order to move to that position.