S-Curve Profiles: Adding a Jerk Limit
In a trapezoidal profile the acceleration jumps at four places: at the start and the end of each ramp. Each jump is a jerk (
The S-curve (or seven-segment) profile removes the jumps. It has a third limit,
A robot arm that is told only where to go tries to be there at once. Its motors cannot do that, so the arm shakes, a box slips from the gripper, or a cup of liquid spills. A path says where the arm goes. A trajectory says where and when: it gives the position at every moment, and so it fixes the speed and the acceleration too. This lesson shows how to choose that timing for a warehouse arm that moves boxes from a shelf to a conveyor, so that every motion is one the motors can make. #TrajectoryPlanning #MotionControl #Robotics
By the end of this lesson, you will be able to:
A warehouse robot must pick boxes from storage shelves and place them on a conveyor belt. Its arm has six joints (six degrees of freedom, 6-DOF) and stands on a mobile base. Motion that jerks makes the gripper drop boxes, damages products and wears the motors and gears early. The arm must reach boxes at different shelf heights, keep clear of the shelf edges, and finish one pick and one place in under 8 seconds. That time is the cycle time.
Three quantities describe the motion of a joint. Velocity is how fast the angle changes, in degrees per second (deg/s). Acceleration is how fast the velocity changes, in deg/s². Jerk is how fast the acceleration changes.
A motor cannot change its velocity in no time. That would need an acceleration without limit, and so a torque without limit. A trajectory that asks for it gets vibration, an arm that falls behind the plan, and stress in the gears.
A standing passenger in a bus feels the same thing: a steady speed, however high, is easy, but a sharp start or stop (a sudden change of acceleration) throws them. A box in a gripper is that passenger. So a good trajectory has a velocity with no jumps, and for a fragile load an acceleration with no jumps.
A motion can be planned in two places. Joint space is the set of joint angles of the arm. Task space (also called Cartesian space) is the position and orientation of the gripper, in meters along x, y and z. Planning means interpolating: finding the values between a start and a goal.
How it works: Take the joint angles at the start,
Advantages:
Disadvantages:
Best for: moves where only the start and the end matter, such as the long move from the shelf to the conveyor.
How it works: Take the pose of the gripper at the start,
Advantages:
Disadvantages:
Best for: motions where the path matters, such as a vertical descent onto a box.
The simplest trajectory moves the joint at one constant velocity from start to goal. Call the joint position
The velocity
A move of
To start and stop at rest, the trajectory must meet four conditions: the position and the velocity at the start, and the position and the velocity at the end. A cubic polynomial has four coefficients,
Its velocity
The four conditions are called boundary conditions. For a motion from rest at
Each condition gives one equation. At
and
The two conditions at
With numbers. A joint moves from
The velocity is highest at the middle of the move,
Starting from the four equations:
Substituting
From the velocity equation:
Substituting into the position equation:
And therefore:
The cubic leaves a jump in acceleration at each end, and a fragile load feels it. A quintic (5th-degree) polynomial has six coefficients, so it can meet six conditions: position, velocity and acceleration at both ends. With the acceleration set to zero at both ends, the push on the load grows from nothing and returns to nothing.
For a motion from rest to rest with zero acceleration at both ends (
A polynomial is given a duration, and its peak velocity and acceleration follow from it. A motor works the other way round: given its largest velocity
For a move of size
Phase 1: Acceleration (
Phase 2: Cruise (
Phase 3: Deceleration (
The times follow from the limits. The time to speed up,
With numbers. A joint must move
No trajectory can make this move in less than 2.0 s with this motor. The cubic for the same move in 2.0 s needed 67.5 deg/s and 135 deg/s², which are both above the limits.
S-Curve Profiles: Adding a Jerk Limit
In a trapezoidal profile the acceleration jumps at four places: at the start and the end of each ramp. Each jump is a jerk (
The S-curve (or seven-segment) profile removes the jumps. It has a third limit,
Beyond Trapezoidal: TOPP for Time-Optimal Paths
The trapezoidal profile is the fastest motion for one joint at a time. When a whole arm follows a path in task space, a different joint reaches its limit at each point of the path. Finding the fastest timing along a fixed path under all the limits together is called Time-Optimal Path Parameterization (TOPP).
A widely used method is TOPP-RA (Pham & Pham, 2017). It is available in toppra (Python), Drake, and as the contopp option in MATLAB’s Robotics System Toolbox.
Often the arm must pass through several points on the way, called waypoints or via points (for example, a row of shelf locations). A separate rest-to-rest cubic between each pair of points would make the arm stop at every point. A cubic spline joins the cubics so that the arm passes through each point without stopping.
For
Add rest at the two ends,
When the times of the via points are given but their velocities are not, a common rule is to give each inner via point the average of the two straight-line velocities on either side of it:
If the two adjacent segments have opposite signs (the joint reverses direction), the via-point velocity is set to zero.
A pick-and-place operation is a chain of segments, each with its own kind of trajectory. Each segment starts at the position where the one before it ended. The home configuration is the pose where the arm waits between cycles.
Move to approach position A joint-space cubic from the home configuration to a position above the box. This is a large move through free space, and the path of the gripper does not matter.
Descend to object A straight vertical line in task space, from the approach position down to the grasp position, with IK at each step. The gripper meets the box from directly above.
Grasp The arm holds still while the gripper closes. This pause is called a dwell, typically 200 to 500 ms.
Lift A straight vertical line in task space, up to a safe height above the shelf, so that the box does not catch the shelf edge.
Transport A joint-space move from above the shelf to above the conveyor. It is the longest segment, so it uses a trapezoidal velocity profile, the fastest the motors allow.
Lower to placement A straight vertical line in task space, down to the place position on the conveyor.
Release The gripper opens. Dwell: 200 to 500 ms.
Return home A joint-space move to the home configuration, ready for the next cycle.
A full stop at every via point wastes time. Blending rounds the corner: the arm passes near the via point, not exactly through it, and does not stop. The robot gives up a little accuracy of the path and gains cycle time.
A common method sets a blend radius
For the task-space segments (descent, lift, placement) the gripper must follow a straight line, but the motors turn joints. The link between the two is the Jacobian
An arm with more joints than the task needs (a redundant arm) has no ordinary inverse, and uses the pseudoinverse
The straight line is cut into small steps, and at each step the joint values come from IK or from the formula above.
What If the Cartesian Path Is Infeasible?
A straight line for the gripper can ask for joint velocities above the motor limits. This occurs near the edge of the workspace and near a singularity, where a small motion of the gripper needs a large motion of the joints. So check a task-space trajectory before it runs. Step along the path at the planned speed, calculate [-v_max, v_max] and every joint acceleration within [-a_max, a_max].
If a step breaks a limit, there are three remedies:
If the controller is given velocities the motors cannot reach, the robot falls behind the plan, or the safety limits of the controller stop the motion in the middle of the task.
import numpy as npimport matplotlib.pyplot as plt
def cubic_trajectory(q0, qf, tf, dt=0.01): """Generate a cubic polynomial rest-to-rest trajectory.
Parameters ---------- q0 : float Start position (rad or m). qf : float End position (rad or m). tf : float Duration (s). dt : float Time step (s).
Returns ------- t : ndarray Time vector. q : ndarray Position profile. qd : ndarray Velocity profile. qdd : ndarray Acceleration profile. """ # Compute coefficients a0 = q0 a1 = 0.0 a2 = 3.0 * (qf - q0) / tf**2 a3 = -2.0 * (qf - q0) / tf**3
t = np.arange(0, tf + dt, dt) q = a0 + a1 * t + a2 * t**2 + a3 * t**3 qd = a1 + 2 * a2 * t + 3 * a3 * t**2 qdd = 2 * a2 + 6 * a3 * t
return t, q, qd, qdd
def quintic_trajectory(q0, qf, tf, dt=0.01): """Generate a quintic polynomial rest-to-rest trajectory.
Parameters ---------- q0, qf : float Start and end positions. tf : float Duration (s). dt : float Time step (s).
Returns ------- t, q, qd, qdd : ndarray Time, position, velocity, acceleration. """ a0 = q0 a1 = 0.0 a2 = 0.0 a3 = 10.0 * (qf - q0) / tf**3 a4 = -15.0 * (qf - q0) / tf**4 a5 = 6.0 * (qf - q0) / tf**5
t = np.arange(0, tf + dt, dt) q = a0 + a1*t + a2*t**2 + a3*t**3 + a4*t**4 + a5*t**5 qd = a1 + 2*a2*t + 3*a3*t**2 + 4*a4*t**3 + 5*a5*t**4 qdd = 2*a2 + 6*a3*t + 12*a4*t**2 + 20*a5*t**3
return t, q, qd, qdd
# === Example: Joint 1 moves from 0 to 90 degrees in 2 seconds ===q0 = 0.0qf = np.radians(90)tf = 2.0
t_c, q_c, qd_c, qdd_c = cubic_trajectory(q0, qf, tf)t_q, q_q, qd_q, qdd_q = quintic_trajectory(q0, qf, tf)
fig, axes = plt.subplots(3, 1, figsize=(10, 8), sharex=True)
# Positionaxes[0].plot(t_c, np.degrees(q_c), 'b-', label='Cubic', linewidth=2)axes[0].plot(t_q, np.degrees(q_q), 'r--', label='Quintic', linewidth=2)axes[0].set_ylabel('Position (deg)')axes[0].legend()axes[0].set_title('Cubic vs Quintic Polynomial Trajectory')axes[0].grid(True, alpha=0.3)
# Velocityaxes[1].plot(t_c, np.degrees(qd_c), 'b-', label='Cubic', linewidth=2)axes[1].plot(t_q, np.degrees(qd_q), 'r--', label='Quintic', linewidth=2)axes[1].set_ylabel('Velocity (deg/s)')axes[1].legend()axes[1].grid(True, alpha=0.3)
# Accelerationaxes[2].plot(t_c, np.degrees(qdd_c), 'b-', label='Cubic', linewidth=2)axes[2].plot(t_q, np.degrees(qdd_q), 'r--', label='Quintic', linewidth=2)axes[2].set_ylabel('Acceleration (deg/s²)')axes[2].set_xlabel('Time (s)')axes[2].legend()axes[2].grid(True, alpha=0.3)
plt.tight_layout()plt.savefig('cubic_vs_quintic_trajectory.png', dpi=150)plt.show()
print(f"Cubic - peak velocity: {np.degrees(max(qd_c)):.1f} deg/s")print(f"Quintic - peak velocity: {np.degrees(max(qd_q)):.1f} deg/s")print(f"Cubic - peak accel: {np.degrees(max(abs(qdd_c))):.1f} deg/s²")print(f"Quintic - peak accel: {np.degrees(max(abs(qdd_q))):.1f} deg/s²")import numpy as npimport matplotlib.pyplot as plt
def trapezoidal_profile(q0, qf, v_max, a_max, dt=0.001): """Generate a trapezoidal velocity profile trajectory.
Parameters ---------- q0, qf : float Start and end positions. v_max : float Maximum velocity. a_max : float Maximum acceleration (and deceleration). dt : float Time step (s).
Returns ------- t, q, qd, qdd : ndarray Time, position, velocity, acceleration arrays. """ dq = qf - q0 sign = np.sign(dq) dq = abs(dq)
# Check if we can reach v_max if dq < v_max**2 / a_max: # Triangular profile: cannot reach v_max v_peak = np.sqrt(a_max * dq) t_a = v_peak / a_max t_c = 0.0 t_d = t_a else: # Trapezoidal profile t_a = v_max / a_max t_c = dq / v_max - v_max / a_max t_d = t_a v_peak = v_max
t_f = t_a + t_c + t_d t = np.arange(0, t_f + dt, dt)
q = np.zeros_like(t) qd = np.zeros_like(t) qdd = np.zeros_like(t)
for i, ti in enumerate(t): if ti <= t_a: # Acceleration phase qdd[i] = a_max qd[i] = a_max * ti q[i] = 0.5 * a_max * ti**2 elif ti <= t_a + t_c: # Cruise phase dt_cruise = ti - t_a qdd[i] = 0.0 qd[i] = v_peak q[i] = 0.5 * a_max * t_a**2 + v_peak * dt_cruise else: # Deceleration phase dt_decel = ti - t_a - t_c qdd[i] = -a_max qd[i] = v_peak - a_max * dt_decel q[i] = (0.5 * a_max * t_a**2 + v_peak * t_c + v_peak * dt_decel - 0.5 * a_max * dt_decel**2)
# Apply direction and offset q = q0 + sign * q qd = sign * qd qdd = sign * qdd
return t, q, qd, qdd
# === Example: Joint moves 90 degrees with actuator limits ===q0 = 0.0qf = np.radians(90)v_max = np.radians(60) # 60 deg/s max velocitya_max = np.radians(120) # 120 deg/s² max acceleration
t, q, qd, qdd = trapezoidal_profile(q0, qf, v_max, a_max)
fig, axes = plt.subplots(3, 1, figsize=(10, 8), sharex=True)
axes[0].plot(t, np.degrees(q), 'b-', linewidth=2)axes[0].set_ylabel('Position (deg)')axes[0].set_title('Trapezoidal Velocity Profile Trajectory')axes[0].grid(True, alpha=0.3)
axes[1].plot(t, np.degrees(qd), 'g-', linewidth=2)axes[1].axhline(y=np.degrees(v_max), color='r', linestyle='--', alpha=0.5, label='v_max')axes[1].set_ylabel('Velocity (deg/s)')axes[1].legend()axes[1].grid(True, alpha=0.3)
axes[2].plot(t, np.degrees(qdd), 'm-', linewidth=2)axes[2].axhline(y=np.degrees(a_max), color='r', linestyle='--', alpha=0.5, label='a_max')axes[2].axhline(y=-np.degrees(a_max), color='r', linestyle='--', alpha=0.5)axes[2].set_ylabel('Acceleration (deg/s²)')axes[2].set_xlabel('Time (s)')axes[2].legend()axes[2].grid(True, alpha=0.3)
plt.tight_layout()plt.savefig('trapezoidal_profile.png', dpi=150)plt.show()
t_a_val = np.degrees(v_max) / np.degrees(a_max)print(f"Acceleration time: {t_a_val:.3f} s")print(f"Total time: {t[-1]:.3f} s")print(f"Peak velocity: {np.degrees(max(qd)):.1f} deg/s")import numpy as npimport matplotlib.pyplot as plt
def cubic_trajectory(q0, qf, tf, dt=0.01): """Cubic polynomial rest-to-rest trajectory.""" a0 = q0 a2 = 3.0 * (qf - q0) / tf**2 a3 = -2.0 * (qf - q0) / tf**3 t = np.arange(0, tf + dt, dt) q = a0 + a2 * t**2 + a3 * t**3 qd = 2 * a2 * t + 3 * a3 * t**2 return t, q, qd
def plan_pick_and_place(): """Plan a complete pick-and-place trajectory for a 3-joint planar arm.
Phases: 1. Home -> Approach (joint-space cubic) 2. Approach -> Grasp position (task-space vertical descent, simulated as joint-space) 3. Dwell for grasping 4. Grasp position -> Lift (vertical ascent) 5. Lift -> Above conveyor (joint-space cubic, transport) 6. Above conveyor -> Place position (vertical descent) 7. Dwell for release 8. Place position -> Home (joint-space cubic) """
# Joint configurations (radians) for a 3-joint planar arm # [shoulder, elbow, wrist] q_home = np.array([0.0, 0.0, 0.0]) q_approach = np.array([0.5, -0.8, 0.3]) # above the box on shelf q_grasp = np.array([0.6, -1.0, 0.4]) # at the box (descended) q_lift = np.array([0.5, -0.8, 0.3]) # lifted above shelf q_above_cv = np.array([-0.4, -0.6, 0.2]) # above conveyor q_place = np.array([-0.35, -0.75, 0.25]) # at conveyor (descended)
# Phase durations (seconds) t_move_to_approach = 1.5 t_descend = 0.6 t_grasp_dwell = 0.3 t_lift = 0.6 t_transport = 2.0 t_lower = 0.6 t_release_dwell = 0.3 t_return = 1.5
all_t = [] all_q = [[], [], []] # one list per joint all_labels = [] t_offset = 0.0
phases = [ ("Move to approach", q_home, q_approach, t_move_to_approach), ("Descend", q_approach, q_grasp, t_descend), ("Grasp (dwell)", q_grasp, q_grasp, t_grasp_dwell), ("Lift", q_grasp, q_lift, t_lift), ("Transport", q_lift, q_above_cv, t_transport), ("Lower", q_above_cv, q_place, t_lower), ("Release (dwell)", q_place, q_place, t_release_dwell), ("Return home", q_place, q_home, t_return), ]
for name, q_start, q_end, duration in phases: for j in range(3): t_seg, q_seg, _ = cubic_trajectory(q_start[j], q_end[j], duration) if len(all_t) > 0 and j == 0: # Offset time for this phase pass all_q[j].extend(q_seg + 0 if len(all_q[j]) == 0 else q_seg.tolist())
t_seg, _, _ = cubic_trajectory(0, 0, duration) all_t.extend((t_seg + t_offset).tolist()) all_labels.append((t_offset, t_offset + duration, name)) t_offset += duration
# Rebuild cleanly # (The loop above was a first attempt. The lists are emptied and filled again here.) all_t = [] all_q = [[], [], []] t_offset = 0.0
for name, q_start, q_end, duration in phases: t_seg = np.arange(0, duration + 0.01, 0.01) for j in range(3): _, q_seg, _ = cubic_trajectory(q_start[j], q_end[j], duration) all_q[j].extend(q_seg.tolist()) all_t.extend((t_seg + t_offset).tolist()) t_offset += duration
all_t = np.array(all_t) all_q = [np.array(q) for q in all_q]
# Plot fig, axes = plt.subplots(3, 1, figsize=(14, 10), sharex=True) joint_names = ['Shoulder', 'Elbow', 'Wrist'] colors = ['#2196F3', '#FF5722', '#4CAF50']
for j in range(3): axes[j].plot(all_t, np.degrees(all_q[j]), color=colors[j], linewidth=2) axes[j].set_ylabel(f'{joint_names[j]} (deg)') axes[j].grid(True, alpha=0.3)
# Add phase annotations phase_colors = ['#E3F2FD', '#FFF3E0', '#FFEBEE', '#E8F5E9', '#F3E5F5', '#FFF3E0', '#FFEBEE', '#E3F2FD'] t_start = 0.0 for i, (name, _, _, duration) in enumerate(phases): for j in range(3): axes[j].axvspan(t_start, t_start + duration, alpha=0.15, color=phase_colors[i % len(phase_colors)]) axes[2].text(t_start + duration / 2, axes[2].get_ylim()[0] + 2, name, ha='center', va='bottom', fontsize=7, rotation=45) t_start += duration
axes[0].set_title('Complete Pick-and-Place Joint Trajectories') axes[2].set_xlabel('Time (s)')
plt.tight_layout() plt.savefig('pick_and_place_trajectory.png', dpi=150) plt.show()
total_time = sum(d for _, _, _, d in phases) print(f"Total cycle time: {total_time:.1f} s") print(f"\nPhase breakdown:") for name, _, _, duration in phases: print(f" {name}: {duration:.1f} s")
plan_pick_and_place()import numpy as npimport matplotlib.pyplot as plt
def linear_interp(q0, qf, tf, dt=0.01): """Linear interpolation (discontinuous velocity).""" t = np.arange(0, tf + dt, dt) q = q0 + (qf - q0) * t / tf qd = np.full_like(t, (qf - q0) / tf) qdd = np.zeros_like(t) # Mark discontinuities at endpoints qdd[0] = float('inf') qdd[-1] = float('inf') return t, q, qd, qdd
def cubic_interp(q0, qf, tf, dt=0.01): """Cubic polynomial (continuous velocity, discontinuous acceleration).""" a2 = 3.0 * (qf - q0) / tf**2 a3 = -2.0 * (qf - q0) / tf**3 t = np.arange(0, tf + dt, dt) q = q0 + a2 * t**2 + a3 * t**3 qd = 2 * a2 * t + 3 * a3 * t**2 qdd = 2 * a2 + 6 * a3 * t return t, q, qd, qdd
def quintic_interp(q0, qf, tf, dt=0.01): """Quintic polynomial (continuous acceleration).""" a3 = 10.0 * (qf - q0) / tf**3 a4 = -15.0 * (qf - q0) / tf**4 a5 = 6.0 * (qf - q0) / tf**5 t = np.arange(0, tf + dt, dt) q = q0 + a3 * t**3 + a4 * t**4 + a5 * t**5 qd = 3 * a3 * t**2 + 4 * a4 * t**3 + 5 * a5 * t**4 qdd = 6 * a3 * t + 12 * a4 * t**2 + 20 * a5 * t**3 return t, q, qd, qdd
# Parametersq0 = 0.0qf = np.radians(90)tf = 2.0
methods = { 'Linear': linear_interp(q0, qf, tf), 'Cubic': cubic_interp(q0, qf, tf), 'Quintic': quintic_interp(q0, qf, tf),}
fig, axes = plt.subplots(3, 1, figsize=(12, 9), sharex=True)styles = {'Linear': ('gray', '-'), 'Cubic': ('blue', '-'), 'Quintic': ('red', '--')}
for name, (t, q, qd, qdd) in methods.items(): color, ls = styles[name] axes[0].plot(t, np.degrees(q), color=color, linestyle=ls, linewidth=2, label=name) axes[1].plot(t, np.degrees(qd), color=color, linestyle=ls, linewidth=2, label=name) if name != 'Linear': axes[2].plot(t, np.degrees(qdd), color=color, linestyle=ls, linewidth=2, label=name)
axes[0].set_ylabel('Position (deg)')axes[0].set_title('Comparison of Trajectory Interpolation Methods')axes[0].legend()axes[0].grid(True, alpha=0.3)
axes[1].set_ylabel('Velocity (deg/s)')axes[1].legend()axes[1].grid(True, alpha=0.3)
axes[2].set_ylabel('Acceleration (deg/s²)')axes[2].set_xlabel('Time (s)')axes[2].legend()axes[2].grid(True, alpha=0.3)axes[2].set_title('Acceleration (Linear omitted: infinite at endpoints)')
plt.tight_layout()plt.savefig('interpolation_comparison.png', dpi=150)plt.show()
# Print summary tableprint(f"{'Method':<10} {'Peak Vel (deg/s)':<20} {'Peak Accel (deg/s²)':<22} {'Accel at t=0':<18}")print("-" * 70)for name, (t, q, qd, qdd) in methods.items(): pv = np.degrees(np.max(np.abs(qd))) if name == 'Linear': pa = "inf (discontinuous)" a0_str = "inf" else: pa = f"{np.degrees(np.max(np.abs(qdd))):.1f}" a0_str = f"{np.degrees(qdd[0]):.1f}" print(f"{name:<10} {pv:<20.1f} {pa:<22} {a0_str:<18}")The warehouse robot must pick a box from a shelf at a height of 1.2 m and place it on a conveyor at 0.8 m. Each joint motor allows at most 120 deg/s and 300 deg/s². The cycle must take less than 8 seconds.
Trajectory for each phase:
| Phase | Planning Space | Method | Reason |
|---|---|---|---|
| Move to approach | Joint space | Trapezoidal | Large move, fastest profile |
| Descend to object | Task space | Cubic polynomial | Short, straight and smooth |
| Grasp (dwell) | None | Hold position | Gripper closes |
| Lift | Task space | Cubic polynomial | Straight and smooth |
| Transport | Joint space | Trapezoidal | Longest move, fastest profile |
| Lower to placement | Task space | Cubic polynomial | Straight and smooth |
| Release (dwell) | None | Hold position | Gripper opens |
| Return home | Joint space | Trapezoidal | Fastest profile |
Cycle time budget:
| Phase | Duration |
|---|---|
| Move to approach | 1.2 s |
| Descend | 0.5 s |
| Grasp dwell | 0.3 s |
| Lift | 0.5 s |
| Transport | 2.5 s |
| Lower | 0.5 s |
| Release dwell | 0.3 s |
| Return home | 1.5 s |
| Total | 7.3 s |
The total is inside the 8-second target. The transport phase is the largest part, so a higher cruise velocity or a shorter ramp there saves the most time.
Four ways to bring the cycle below 7 seconds:
Match Method to Phase
Use a trapezoidal profile for long moves through free space, and a polynomial for short, exact segments. Plan in task space only when the path of the gripper matters.
Always Check Actuator Limits
After you generate a trajectory, calculate its peak joint velocity and acceleration and compare them with the motor ratings. For a polynomial, the peaks depend on the distance and the duration: half the duration gives twice the velocity and four times the acceleration.
Prefer Quintic for Delicate Payloads
For fragile items (electronics, glass, food), use quintic polynomials, so that the acceleration is zero and does not jump where segments meet. The extra calculation costs far less than a dropped or damaged item.
Test Blending Radii in Simulation
Simulate the blended path and measure how far it passes from each via point. For the warehouse robot, 20 mm is usually acceptable. Precision assembly may need under 0.1 mm.
Path and trajectory
A path says where. A trajectory says where and when, and so it fixes the velocity and the acceleration that the motors must give.
Joint space and task space
Plan in joint space for free moves. Plan in task space where the gripper must follow a line, and check the joint velocities it asks for.
Polynomials
A cubic starts and stops at rest, with a jump in acceleration at each end. A quintic removes the jump, and its peak velocity is 25% higher.
Trapezoidal profile
It is the fastest move inside a velocity limit and an acceleration limit. A short move never reaches the velocity limit, and the profile becomes a triangle.
Next lesson: Robot Simulation and Practical Applications puts the kinematics and the trajectories of this course into one Python simulator, and shows how to check a simulator against a real arm.
A robot joint must turn 90° in 2 s. It starts at rest and ends at rest. The average speed is 90 / 2 = 45 deg/s, and the motor can reach 60 deg/s. Can the motor follow a smooth curve from start to end?
The move is always 90°, so the area under the velocity line is always the same. The dashed lines are what the motor can give: 60 deg/s and 120 deg/s². Less time, or a shorter ramp, pushes a line through its limit. The second slider shapes the trapezoid only: at 50% it is a triangle, and near 0% it is the constant-velocity move with its jump in speed.
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. A joint motor allows 60 deg/s and 120 deg/s². The joint must make a short move of 15°. What is the shortest time for the move?
2. A cubic move of 90° in 2 s has a peak velocity of 67.5 deg/s and a peak acceleration of 135 deg/s². To save cycle time, a programmer sets the same move to 1 s. What are the new peaks?
3. An arm carries an open tray of liquid samples from one bench to another. The time for the move is fixed. Which profile is least likely to spill the samples?
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.
Comments