Puck Class¶
-
class
Puck(number, position, angle, height=30)¶ -
set_position(position)¶ Updates
Puckposition.Parameters: position (float[]) – New Puckposition [x,y]
-
check_collision(puck_list)¶ Finds an angle of rotation for the gripper which avoids collisions between the gripper and other pucks when sliding in to pick up a puck.
Parameters: puck_list (Puck[]) – List of all PuckobjectsReturns: Rotation which yields no collision Returns: If puck should be gripped forward or backward
-