Robot Motion in Functions and Graphs: Tested in Webots
See how robot wheel motion fits proportional, inverse, linear, quadratic, exponential and log functions, and how each held up in our e-puck tests in Webots.

Summary
- A robot's motion can be written as a function: choose an input (time or wheel speed), and you get exactly one output (distance traveled). A graph shows the shape of the change at a glance.
- I tested proportional, inverse, linear, shifted, quadratic, exponential and log functions with the wheels of an e-puck robot in the Webots robot simulator. Every result matched the value predicted by the formula.
- For business use, predict with a formula first, then run the robot and measure the gap as a percentage. This lets you explain the motion of serving robots, transport robots and conveyors in numbers.
When a company brings a robot into its operations, it often wants answers before anything moves. "At this speed, how many seconds until it arrives?" "How far will it go before it stops?" Functions and graphs answer these questions. Below, I go through the functions most often used to describe robot motion, one by one. After that, I show what happened when I ran the wheels of a small robot called e-puck in the Webots simulator and compared the results with the values predicted by each formula. There are no math proofs and no programming here. Worked examples with numbers explain each idea.
Function Basics: Variables, Constants, Inputs and Outputs
A function is a relationship where choosing one input gives exactly one output. For a robot, if the input is "time driven," the output is "distance traveled."
In a formula, a value that changes from case to case is a variable, and a value that stays the same is a constant. The e-puck's wheel radius of 0.02 m is a constant. The driving time and the wheel speed are variables.
Wheel speed is given in rad/s, which means how many radians the wheel turns per second. For an explanation of rad and rad/s, see robot units such as radians and torque. The robot's travel speed (m/s) is wheel radius × wheel speed. For example, if the wheels turn at 5.0 rad/s, then 0.02 × 5.0 = 0.1, so the robot moves 0.1 m per second.
According to the Webots documentation, the e-puck's maximum wheel speed is 6.28 rad/s. Each motor also has a speed limit (maxVelocity), and you cannot set a speed above that limit. This limit ties into the domain, which comes up later.
Proportional: Twice the Time, Twice the Distance
In a proportional relationship, when the input doubles, the output doubles too. The formula has the form "output = a × input," and the graph is a straight line through the origin (the point where both values are 0). Here, a is the slope of the line.
If the e-puck's wheels turn at 1.0 rad/s, the robot moves 0.02 × 1.0 = 0.02 m per second. In 2.0 seconds it goes 0.02 × 2.0 = 0.04 m. At a wheel speed of 2.0 rad/s for 2.0 seconds, it goes 0.02 × 2.0 × 2.0 = 0.08 m. With the time held constant, distance is proportional to wheel speed.
Example at a Japanese company in the Philippines: a serving robot in a restaurant (hypothetical)
Picture a serving robot that moves at 0.5 m/s. In 10 seconds it goes 0.5 × 10 = 5, or 5 m. In 20 seconds it goes 0.5 × 20 = 10, or 10 m. Twice the time means twice the distance, so if you know the distance to a table, you can work out how long the food will take to arrive.
Inverse: The Faster It Goes, the Less Time It Takes
In an inverse relationship, doubling one value cuts the other in half. Multiplying the two always gives the same number. The graph is a curve that does not pass through the origin.
Take the time the e-puck needs to cover 0.12 m. At a wheel speed of 1.0 rad/s, it takes 6.0 seconds. At 2.0 rad/s, it takes 3.0 seconds. At 3.0 rad/s, 2.0 seconds, and at 4.0 rad/s, 1.5 seconds. Wheel speed × time comes to 6.0 every time.
Example at a Japanese company in the Philippines: a transport robot in a warehouse (hypothetical)
Picture a transport robot running down a 100 m aisle. At 1 m/s it takes 100 ÷ 1 = 100, or 100 seconds. At 2 m/s it takes 100 ÷ 2 = 50, or 50 seconds. Speed × time is 1 × 100 = 100 and 2 × 50 = 100, so both come to 100. With this relationship, you can calculate how many seconds you save by raising the speed.
Linear Functions: Slope and Intercept
A linear function has the form "output = a × input + b." Its graph is a straight line.
- Slope (a): how much the output grows when the input goes up by 1
- Intercept (b): the output when the input is 0, which is where the graph crosses the vertical axis
Say the e-puck waits 1.0 second and then drives with its wheels at 5.0 rad/s (0.1 m/s). At the 4-second mark, its position is 0.1 × (4 − 1) = 0.3, or 0.3 m. Written as a formula, this motion has a slope of 0.1 and an intercept of −0.1. The intercept is negative because the start was 1.0 second late, so the line sits lower by the distance the robot would have covered in that second. To learn how to rearrange a formula to find the value you need, see robot math and rearranging equations.
Shifting a Graph: A Delay Moves It to the Right
Shifting a graph means moving it without changing its shape. Writing "input − p" in the formula moves it right by p, and adding "+ q" moves it up by q.
Take the same e-puck and change the wait from 1.0 second to 2.0 seconds. At the 4-second mark, its position is 0.1 × (4 − 2) = 0.2, or 0.2 m. The slope stays at 0.1, and only the intercept changes, to −0.2. The graph keeps its shape and moves 1 second to the right.
Example at a Japanese company in the Philippines: a factory conveyor (hypothetical)
Say a conveyor runs at 0.2 m/s, and packages start moving 5 seconds late. After 20 seconds, the position is 0.2 × (20 − 5) = 3, or 3 m. With a 10-second delay, it is 0.2 × (20 − 10) = 2, or 2 m. Once you know the delay, the same formula gives the shifted position.
Quadratic Functions: With Acceleration, Distance Grows with Time Squared
A quadratic function multiplies the input by itself, as in "output = a × input × input." Its graph is a curve that gets steeper and steeper (a parabola).
If the e-puck's wheels accelerate at 1.0 rad/s², the robot's acceleration is 0.02 m/s². The distance traveled is "½ × 0.02 × time × time." That gives 0.01 m at 1.0 second and 0.04 m at 2.0 seconds. At 3.0 seconds it is 0.09 m, and at 4.0 seconds it is 0.16 m. When the time doubles, the distance becomes four times larger.
Domain and range
The domain is the set of inputs you are allowed to put into a formula. The range is the set of outputs you get from those inputs.
The e-puck's wheel speed has a limit of 6.28 rad/s. Accelerating at 1.0 rad/s², the wheels reach that limit after 6.28 seconds (6.28 ÷ 1.0 = 6.28). At that point, the robot's speed is 0.02 × 6.28 = 0.1256, or 0.1256 m/s. So the acceleration formula holds from 0 to 6.28 seconds, and that is its domain. The distance covered in that time is ½ × 0.02 × 6.28 × 6.28 = 0.3944, so the range is 0 to 0.3944 m. After the limit, the robot stops accelerating, and the same formula no longer applies.
Example at a Japanese company in the Philippines: a delivery cart (hypothetical)
Picture a cart that accelerates at 0.5 m/s². In 4 seconds it goes ½ × 0.5 × 4 × 4 = 4, or 4 m. If its top speed is 2 m/s, it can accelerate for at most 4 seconds (2 ÷ 0.5 = 4). A speed limit sets the time range (domain) where the formula applies.
Exponents and Logarithms: Slowing Down by Halves
An exponent means multiplying the same number many times. A logarithm works the other way: it tells you how many times you multiplied to reach a number. For example, 2 × 2 × 2 × 2 = 16 (four 2s multiplied together), so we write log2(16) = 4.
Start the e-puck's wheels at 4.0 rad/s and halve the speed every 1.0 second. The speed drops 4.0 → 2.0 → 1.0 → 0.5 → 0.25 rad/s. After 4 seconds, the speed is 4 × 0.5 × 0.5 × 0.5 × 0.5 = 0.25. A logarithm tells you how many seconds it takes to get down to 0.25 rad/s. Since 4 ÷ 0.25 = 16, and 2 multiplied 4 times is 16, the answer is 4 seconds. The graph is a curve that drops sharply at first and then flattens out.
Example at a Japanese company in the Philippines: slowing down in a warehouse (hypothetical)
Say a warehouse robot slows down by halving its speed every second. Starting from a speed of 100 (in any unit), after 3 seconds it is 100 × 0.5 × 0.5 × 0.5 = 12.5. Once you know how many times the speed is halved, you can calculate the speed at any second.
Change the Numbers and Watch the Graph Change
With the widget below, you can pick a type of function and change the values of a, p and q to see how the graph's shape and position change.
| x = 0 | y = 0 |
| x = 1 | y = 1 |
| x = 2 | y = 2 |
| x = 3 | y = 3 |
| x = 4 | y = 4 |
dotted: before shifting / solid: after shifting
For example, try these:
- In proportional mode, change a from 1 to 2, and the line gets steeper
- In proportional mode, change p from 1 to 2, and the line keeps its shape and moves to the right
- In quadratic mode, raise a, and the curve rises sooner
Results from Checking the Predictions in Webots
I ran the e-puck in Webots to check everything covered so far.
How the tests were run
At PH AI Works, before a robot moves, we calculate a prediction with a formula, run the test, and measure the gap as a percentage. The pass threshold is a gap of 5% or less. The approach of setting the prediction, conditions, records and success criteria in advance is covered in Robot Experiment Basics. Data goes into a database together with its sources, and Python handles the calculations. AI only writes the text.
The test conditions were:
- Simulator: Webots R2025a
- Robot: e-puck (wheel radius 0.02 m)
- basicTimeStep: 20 ms (the length of time Webots advances the simulation in one step, in milliseconds)
- Motor speed limit: 6.28 rad/s
First run
| Test | Conditions | Result |
|---|---|---|
| A Proportional | Drive 2.0 seconds. Wheels at 1.0/2.0/3.0/4.0 rad/s | 0.04/0.08/0.12/0.16 m. Slope 0.04, intercept 0.0. Matched the prediction |
| B Inverse | Drive 0.12 m. Wheels at 1.0/2.0/3.0/4.0 rad/s | 6.0/3.0/2.0/1.5 seconds. Speed × time was 6.0 in every case. Matched the prediction |
| C Linear and shift | Wait 1.0 second, then 5.0 rad/s (0.1 m/s) | From 0.05 m at 1.5 seconds to 0.3 m at 4.0 seconds. Slope 0.1, intercept −0.1. Matched the prediction |
| D Quadratic | Accelerate at 1.0 rad/s² (0.02 m/s²) | 0.01/0.04/0.09/0.16 m at 1.0/2.0/3.0/4.0 seconds. Domain 6.28 seconds, range 0.39438 m. Matched the prediction |
| E Exponent and log | Start at 4.0 rad/s, halve every 1.0 second, down to 0.25 rad/s | 4.0 seconds to reach 0.25 rad/s (log2(4/0.25) = 4). Positions after each 1.0-second step: 0.05771/0.08656/0.10099/0.1082 m. Matched the predicted 0.1082 m |
First run. In test A (proportional), "distance ÷ speed" was 0.04 in every case. In test B (inverse), "speed × time" was 6.0 in every case.
First run. In tests C, D and E, the measured position ("position") came out the same as the prediction ("predicted").
Second run with one condition changed
In the second run, I changed only the wait (the shift time) in test C, from 1.0 second to 2.0 seconds. Every other condition stayed the same. When you change just one condition, it is easier to tell which condition caused a difference in the results.
| Time | Position |
|---|---|
| Up to 2.0 seconds | 0.0000 m |
| 2.5 seconds | 0.05 m |
| 3.0 seconds | 0.1 m |
| 3.5 seconds | 0.15 m |
| 4.0 seconds | 0.2 m |
The results matched the prediction. The slope stayed at 0.1, and the intercept came out at −0.2, as predicted. Tests A, B, D and E gave the same values as in the first run. This confirmed that changing the wait only moves the graph to the right and does not change its shape.
Second run. The position stayed at 0 up to 2.0 seconds, with a slope of 0.1 and an intercept of −0.2.
FAQ
Q: What changes in a robot rollout if you understand functions and graphs?
Before the robot moves, you can predict distance, time and stopping position with a formula. At PH AI Works, we compare the gap between prediction and result in %, and count anything within 5% as a pass. If you set the criteria in advance, you will not hesitate when you see the results.
Q: Where is shifting a graph used on the job?
When the start of a motion is delayed. Examples include "the conveyor started 5 seconds late," "the serving robot waited to receive the food" or "the transport robot stopped before entering the aisle." Shift the graph to the right by the delay, and the same formula gives you the position.
Q: How does a motor speed limit change the calculation?
It sets the time range (domain) where the acceleration formula applies. If the e-puck accelerates at 1.0 rad/s², it reaches the 6.28 rad/s limit at 6.28 seconds. So you use the acceleration formula from 0 to 6.28 seconds, and a different formula after that.
Q: What robot calculations use logarithms?
When a robot cuts its speed by a fixed ratio, a logarithm tells you how many seconds it takes to reach the target speed. If the speed starts at 4.0 rad/s and is halved every second, reaching 0.25 rad/s takes log2(4/0.25) = 4, or 4 seconds.
Conclusion
A robot's motion can be described with proportional, inverse, linear, shifted, quadratic, exponential and log functions. In the Webots tests with the e-puck, every result matched the value predicted by the formula. In the second run, where only the wait changed, the graph simply moved to the right, and the slope stayed the same.
The same steps help when you bring robots or automation into your business: predict with a formula first, then run it and measure the gap as a percentage. PH AI Works is based in Manila, Philippines, and helps small and mid-sized businesses with AI adoption, business automation and web development. If you are considering robots or automation, you are welcome to book a free consultation.
References
About the author

