Constraint-Based Task Specification and Trajectory Optimization For Sequential Manipulation
Constraint-Based Task Specification and Trajectory Optimization For Sequential Manipulation
Oct.23-27, 2022, Kyoto, Japan. ©2012 IEEE. Personal use of this material is permitted.
Permission from IEEE must be obtained for all other uses.
are typically task-related, such as a desired end-effector end of each phase, the respective terminal constraints must
pose. Examples of inequality constraints are typically robot- be fulfilled.
related, such as collision avoidance. In our notation we
IV. TRANSCRIPTION TO A DISCRETE-TIME
only refer to inequality terminal constraints of phase i as
PROBLEM
g terminal,i (x) ≤ 0 and path constraints g path,i (x) ≤ 0 as
equalities can be modeled using two inequalities. To solve our multi-phase optimal control problem (1) we
An informal problem formulation would now be to move discretize the time in each motion phase into N samples
the robot, starting in initial state xinit at time T0 , through using the multiple shooting method [18] which results in a
the sequence of motion phases as quickly as possible with- total of mN time steps. To simplify the mapping of time
out violating the constraints of the current motion phase. steps and motion phases let p(k) = bk/N c + 1 denote the
Formally, we model this as the following optimal control phase of discretization step k. This results in the following
problem (OCP): optimization problem with i = 1, . . . , m:
mN −1
Z Tm
X Tp(k) − Tp(k)−1
minimize Tm + l(xk , uk )
minimize Tm + l(x(t), u(t)) dt x ,x ,...,x
0 1 mN , N
x(t),u(t), u0 ,u1 ,...,umN −1 , k=0
T0
T1 ,T2 ,...,Tm T1 ,T2 ,...,Tm
In the first stage, a robot is modeled as a graph of sym- The first one would be to compare this approach to the
bolic mathematical expressions as pioneered by the eTaSL interpolators of typical industrial robots when manual blend-
framework [7]. To this end, a robot modeled within the ing between motions is specified by the user. However,
Universal Robot Description Format (URDF) is parsed into a this comes with a large number of arbitrary choices for
tree of symbolic expressions representing the forward kine- parameters such as blending distances or velocity profiles
matics formula. These expressions are implemented using for Cartesian motions and the baseline would be limited
the CasADi framework [19]. to typical robot arms (i. e., no mobile manipulators). The
In the second stage, constraints are specified for different second candidate would be to model a motion task as a Logic
phases of a motion task. To this end, we model a set of re- Geometric Program that has a purely linear sequence of
curring motion constraints as described in Section III. These symbolic states and solve it via the LGP solver as presented
constraints link different symbolic expressions within the by Toussaint [17]. We approximate this second baseline, by
previously constructed expression graph, e. g., to constrain sequentially solving the individual motion phases one-by-one
the forward kinematics of the end-effector for a positioning without considering the remaining phases.
task. We defined three tasks for experimental evaluation, as
In stage three, the expression graph and the constraints shown in Fig. 3. These tasks vary in complexity both with
are transcribed into constraints and cost-functions for a time- respect to the robot model and the number of phases. Each
discrete, non-linear optimization problem as described in the task contains at least several Cartesian motions and all tasks
previous section. Phase four computes a solution to this require the robot to return to its initial configuration.
problem, and thus a motion trajectory, using the IPOPT
solver [20]. C. Results
IPOPT requires an initial guess which, ideally, should We perform the experiments on different simulated robot
already fulfill all constraints of the OCP. For this initial guess, systems and evaluate them based on a series of perfor-
we set all positions of the trajectory to the initial position mance metrics. All experiments were performed on an In-
and all velocities and accelerations to zero. This choice of tel i7 10510U 2.8 GHz processor.
initial guess fulfills the constraints of the initial state, system Fig. 4 shows that our approach has a faster motion
dynamics, as well as state and control bounds but will violate with around 15% improvement than the baseline on the
the task constraints. trajectory duration of the pick-and-place task. The base-
line approach returns a trajectory where the motion stops
B. Experimental Setup between the phases. In our approach, no post-processing
We conducted a set of experiments to validate whether our of the generated trajectory, i.e., blending or smoothness
approach allows us to model typical robot motion profiles algorithms, is required as these are already integrated as
and whether it improves the execution speed compared to a objectives in the OCP. The results avoid non-smoothness
baseline. in typical sampling-based path planning algorithms and
There are two natural candidates for such a baseline: the sub-optimality caused by path-velocity decomposition
Baseline Number of discretization steps per phase N = 5
1.0 1.0
0.5 0.5
0.0 0.0
Norm. Joint Velocity
−1.0 −1.0
Our Approach Number of discretization steps per phase N = 30
1.0 1.0
0.5 0.5
0.0 0.0
−0.5 −0.5
−1.0 −1.0
0 2 4 6 8 10 0 2 4 6 8 10 12
Trajectory Duration (s) Trajectory Duration (s)
Joint 1 Joint 2 Joint 3 Joint 4 Joint 5 Joint 6 Joint 1 Joint 2 Joint 3 Joint 4 Joint 5 Joint 6
Fig. 4. Normalized joint velocities: This graph shows the joint velocities Fig. 5. Effect of the number of discretization steps: This graph depicts the
of the baseline and our approach for a 6-axis robot pick-and-place task. All joint velocities for a 6DoF robot pick-and-place task with a small (5) and
values are normalized to the maximal velocity of the respective joint. The large (30) number of discretization steps N . As can be seen, a larger N
task comprises seven motion phases for which the boundaries are marked by results both in a substantially shorter trajectory and smother velocity profiles.
vertical dashed lines. As can be seen, our approach shows a substantially
reduced execution time. One reason for this is that our approach enters
intermediate phase-boundaries with positive velocity whereas the baseline
100
stops between all phases.
11.5
approaches. 80
The baseline approach exerts bang-bang controls, causing 11.0
Trajectory duration (s)