Moving objects is one of the main jobs we give robot arms. Some objects, such as containers of liquid, impose requirements on the whole motion—not just the starting and ending poses.

For the robot pictured above, the requirement is to keep the end effector level throughout the move. If we want to move faster, however, the trajectory also has to satisfy dynamic constraints.

There are two things to work out: which dynamic constraints matter, and how to model them. Here's our demo, with a small surprise at the end.
Start with a one-dimensional problem
Consider a mechanism that can move horizontally along and rotate in the plane of the page. It needs to carry a cup of water from left to right without spilling it. We have actually used this as a programming exercise in our hiring process.

The constraint is easy to describe: the resultant of horizontal acceleration and gravity should be perpendicular to the supporting surface. It is essentially a high-school physics problem.
One way to solve it is to write down the constraints and formulate an optimization problem. Here is another way to look at it.
Choose a space that already satisfies the constraint
Although the mechanism has both a position and an angle, this constrained problem feels as though it has only one independent degree of freedom. If we can find that one-dimensional space, any point we choose within it should satisfy the constraint.
I'll skip the short derivation: horizontal acceleration and angle have a one-to-one relationship. We can describe the coupled space as :
- is the space of horizontal accelerations .
- is the space of angles .
- Here, denotes the relationship between the two: .
Any point in this coupled space satisfies the constraint. Since acceleration cannot change instantaneously, we can sample in the tangent space—the space of jerk—and integrate:
- Jerk → acceleration, by integration.
- Acceleration → velocity, by integration.
- Velocity → position, by integration.
- Acceleration → , using the relationship above.
In this construction, whatever jerk we supply, the resulting motion continues to satisfy the stated dynamic constraint.

Extend the construction to the robot
Returning to the robot arm, we can likewise look for a coupled space that satisfies the dynamic constraints throughout. What initially looked like a difficult six-degree-of-freedom problem then becomes a three-degree-of-freedom problem.
The integration and related operations are carried out in SE(3).
And then we can do this:
