Skip to content

Week 7

Planning an Autonomous Mission

Turn a real job into a plan: requirements, constraints, a flowchart, and a safe autonomous mission.

  • 60-75 minutes
  • Mission: Plan an autonomous mission with requirements, constraints, and a flowchart, then rehearse it with a short guided practice mission.

Students learn how engineers plan a robot's job before they build it. They tell autonomous systems (which decide for themselves with sensors and a program) from remote-controlled ones (which a person steers), then write requirements, constraints, and criteria for a mission and weigh the trade-offs. They draw a flowchart of an autonomous program - action boxes and decision diamonds, including a safe stop - and run a short guided practice mission as a rehearsal for next week's final project.

By the end of this week you can

  • Explain the difference between an autonomous system and a remote-controlled one
  • Write requirements, constraints, and success criteria for a robot mission
  • Describe a trade-off in a robot plan and choose using the engineering design process
  • Draw a flowchart of an autonomous program with action boxes, decision diamonds, and a safe stop
  • Run a short guided autonomous mission and compare the result to its success criteria

Learn

Autonomous vs remote-controlled

There are two ways a robot can do a job. When it is remote-controlled, a person steers it in real time, deciding every move. When it is autonomous, the robot runs its own program and uses its sensors to decide for itself, with no one steering.

This week is about autonomous missions, because next week you will build a robot that has to do its job by itself. That means all the deciding has to be planned ahead of time and written into the program.

For example: Autonomous: a robot vacuum, a Mars rover doing a planned drive, a delivery robot on a sidewalk; Remote-controlled: an RC car, a camera drone on a joystick, a rescue robot a person drives by video

Requirements, constraints, and criteria

Before you build, you plan. A requirement is what the robot MUST do - 'carry the block to the blue zone'. A constraint is a limit you have to work inside - 'in under 30 seconds', 'using only one sensor', 'no bigger than a shoebox'. Criteria are how you will judge success - 'stops inside the zone' and 'never bumps the wall'.

Writing these down first keeps a plan honest. If you can't tell whether the robot did the job, your criteria aren't clear enough yet.

For example: Requirement: 'find the target and stop'; Constraint: 'finish in under one minute'; Criteria: 'stops within 5 cm of the target'

Trade-offs and the engineering design process

You almost never get everything at once. A trade-off is giving up some of one thing to get more of another. A robot that drives fast might miss the sensor reading and crash; slowing it down trades speed for reliability. There is rarely one 'right' answer - you choose the trade-off that best fits your requirements and constraints.

Engineers handle this with the engineering design process: plan, build, test, improve - then go around again. Each trip around is an iteration. You also think about efficiency: doing the job with fewer steps, less time, or less energy, without breaking your criteria.

For example: Fast vs reliable; Simple program vs handling more obstacles; Fewer steps (efficient) vs more careful checks

Flowcharts: mapping the program before you code it

A flowchart is a picture of your program's steps. Actions go in rectangles ('drive forward', 'stop'). Decisions go in diamonds and ask a yes/no question ('Wall ahead?'), with one arrow out for 'yes' and one for 'no'. Arrows connect the boxes so you can follow the path the robot will take.

Drawing the flowchart first lets you find problems before you build. A good autonomous flowchart always includes a loop that keeps checking a sensor and a clear ending - which is where your safe stop goes.

For example: Rectangle = action; Diamond = a yes/no decision; Arrows = the order of steps

Safe stopping and responsible robotics

An autonomous robot decides on its own, so it needs a way to stop safely - a programmed behavior that halts it when the job is done or when something (or someone) is in the way. Without a safe stop, an autonomous robot can keep driving into a wall or a person.

This is part of responsible robotics: thinking about safety and about when a human should stay in control. Autonomous robots are great at dull, repeating jobs, but for anything risky - near people, or where a mistake could hurt someone - a person should be able to supervise, take over, or shut it down.

