A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Trajectory Planning and Motion Planning

Graduate Depth 99 in the knowledge graph ☐ I know this ☆ Set as goal
17topics build on this
376prerequisites beneath it
See this on the map →
The Robot Jacobian and Velocity ControlForward and Inverse Kinematics→→PID Control for Robot Actuators
trajectory-planning motion-planning path-planning joint-space-trajectory cartesian-space collision-avoidance

Core Idea

Trajectory planning computes a time-parameterized path through configuration space (joint space) that moves the robot from an initial configuration to a goal configuration while respecting joint limits, velocity limits, and acceleration limits. Path planning ignores time and finds a collision-free path geometrically; trajectory planning adds timing and ensures the path is dynamically feasible. Common approaches: sampling-based (RRT, PRM), search-based (A*), or analytical (polynomial splines). The trajectory must be smooth (continuous velocity) to avoid controller chattering and joint stress.

How It's Best Learned

Start with simple joint-space trajectories: connect two configurations with a cubic polynomial in joint space, verify joint limits are not violated, compute the trajectory in Cartesian space using forward kinematics to visualize it. Implement simple collision checking: discretize the path and test if any configuration intersects obstacles. Graduate to Cartesian-space trajectories: specify a start and goal pose, inverse kinematics at each point, then interpolate in joint space. Try a simple RRT planner in simulation.

Common Misconceptions

Explainer

Imagine your robot must move a part from a cluttered workbench to an assembly station. Simply specifying the starting and goal joint angles is not enough. The robot must physically move through the environment without hitting obstacles, and the motion must be smooth and efficient. This is the problem of trajectory planning.

Trajectory planning has two components: path planning (finding a collision-free route geometrically) and trajectory design (adding timing and smoothness). A path is a sequence of configurations with no concern for time. A trajectory is the same path with timing: θ(t), fully parameterized over time.

In joint-space planning, you find a path directly in configuration space (the space of all possible joint angles). A simple approach is to connect the start and goal configurations with a straight line in this space, then check whether any configuration along this line causes the robot to collide with obstacles. If there are obstacles, you need a more sophisticated approach.

Sampling-based motion planning (like RRT—Rapidly-exploring Random Trees) works by repeatedly sampling random configurations and trying to connect them to nearby configurations using simple local paths (straight lines in joint space). Over time, this builds a tree of connected configurations that explores the space. Once the tree connects the start to the goal, a path is found. The beauty of RRT is that it scales reasonably to high-dimensional spaces (6+ DOF) and handles arbitrary obstacle geometries without explicit computation of the free space. The downside is that it doesn't optimize the path quality, though variants like RRT* gradually improve the path as computation continues.

In Cartesian-space planning, you instead specify the desired end-effector path (e.g., a straight line from start to goal pose). You then solve inverse kinematics at many points along this path to get a sequence of joint configurations, and connect them smoothly in joint space. This approach is more intuitive (the robot moves in a straight line in 3D space) but is computationally more expensive because inverse kinematics must be solved repeatedly and may fail at some points.

Once you have a path, trajectory design adds timing. A naive approach would be to simply move at constant velocity along the path. However, this produces infinite accelerations at path transitions (kinks), which is mechanically infeasible and requires infinite actuator torque. Instead, you smooth the path with interpolating polynomials. A cubic polynomial in joint space—starting at θ₀, ending at θ_f, with zero velocity at both ends—automatically produces smooth motion with finite accelerations. More complex trajectories (multiple waypoints, time-optimal motions) use quintic polynomials or spline bases to ensure continuous acceleration.

The trajectory must satisfy joint limits: each joint has a maximum velocity (θ̇_max) and acceleration (θ̈_max). The trajectory design process checks these limits and scales the motion time accordingly if needed. If the trajectory would violate limits, you either extend the motion time or (for advanced planners) replan to a different path.

Collision checking is applied both to the path and the trajectory. Path checking tests whether intermediate configurations collide. Trajectory checking considers the continuous motion: as the robot moves from one configuration to another, does any link enter an obstacle? This is more conservative but necessary for fast motions where the detailed trajectory shape matters.

The field of motion planning is vast—there are dozens of algorithms for specific robot types, environments, and constraints. But the core idea is always the same: find a feasible, smooth path that respects the robot's kinematic and dynamic limits and avoids obstacles.

Practice Questions 2 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Vectors in Two Dimensions → Vectors in R^n → Scalar Multiplication of Vectors → Dot Product (Inner Product in R^n) → Matrix Multiplication → Determinants of 2×2 and 3×3 Matrices → Invertible Matrices and Matrix Inverses → Systems of Linear Equations and Matrix Form → Gaussian Elimination and Row Reduction → Row Echelon Form and Back Substitution → The Standard Matrix of a Linear Transformation → Forward and Inverse Kinematics → Denavit-Hartenberg Notation and Transformation Matrices → The Robot Jacobian and Velocity Control → Trajectory Planning and Motion Planning

Longest path: 100 steps · 376 total prerequisite topics

Prerequisites (2)

Leads To (1)