Ball in Double Hoop: Demonstration Model For Numerical Optimal Control ?
Ball in Double Hoop: Demonstration Model For Numerical Optimal Control ?
Ball in Double Hoop: Demonstration Model For Numerical Optimal Control ?
Abstract: Ball and hoop system is a well-known model for the education of linear control
systems. In this paper, we have a look at this system from another perspective and show that
it is also suitable for demonstration of more advanced control techniques. In contrast to the
arXiv:1706.07333v1 [cs.SY] 22 Jun 2017
standard use, we describe the dynamics of the system at full length; in addition to the mode
where the ball rolls on the (outer) hoop we also consider the mode where the ball drops out of the
hoop and enters a free-fall mode. Furthermore, we add another (inner) hoop in the center upon
which the ball can land from the free-fall mode. This constitutes another mode of the hybrid
description of the system. We present two challenging tasks for this model and show how they
can be solved by trajectory generation and stabilization. We also describe how such a model
can be built and experimentally verify the validity of our approach solving the proposed tasks. ∗
∗ All codes and drawings are available at http://github.com/aa4cc/flying-ball-in-hoop
Keywords: Trajectory planning; Optimal control; System modeling; Hybrid systems; Control
education; Mechatronic systems
1. INTRODUCTION one to pose tasks which are rather difficult to solve by other
means. We propose and solve two such tasks. Specifically,
Ball and hoop system is well-established among laboratory we formulate each task as an Optimal Control Problem
models used in teaching control. Its origin dates back (OCP) with nonlinear dynamics and limited control input.
to Wellstead (1980, 1983) who introduced it as a simple We solve the OCPs and show how to stabilize the obtained
model having qualitatively the same dynamics as the liquid trajectories.
slop problem; in addition, Wellstead (1980, 1983) and In addition, we added another hoop inside the outer one.
Fabregas et al. (2011) also described how this model can be This further extends the variety of tasks that can be solved
used in teaching of linear control theory. More specifically, on this system; one can, for example, swing up the ball on
the model was used in a regime where the ball is close the outer hoop, let it fall and stabilize it on the inner hoop.
to the stable position on the hoop and where a linear It is worthy of note that the stabilization of the ball on the
approximation of motion dynamics is valid. inner hoop can be viewed as stabilization of a disk on a
In contrast, we consider full repertoire of motions the disk; that itself is an interesting problem (for references,
system offers. We describe the system as a hybrid model see Ryu et al. (2013)).
with a mode where the ball rolls on the outer hoop This paper is organized as follows. In Section 2, we derive
and with a mode where the ball has dropped out and a mathematical model of the system. In the following
entered a free-fall mode. This description enables us to section, we present two examples of interesting and chal-
generate dynamically richer trajectories (for instance, the lenging tasks for this system and propose an approach
ball can go through the top of the hoop or even fly in solving them. In Section 4, we describe hardware setup
free fall); nevertheless, such trajectories also require more of the system and verify the viability of the proposed
advanced control techniques. First, one needs to find a approach solving the tasks.
way to generate such trajectories. Second, the trajectories
have to be stabilized; in other words, one cannot simply
take the controls corresponding to a desired trajectory, 2. MODELING
apply it to the system and expect to observe the desired
trajectory. This model is ideal for a demonstration of how The system is cartooned in Fig. 1 and the modes of the
these techniques, trajectory generation and stabilization, hybrid description are displayed in Fig. 2. The hybrid
can be applied because it is relatively simple and allows description has three modes: the ball rolls on the outer
hoop (S1), the ball is in free fall (S2), and the ball rolls on
? This work was supported by the Grant Agency of the Czech Tech-
the inner hoop (S3).
nical University in Prague, grant No. SGS16/232/OHK3/3T/13,
and partially by the Czech Science Foundation within the project Before we delve into the derivation of equations of motion
P206/12/G014. for each mode, let us devote a few words to coordinate
γ1 > 0 γ3 > 0
S1 γ2 > 0 S2 γ4 > 0 S3
4. EXPERIMENTAL VERIFICATION
10
0
To verify the validity of our approach, we implemented -10
the proposed control algorithm and tested it on a real -20
hardware setup. 0 0.5 1 1.5 2 2.5