CS380:Lab01

From IPRE Wiki
Jump to: navigation, search

Lab 1: CS380 Androids Design and Practice

  1. Read Calico Lua
  2. Write Lua functions to do the following:
    1. Compute the distance between two 2D points (where you represent "point" however you wish)
    Distance between (0, 0) and (0, 100)
    Distance between (0, 0) and (100, 0)
    Distance between (0, 0) and (100, 100)
    Distance between (54, 38) and (16, 85)
    1. If a point was at location (150, 150) and you wanted to rotate it 10 degrees counter-clockwise about the origin, where would it then be?
    2. If a point was at location (150, 150) and you wanted to rotate it 10 degrees counter-clockwise about (70, 50), where would it then be?
    3. If a body is moving continuously between two points, figure out where it would be every .1 seconds:
    Given that it is starting at (0, 500) and moving to (300, 250)
    Given that it is starting at (100, 500) and moving to (300, 250)
  3. Write a 1-page paper describing the UPenn 2010 Robocup software
  4. How did the UPenn 2010 Robocup team do in the competition? How?