Test 1 Flashcards
What is a Robot?
A device with two types of agency:
- Mental agency - ability to do stuff
- Physical agency - ability to move
What is the “modulus” function?
%
Displays the remainder
What is Brute Force?
Trying every possible combination till something works.
What is an algorithim?
A very specific set of instructions to complete a task. Accounts for every possiblity and will always result in an answer.
Who is the father of modern computer science?
Alan Turing
What is proprioception?
Sensing from within. Internal sensory mechanisms.
What is dead reckoning?
An example of internal sensing in robots. The measurement of movement relative to the robot’s internal frame of reference.
What does a proximity sensor do?
Detects the distance to an object or an obstacle. Can use different technologies: Infrared light, sonar, or laser.
What three internal sensory mechanisms does the Scribbler have?
Stall, time, and battery level
What does random() do?
Returns a random floating point between 0.0 and 1.0
What does randinit(A, B) do?
Returns a random int in the range [A…B]
What is programming?
specifying in advance a set of tasks for a computer to perform
Why is it difficult to make the Scribbler go in a straight line?
Because the two motors that control the robot’s movements work independently of each other
What is a function?
Convenient way to package a series of commands into a brand new command
What is invocation?
Defining a new function