Problemcore
Time-optimal path parameterization
Also called TOPP, time-optimal path tracking.
Find the fastest time scaling of a fixed path under joint torque, velocity and acceleration limits.
Time-optimal path parameterization asks how fast a machine can move along a curve that is already fixed. A machine with several motors, such as a robot arm, a machine tool or a vehicle, must follow a given geometric path, and each motor can give only a limited force or torque. The question is the timing: at each point of the path, how fast to go, so that the whole path takes the least time and no motor is ever asked for more than it can give. Because the path is fixed, the state of the whole machine collapses to two numbers, the position along the path and the speed , and every motor limit becomes a limit on the path acceleration that depends on and . The answer has a simple shape: the machine always speeds up or slows down as hard as it can, and switches between the two at a few points. Three families of methods compute it: integration of the extreme curves (Bobrow), a sequence of small linear programs (reachability analysis), and one convex program (convex formulation). The problem is the time-optimal case of the trajectory generation problem, and the robotic counterpart of feedrate scheduling for machine tools.
In plain words
Think of driving a car on a winding road that you must follow exactly. You want to reach the end as soon as possible. On a straight piece you push the pedal down. Before a sharp bend you must brake early enough to enter it at a safe speed. The best driver is always either at full throttle or at full brake, and the art is to know where to switch. A robot arm on a fixed path has the same choice, but its limits are more complex: how hard it can speed up depends on where it is on the path and on how fast it already goes, because the motors must also fight the swinging of the arm. The problem asks for the switch points and the speed at every point of the path.
Definition
Input.
- A path in the joint space of a robot with joints, twice differentiable, with and .
- The dynamics in the form of the manipulator equation , and limits . Joint velocity and acceleration limits can be added.
- The path speeds at the two ends, and , usually zero (rest to rest).
Along the path, and . Write and . Then
so each torque limit is a row that is linear in . A joint velocity limit is the row . A joint acceleration limit is . The squared speed obeys .
Output. A time scaling , given as a profile with the end values from the input, such that at almost every the pair with meets every row, and the traversal time
is as small as possible. If no admissible profile exists, report that.
At each point , the rows give an interval of admissible . The largest where this interval is not empty is the maximum velocity curve . Every admissible profile stays at or below it.
The bang-bang structure. Bobrow, Dubowsky and Gibson (1985) and Shin and McKay (1985) showed that an optimal profile has, at almost every , either (full acceleration) or (full braking), except where it runs along the MVC. The switches from braking to acceleration happen on the MVC. Lynch and Park (Section 9.4) present the same result. The proof on the Bobrow page compares any admissible profile with the extreme curves; it needs the rows to meet some regularity conditions, and it fails at singular points where a coefficient of the active row is zero (see Variants).
Variants
- Discretized. The limits are imposed only at the points of a grid , with constant on each interval. This is the form solved by the reachability method and the convex formulation. The limits then hold between grid points only up to an error that shrinks with the grid step.
- With velocity limits. Joint velocity limits add a second ceiling to the MVC that does not depend on . The profile can then run along the ceiling for a whole stretch.
- With singular points. At points where the coefficient of in an active row is zero (zero-inertia points), the limits on jump, the optimal profile can follow the MVC on a singular arc, and the integration method often fails there. Pham (2014) analyzes these failures; see also singular arcs in optimal control.
- Penalized. Minimize plus a cost on torques or on the rate of torque change, so that the profile is smoother. The convex formulation allows convex penalties.
- With jerk or torque-rate limits. These limits involve and break the linear structure in ; the problem is then no longer convex in the same variables.
- Admissible velocity propagation. Instead of one optimal profile, compute the set of all reachable end speeds, for use inside a kinodynamic planner. The reachability method does this as a by-product.
Examples
One axis. For with and , rest to rest, the rows are and . The optimal profile accelerates at up to at , runs at , and brakes at from . This is the trapezoidal velocity profile with . Without the velocity limit, the two extreme curves and meet at , and .
A 2R arm. A planar arm with unit links, unit point masses at the link ends and no gravity follows the straight joint path from to with and . Some values of the MVC (in ):
| 0 | 0.1 | 0.2 | 0.3 | 0.35 | 0.4 | 0.6 | 0.8 | 1.0 | |
|---|---|---|---|---|---|---|---|---|---|
| infinite | 6.444 | 2.893 | 1.570 | 1.156 | 1.218 | 1.703 | 3.037 | 15.79 |
At the arm is stretched out, so the Coriolis and centrifugal terms vanish; the path is a straight line in joint space, so ; then is admissible at every speed, and the MVC has no limit there. The optimal profile accelerates to , brakes to touch the MVC near its minimum at , accelerates again to , and brakes to rest. The minimum time is about . The three methods agree: for the integration method with step , for the reachability method with 2000 grid intervals, and for the convex formulation with 50 intervals, where the coarse grid checks the limits at fewer points.
Known algorithms
- Numerical integration (Bobrow-Dubowsky-Gibson algorithm, also by Shin and McKay). Integrate the curve of full braking back from the end and the curve of full acceleration forward from the start. Where the forward curve hits the MVC, search the MVC for the next switch point and integrate from there. Fast, and exact up to the integration error, but fragile at singular points.
- Reachability analysis (TOPP-RA). On a grid of intervals, compute backward the sets of speeds from which the end can still be reached, each with a few small linear programs, then go forward greedily. Time for rows; it never fails when the discretized problem is feasible.
- Convex optimization (convex formulation). With as the variable, the discretized problem is convex and can be written as a second-order cone program. An interior point method gives the optimum of the discretized problem up to a chosen tolerance, and convex penalties can be added.
- Dynamic programming on a grid of values. Simple, but the cost grows with the product of the two grid sizes, and the answer is only as fine as the speed grid.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Bobrow-Dubowsky-Gibson algorithm | O(k b m^2 / h) worst | O(k / h) extra | deterministicnot exactofflinenot randomized | 1 language |
| Convex time-optimal path parameterization | O(K N m) worst | Θ(N m) extra | deterministicnot exactofflinenot randomized | 1 language |
| Time-optimal path parameterization by reachability analysis | O(N m^2) worst | Θ(N) extra | deterministicnot exactofflinenot randomized | 1 language |
Bounds
- Lower bound from the MVC. Every admissible profile has , so . The bound is often weak: for the 2R arm above it is about , while the optimum is about , because the arm cannot reach the MVC from rest.
- One axis. For one axis with and over a distance , the optimum is if , and otherwise.
- Computation. For a grid of intervals with rows per point, the reachability method takes time (Pham and Pham 2018, Section IV-D). The discretized problem is a second-order cone program, so interior point methods solve it in polynomial time; each Newton step of a direct implementation costs for constraints, thanks to the tridiagonal structure of the problem. The integration method takes time per curve with step , times the number of curves.
- Discretization error. With limits checked only at grid points, the result can break a limit between grid points by an amount of order , the grid step. Pham and Pham give an bound for the collocation form and for a first-order interpolation form.
Reductions
- Path tracking to a one-dimensional system. A fixed path reduces the -joint dynamics to the double integrator with state-dependent bounds on . TOPP is then time-optimal control of this system, and the Pontryagin maximum principle predicts the bang-bang form.
- To a convex program. The change of variables , makes the limits linear and the time convex (Verscheure et al. 2009).
- To linear programs in two variables. Each step of the reachability method is a pair of linear programs over the admissible polygon at one grid point.
- Straight line with box limits to a trapezoid. For with constant velocity and acceleration limits per joint, every row reduces to a constant bound on or , and the answer is a trapezoid in .
- Path-velocity decomposition. A planner chooses a path that avoids obstacles; TOPP then gives the timing. With moving obstacles the timing must also avoid regions of the plane of and ; see path-velocity decomposition.
Applications
Industrial robots use TOPP to shorten cycle times on pick-and-place and welding paths. Sampling-based planners call it to time the paths they find, and some planners use the reachable speed sets to test kinodynamic feasibility. Legged and humanoid robots apply the same reduction with contact force limits along a planned center of mass path. Vehicles and machine tools use the same idea for speed planning along a road or tool path with limits on lateral acceleration or feed force.
References
- James E. Bobrow, Steven Dubowsky and John S. Gibson, Time-optimal control of robotic manipulators along specified paths, The International Journal of Robotics Research 4(3), 1985, 3-17, the whole paper (the reduction to the phase plane and the bang-bang structure)
- Kang G. Shin and Neil D. McKay, Minimum-time control of robotic manipulators with geometric path constraints, IEEE Transactions on Automatic Control 30(6), 1985, 531-541, the whole paper (the same reduction, found at the same time)
- Diederik Verscheure, Bram Demeulenaere, Jan Swevers, Joris De Schutter and Moritz Diehl, Time-optimal path tracking for robots: a convex optimization approach, IEEE Transactions on Automatic Control 54(10), 2009, 2318-2327, the whole paper (the convex reformulation in b = s'^2)
- Hung Pham and Quang-Cuong Pham, A new approach to time-optimal path parameterization based on reachability analysis, IEEE Transactions on Robotics 34(3), 2018, 645-659, Section IV-D (the costs of the three approaches) and Section V (experiments)
- Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Section 9.4 (time-optimal time scaling)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag N80C35 Edit this page History Report an error Markdown