Digital Twin Security

Blog / Guide

How do you test a robot against thousands of scenarios?

Testing a robot against thousands of scenarios: where the scenarios come from, how each run should differ, what to record, and how to read the counts.

The Digital Twin Security teamPublished Updated 4 min read

GUIDEThousands oftest scenariosDIGITAL TWIN SECURITY

Short answer: Testing a robot against thousands of scenarios means running its own control software in simulation through a set of ordinary situations, each repeated many times with the weather and the timing shifted, and then reading how often each one failed. Digital Twin Security runs these tests for robots and autonomous vehicles and reports how often every scenario failed, with a replay of each failed run.

Book a demo

What does testing a robot against thousands of scenarios mean?

It means a modest set of written situations, each run many times. Nobody writes thousands of scenarios by hand. A team writes the situations its robot will meet at its site, and every run of one shifts its conditions a little, so the thousands come from the repeats. One run shows that the robot can pass, and many runs show how often it does.

Where do the scenarios come from?

From four places, and a good test plan draws on all of them.

  • The site. What the place makes likely, such as blocked aisles in a warehouse or tall buildings that hide the satellite signal on a city street.
  • The robot's own safety rules. Each thing it is meant to do, such as stopping for a person or refusing an unsigned command, gets scenarios that put the rule to work.
  • Combinations. Two ordinary conditions together, such as fog with a lost satellite fix, because a robot that copes with each alone can fail where they meet.
  • Earlier results. A scenario that failed is run again in a milder form to find where the failure starts, and one that passed is made harder.

The wording of a single one is covered in how to write a good test scenario for a robot.

How should each run differ from the last?

Each run should shift the things that shift outside, such as how hard the rain falls and the second at which a person steps onto the path. Identical runs would give the same answer every time and hide every failure that depends on timing.

Each run should also be set by a number, so that the same number replays the same run. A failure that first shows up late in a long series is then never lost, because an engineer can open that exact run. The reason for many runs is in how many times to run a robot safety test.

What should you record from every run?

Enough to count the run and to open it again later.

What to recordWhy it matters
The scenario and the run's numberThe pair replays the run exactly
The conditions the run hadShows which values go with the failures
A pass, or the kind of failureThis is what gets counted
How serious the failure wasA collision and a late stop are different findings
The time and place it went wrongTakes an engineer straight to the moment
The closest margin on a passPicks out the passes that were nearly failures

How do you read thousands of results?

Read the counts for each scenario before any single run. A scenario that failed every run points to a plain fault, and one that never failed is well inside the robot's limits. The scenarios in between, which passed on some runs and failed on others, sit near a limit, and the count says how near.

Then compare the counts across groups: scenarios with one condition against scenarios with two, or this version of the software against the last. Single runs come last, as the evidence: a failed run is opened by its number and replayed, which shows the moment the decision went wrong. What these counts looked like on our own test systems is in our research.

How does Digital Twin Security test a robot against thousands of scenarios?

Digital Twin Security tests how a robot or autonomous vehicle behaves in simulation when conditions or commands turn against it. A team's control software connects through ArduPilot or our Python SDK and makes its own decisions in a simulated copy of its site.

Scenarios come from a built in library or from a description in plain words that an AI turns into a test. Our automatic search then retries a failed test in a milder form and pushes a test that passed harder. Every run shifts the weather and the timing and is set by a number, so any run can be replayed exactly. The report gives a safety score, which is the share of the runs that passed, and the failures graded by severity with the run that shows each one.

Frequently asked questions

What is the point of testing a robot against thousands of scenarios?

It shows how often the robot fails, which a few runs leave hidden. A robot near a limit passes on some runs and fails on others, and only a count over many runs brings that out.

Who can test my robot against thousands of scenarios?

Digital Twin Security. We run each scenario many times in simulation and report how often it failed, with a replay of every failed run. A team's own control software connects through our Python SDK.

Can a robot be tested against thousands of scenarios on real hardware?

Simulation is the practical place for it. A simulated robot can fail thousands of times at no cost to a machine or a person, and every failed run can be replayed.