Responsible designers also think about privacy - a robot with a camera or microphone collects information about people, so you only collect what the job truly needs. They plan for failure: if a system breaks, who is responsible, and does it fail safely by stopping rather than charging ahead? And they decide which jobs a robot should only assist a person with instead of controlling alone - a robot might hand a nurse a tool, but a person makes the medical decision.

Finally, good robots are designed for different users and needs - the people who use them may be young or old, may not read the same language, or may need larger buttons, sound, or lights. Designing for real, varied users is part of doing robotics responsibly.

For example: Robot vacuum stops and backs up at a stair edge; A delivery robot pauses when a person steps in front; A person keeps a hand near the stop button during testing; A home robot only records what it needs and asks before it does; An alert uses both a light and a sound so more people can notice it

Autonomous robots in the real world

Autonomous robots already do real jobs - almost always dull, dirty, or dangerous ones, and almost always with people supervising. Looking at real examples helps you plan your own mission: each one senses the world, decides with a program, acts, and has a way to stop safely.

As you read these, notice the pattern from Week 1: input (a sensor), processing (a decision), output (an action) - plus a safe stop and a human who can step in.

For example: Warehouse delivery robots carry shelves to workers, sensing other robots to avoid bumping; Mars rovers drive planned routes on their own because commands from Earth take minutes to arrive; Agricultural robots roll down crop rows to check plants or pull weeds; Search-and-rescue robots enter rubble or smoke that is too dangerous for people; Underwater inspection robots check pipes, hulls, and cables where a diver cannot safely go; Factory robotic arms weld and assemble the same part precisely, over and over, behind a safety guard; Robotic surgical tools let a surgeon work with steadier, smaller movements - the surgeon stays in control the whole time

Words to know

Autonomous:
Acting on its own: the robot uses its sensors and a program to decide what to do, with no person steering it.
Remote-controlled:
Steered by a person in real time, moment by moment, for example with a joystick or an app.
Requirement:
Something the robot MUST do to count as doing the mission, like 'reach the drop-off zone'.
Constraint:
A limit you have to work inside, like time, size, materials, or budget.
Criteria:
The measures you use to judge success, like 'stops within 5 cm of the wall' or 'finishes in under 30 seconds'.
Trade-off:
Giving up some of one good thing to get more of another, like going slower to be more reliable.
Engineering design process:
The repeating cycle engineers use: plan, build, test, and improve.
Iteration:
One trip around the design cycle - testing your plan or robot, finding a problem, and improving it.
Efficiency:
Doing the job well with less: fewer steps, less time, or less energy.
Safe stop:
A programmed behavior that halts the robot safely when the job is done or something is in the way.
Responsible robotics:
Thinking about safety and about when a human should stay in control instead of the robot.
Flowchart:
A step-by-step diagram of a program that uses boxes for actions and diamonds for decisions.

Stay safe

Read these before you build or run a robot this week.

  • Caution:During the practice run, keep the test area clear and stay ready to stop the robot if it leaves the course; keep fingers away from moving wheels.
  • Caution:Always program a safe stop so an autonomous robot halts when the job is done or something is in the way, instead of pushing into a wall or a person.
  • Caution:Keep the taped floor course clear so no one trips while acting out the mission.
  • Note:Save your program and journal often so a browser refresh doesn't lose your plan.

Do it

Choose your path

Do this course with a robot kit, the browser simulator, or unplugged with household materials. Pick one - you can switch anytime without losing your work.

Write a mission plan

Robot kit

