
A Solution to Slosh-free Robot Trajectory Optimization
Rafael I. Cabral Muchacho, Riddhiman Laha, Luis F.C. Figueredo, and Sami Haddadin
Abstract— This paper is about fast slosh-free fluid transporta-
tion. Existing approaches are either computationally heavy or
only suitable for specific robots and container shapes. We model
the end effector as a point mass suspended by a spherical
pendulum and study the requirements for slosh-free motion and
the validity of the point mass model. In this approach, slosh-
free trajectories are generated by controlling the pendulum’s
pivot and simulating the motion of the point mass. We cast the
trajectory optimization problem as a quadratic program—this
strategy can be used to obtain valid control inputs. Through
simulations and experiments on a 7 DoF Franka Emika Panda
robot we validate the effectiveness of the proposed approach.
I. INTRODUCTION
In this work, we are interested in the problem of trans-
portation and optimal-manipulation of dynamic fluids and
fragile materials. Particularly, we are focused on extreme
time-optimal solutions that leverage robot capabilities to
exceed human-level performance. Take for instance, the task
of transporting a full cup of coffee, a glass of wine, or a
hazardous liquid in industry. Although basic inspiration for
designing such a system can be gained from innate human
skills to carefully adjust the frequency of the containing
cup/container to match that of the unrestrained free surface,
achieving this in aggressive maneuvers for humans can be
extremely hard. Safety is the number one priority in this
case, as no one likes to spill a coffee—neither do robots.
Solutions often lie in minimizing higher derivative terms
such as jerk and snap of the trajectories through optimal
control strategies. Taking inspiration from a market solution
for coffee/liquid transportation as shown in Fig. 2—namely
the Spillnot mechanism [1], [2]—we propose an optimization-
based motion generation solution that provides above-human
real-time fluid transfer at high speeds that predicts and
compensates reaction forces through a simplified closed-form
pendular-like dynamics—and thus complete the task without
spilling liquids even for aggressive motion profiles.
The problem of dynamic liquid behavior is well studied
and dates back to Navier, Stokes [3], the fluid packaging
industry, and even the aerospace industry [4]. Motion induced
sloshing is also a classic problem in control theory [5],
[6] wherein the main idea is to study the sloshing mode
excited by the oscillations through resonance and additional
frequency analysis [7]. Among the robotics community, while
1
The authors are with Munich Institute of Robotics & Machine Intelli-
gence, Technische Universit
¨
at M
¨
unchen (TUM), Germany. This work was
funded by the Lighthouse Initiative Geriatronics by StMWi Bayern (Project X,
grant 5140951), LongLeif GaPa gGmbH (Project Y, grant 5140953), “Centre
for Tactile Internet with Human-in-the-Loop” (CeTI, grant 390696704) and
KI.FABRIK Bayern (grant DIK0249). S. Haddadin has a potential conflict of
interest as shareholder of Franka Emika GmbH. Email:
{rafael.cabral,
riddhiman.laha, luis.figueredo, haddadin }@tum.de
Fig. 1. Inspiration for our problem. Picture courtesy: Science Factory and
SpillNot trademark [1], [2]. See further details of the functioning of the the
SpillNot mechanism here.
a plethora of approaches have been proposed to address the
aforementioned transportation problem, most of them rely
on motion optimization and/or smoothness to minimize jerks
and acceleration leading to liquid sloshing, see for instance,
[8], [9]. A scarce amount of papers, have also addressed
the problem through fluid analysis and optimization towards
trajectory smoothing and container tilt-coupling, i.e., coupling
with the trajectory [10], [11]. Such approaches however often
lead to computationally heavy, narrow and dedicated case-
specific solutions. Overall, existing frameworks addressing the
the posed problem are either suboptimal, or computationally
demanding in terms of solving the inverse motion problem.
Existing human-centred applications call for optimal, safe
and mostly real-time solutions, that make use of existing
collaborative robots capabilities and inner control-loops
running, for instance, at 1 KHz. Neglecting or overseeing the
robot’s capabilities hinders real-world applications where it
is desirable to have a faster and more effective solution.
Contrary to existing methods, this work instead adopts a
fundamentally different approach, and proposes solving the
spilling-free fluid transportation problem by formulating it
as a linearized point mass system. Casting the problem like
this enables us to integrate the tilt of the container with the
arXiv:2210.12614v1 [cs.RO] 23 Oct 2022