Making
Continous
Decisions
In this unit, you will program
your robot to detect and
avoid obstacles!
Review of
Lesson 1: In this lesson, you will use continuous
Obstacle Detection decisions behavior to detect obstacles
Obstacle Detection Failures
• The task of obstacle detection is
simple: move a certain distance
without hitting anything.
• There are many ways of thinking
about obstacle detection that seem
to make sense but actually don’t
work.
• The code shown here is a common
obstacle detection mistake.
Common Mistakes
This program clearly doesn’t work - and it shouldn't if you think
about it.
In this program, we told the robot to go forward for 600mm -=
and it did.
The "drive [forward] for 600mm" block had the program's full
attention for all 600mm, leaving it no way to get to any blocks that
would even attempt to check the Distance Sensor.
Cobot Assist
Challenge
Line Tracking
Challenge
Obstacle Line Tracking
Challenge