Turn a small autonomous job into a plan: requirements, constraints, success criteria, and one trade-off you had to weigh.

  • Pick one small autonomous mission, like 'drive to the zone and stop' or 'search until you find the target'. Write it at the top of the Mission Planning Brief.
  • Fill in the brief: requirements (what it MUST do), constraints (limits like time, size, or one sensor), and criteria (how you'll judge success). Then name one trade-off you had to weigh, such as speed vs reliability.

Plan a mission for your kit robot

You need: Mission Planning Brief worksheet, The kit robot for reference, A marked zone or short course

Steps

  1. 1Choose a mission your kit can actually do this week, like drive to a taped zone and stop.
  2. 2Write the requirements, then the constraints your kit sets (its speed, its one sensor, the space you have).
  3. 3Write measurable success criteria, then name one trade-off - for example, driving slower to read the sensor reliably.

What success looks like: A completed brief with at least two requirements, two constraints, two measurable criteria, and one named trade-off.

Check for:
  • Requirements say what the robot MUST do
  • Constraints list real limits
  • Criteria are measurable (a number or a clear yes/no)
  • One trade-off is named

Safety: Plan on paper this step; keep the robot switched off while you plan.

If it doesn't work

Requirements and constraints look the same
- A requirement is a job ('reach the zone'); a constraint is a limit ('in under 30 seconds'). Sort each line into one or the other.

Go further: Add a second, harder version of the mission and list what new requirement it adds.

Draw the mission flowchart

Robot kit

Turn the mission plan into a flowchart with action boxes, at least one decision diamond, a loop that checks a sensor, and a safe stop.

  • On the flowchart page, start at a 'Start' box and end at a 'Safe stop' box. Put actions in rectangles and each yes/no decision in a diamond, with a 'yes' arrow and a 'no' arrow.
  • Your autonomous flowchart must keep checking a sensor (a loop) and must end at a safe stop - the robot stops when the job is done or something is in the way.

Flowchart your kit mission

You need: Flowchart page, Your completed Mission Planning Brief

Steps

  1. 1Write the mission's steps in order: Start, then the actions (drive forward, etc.).
  2. 2Add a decision diamond for the sensor check, like 'Wall ahead?', with a 'yes' path and a 'no' path.
  3. 3Loop the 'no' path back to keep driving and checking; send the 'yes' path to the Safe stop box.

What success looks like: A flowchart from Start to Safe stop with action boxes, at least one decision diamond, a loop back, and a clear stop.

Check for:
  • Actions are in rectangles
  • At least one decision is a diamond with yes/no arrows
  • A loop keeps checking the sensor
  • It ends at a safe stop

Safety: This is a paper step; no robot needs to run yet.

If it doesn't work

The flowchart never stops
- Every autonomous flowchart needs an exit - send one arrow from a decision to the Safe stop box.

Go further: Add a second decision diamond so the robot handles two different sensor readings.

Guided autonomous practice mission

Robot kit

Run a short autonomous mission - drive to a zone, react to one obstacle, and stop safely - as a rehearsal for next week's final project.

  • Build the program straight from your flowchart: a sequence to drive, a loop that keeps checking one sensor, a condition that reacts to an obstacle, and a safe stop when the robot reaches the zone or hits the obstacle.
  • Run it, watch it against your success criteria, and note one thing you would improve - that improve step is an iteration, exactly what you'll do more of next week.

Run the practice mission on your kit robot

You need: Robot kit with one sensor, Marked zone or short course, Your flowchart

Steps

  1. 1Set up a short course: a start line, a zone to reach, and one obstacle in the path.
  2. 2Program a drive-forward sequence, a loop that checks the distance or touch sensor, a condition that reacts to the obstacle, and a safe stop at the zone.
  3. 3Run it once from the start line and check it against your success criteria; note one improvement.

What success looks like: The kit robot drives to the zone, reacts to the obstacle, and stops safely instead of pushing through it.

Check for:
  • Reaches the zone
  • Reacts to the obstacle instead of ignoring it
  • Stops safely (does not keep driving)
  • One improvement noted

Safety: Keep the test area clear and keep fingers away from the wheels while it runs. Be ready to stop the robot if it heads off the course.

If it doesn't work

Robot ignores the obstacle
- Check the sensor threshold and that the loop keeps reading the sensor, like the reliability work in Week 6.
Robot overshoots the zone
- Slow the drive speed or add a distance check before the stop - a speed-for-reliability trade-off.

Go further: Move the obstacle to a new spot and confirm the robot still reacts and stops.

Program the robot

Build a program from blocks, then run it on the simulator. On the kit path, use the same steps in your robot's app; unplugged, act the blocks out on a floor grid. Your program saves on this device.

Guided practice mission program

The autonomous practice program built from your flowchart: drive forward, a loop that keeps checking a sensor, a condition that reacts to an obstacle, and a safe stop at the zone.

Ready

Add a block

Events & execution

Movement

Control

Data

Output

Variables & counters

None yet.

Your program

  • Move
Column 1, row 1Column 2, row 1Column 3, row 1Column 4, row 1Column 1, row 2Column 2, row 2Column 3, row 2 — wallColumn 4, row 2Column 1, row 3Column 2, row 3Column 3, row 3Column 4, row 3Goal zone at column 4, row 2Robot at column 1, row 2
  • Robot (arrow points where it faces)
  • Goal zone (dashed outline)
  • Wall (grey, X mark)

Map: A 4 by 3 grid. The robot starts at column 1, row 2, facing right. The goal zone is at column 4, row 2. There is 1 wall.

Ready.

Ready to run. · 0 steps

Robot state

Column
1
Row
2
Facing
right
Distance ahead
1 cell
Touch
clear
On a line
no
Light
80
In goal zone
no
Collisions
0
Steps
0

Robot at column 1, row 2, facing right. Distance ahead: 1 cell. Touch: clear. Over a line: no. Light: 80. Not in the goal zone.

Log output

Nothing logged yet.

  • Heads up: This program has no safe stop behavior. Add a safe stop so the robot stops when it is done or blocked.

Predict

Commit to a guess before you test - then see how close you were. Your predictions save automatically.

How to check: Run the guided practice mission and compare what happens to each success criterion you wrote in your brief.

Test & improve

Practice mission vs its criteria

Run the guided practice mission from the same start each time. For each run, record what happened and check it against the success criteria in your brief.

Measure: Whether each success criterion was met, and what to change for the final project

RunReached the zone? (Y/N)Reacted to obstacle? (Y/N)Stopped safely? (Y/N)What to improve

Knowledge check

Answer these to check that you can plan an autonomous mission and read a flowchart.

  1. 1. A delivery robot drives to a drop-off zone by itself, using its sensors and program, with no one steering. This robot is:

  2. 2. 'The robot must reach the blue zone' and 'it has to finish in under 30 seconds'. Which is the requirement and which is the constraint?

  3. 3. In a flowchart, what does a diamond shape mean?

  4. 4. Your robot drives fast but sometimes misses its sensor reading and crashes. You slow it down so it reads reliably. This choice is an example of a:

  5. 5. Why does an autonomous robot need a safe stop in its program?

0 of 5 answered

Reflect

Your reflections save automatically.

Coming up next week

Next week is the final project - you'll design, build or simulate, program, test, and improve a robot that does one helpful mission of your choice, using exactly the planning you practiced today.

  • Keep your Mission Planning Brief and flowchart - you can reuse them or upgrade them for the final project.
  • Skim the five final-project missions (delivery, search-and-rescue, inspection, sorting, accessibility help) and think about which you'd pick.
  • Charge your kit or bookmark the simulator, and gather any cardboard and materials from earlier weeks.

Finish Week 7

Complete these to mark the week done and unlock the next one:

  • Complete the Mission Planning Brief with requirements, constraints, criteria, and a trade-off (not done yet)
  • Draw the mission flowchart with a decision diamond and a safe stop (not done yet)
  • Run the guided practice mission and record it against its criteria (not done yet)
  • Score at least 4 of 5 on the knowledge check (not done yet)
  • Write your reflection (not done yet)