def __init__(self, speed, canvaswidth, canvasheight, path, color='blue', trajColor='red'):
    self.canvaswidth = canvaswidth
    self.canvasheight = canvasheight
    self.speed = speed
    self.height = Robot.ROBOT_HEIGHT
    self.v = Vec2D(0, speed)
    self.pos = Vec2D(0, 0)
    self.t = 0
    self.color = color
    self.trajColor = trajColor
    self.path = path
    self.trajectory = []
def __init__(self, speed, canvaswidth, canvasheight, path, color='blue', trajColor='red'):
    self.canvaswidth = canvaswidth
    self.canvasheight = canvasheight
    self.speed = speed
    self.height = Robot.ROBOT_HEIGHT
    self.v = Vec2D(0, speed)
    self.pos = Vec2D(0, 0)
    self.t = 0
    self.color = color
    self.trajColor = trajColor
    self.path = path
    self.trajectory = []