Introduction To Robot Decision Making How do robots
Introduction To Robot Decision Making
How do robots make decisions? 540 mm Evaluate the statements below. What do you notice about them? Be prepared to discuss. “The robot is more than 400 mm from the wall” Distance from wall > 500 mm “The robot is 540 mm long” Distance from wall == 540 mm Distance from wall == 500 mm “The robot is not 540 mm from the wall” 400 mm > Distance from wall < 1000 mm ©Carnegie Mellon University
Discussion • What do these statements have in common? • Why might it be useful to be able to say whether the robot is more than 500 mm from the wall or not? “The robot is more than 400 mm from the wall” Distance from wall > 500 mm “The robot is 540 mm long” Distance from wall == 540 mm Distance from wall == 500 mm “The robot is not 540 mm from the wall” 400 mm > Distance from wall < 1000 mm ©Carnegie Mellon University
True or False 2<5 (2 is less than 5) What is the answer? ©Carnegie Mellon University
True or False 2<5 (2 is less than 5) “ 2<5” is called a Boolean expressions help computers make decisions. ©Carnegie Mellon University
Boolean Expressions 2<5 What are the parts of a Boolean expression? ©Carnegie Mellon University
Relational Operators 2<5 The“<“ sign compares two numbers and is called a relational operator. Common Relational Operators equal to not equal greater less than to than or or equal to to == != > < >= <= ©Carnegie Mellon University
Review of Boolean expressions 5<3 is this expression true or false A Boolean expression is a three-part clause that compares two values that are separated by a relational operator and results in a value that is TRUE or FALSE. Which are the two values? Which is the relational operator? ©Carnegie Mellon University
How do robots make decisions? 540 mm Look at each statement below and decide if it is TRUE or FALSE. “The robot is more than 400 mm from the wall” Distance from wall > 500 mm “The robot is 540 mm long” Distance from wall == 540 mm Distance from wall == 500 mm “The robot is not 540 mm from the wall” 400 mm > Distance from wall < 1000 mm ©Carnegie Mellon University
- Slides: 9