Founder / AI Engineer (36+ years in IT)
- ●From Tokyo · based in Manila for 13+ years
- ●36+ years in IT (development, SEO, AI)
- ●Google Certified AI Professional
- ●IBM Certified Generative AI Engineer
- ●AI chatbots, RAG & AI agent development
- ●Physical AI Engineer
A Japanese AI engineer with 36+ years in IT and 13+ years on the ground in the Philippines. I write from hands-on experience to help Japanese companies adopt AI that actually delivers results — chatbots, workflow automation, AI agents, and AI-driven marketing. Feel free to reach out in Japanese or English.
Your Competitors Are Already Using AI!
Is your business keeping up?
Related Articles

Webots Simulation Tutorial: Basics and Ground Truth Checks
Learn the basics of a Webots simulation: worlds, robots, controllers, time steps, sensors and Supervisor, and how I test wheel odometry against the true values.
11/24/2026

Robot Math Equations: 8 High School Topics Tested in Webots
Moving a robot precisely comes down to rearranging high school equations. Learn 8 math topics using position, speed and time, with real results from Webots.
11/17/2026

Robot Units Explained: Radians, Torque and Power
Learn the units in robot spec sheets: m/s, radians, rad/s, torque in N·m and power in W, with worked examples and a robot simulator test.
11/16/2026

Robot Experiment Basics: 5 Things to Decide Before You Start
Before a robot experiment, decide five things: your prediction, the one thing you will change, what to record, success criteria and how many times to run it.
11/16/2026
