Abstract— In this paper it is described the implemen- cluding additional inputs to the FFNN, the leg trajec-
tation of a Central Pattern Generator for quadruped lo- tory can be modulated in order to control any specific
comotion using a feedforward neural network and am-
plitude controlled oscillators. The oscillators were used feature of the leg movements like step length, for exam-
to generate the phase references between legs, acting as ple.
pacemakers. The neural network subsystem was used to The work described in this paper proposes an archi-
perform an nonlinear space transformation from those
phase references into leg actuator’s space, thus providing tecture that uses ACPO as interleg coordination sub-
motor angle references for the motor controllers. This system, and a FFNN with sigmoidal transfer function,
subsystem is able to modulate the spatial trajectory of to transform the output of the previous system into an-
the tip of the leg, allowing further control actions be
taken by external system. A 3-DOF per leg quadruped gle references for the motor-actuated joints of each leg.
was used as mechanical platform, with reptile like con- This papers is organized as follows: Section II describes
figuration. Measurements were taken from the robot the robotic platform and software used for the exper-
platform accelerations and ground contact sensors, and
compared against those taken for an standard geometri-
iment, in order to evaluate the architecture here de-
cally described gait generator. scribed. The whole gait generator system is described in
Keywords— CPG, Quadruped, Gait, Neural Networks Section III, including the phse reference subsystem, the
neural network architecture and its training method.
Experimental results are shown and discussed in Sec-
I. Introduction tion IV and the final conclusions are given in SectionV.
Biological systems have been used as source of in-
spiration to solve several problems in the robotic field, II. Experiment description
ranging from animal behaviour to gait modeling. Nowa- As robotic platform it was used a small quadruped
days, it’s widely accepted that motion control process (240 x 190 mm) with reptile like leg posture, and 3-
is performed in the spinal chord by the Central Pat- DOF legs directly actuated by Futaba HS-475 servos.
tern Generator (CPG). Combining high level brain sig- For motor control a SSC-32 servo driver by Lynxmotion
nals with low level sensory feedback, this system is able was used. As sensors, there were used 4 Z-Axis ±1.5g
to coordinate the neuromuscular excitation in order to accelerometers (MMA1260D) and one 3-Axis ±1.5g ac-
achieve desired leg movements. Some authors have pro- celerometer (MMA7260Q) by Freescale. Four Flexiforce
posed to model the CPG using recurrent neural net- pressure sensors were also used in order to measure
works like those described by Beer et al.[3]. CTRNNs ground contact at the tip of each leg. Measures were
have the ability to model dynamical systems [7], but taken using a HC908GP32 microcontroller, and inmedi-
for legged robot locomotion they have been used under atly sent to the data adquisition software through serial
various architectures for different gait patterns, without link at a rate of 16 samples per second per channel. In
solving in a clear way the transition between those lo- Figure 1 it’s shown the robot configuration and sensors
comotion modes. In order to synthesize a CTRNN that placement.
models a CPG, Genetic Algorithms (GAs) are widely
used; but no analytical methods have been fully devel-
oped yet.
Another approach is the use of differential equations
to describe the dynamics of the locomotion system.
The amplitude controlled phase oscillators (ACPO) de-
scribed in [2] introduce a way to generate temporal ref-
erences for leg locomotion in quadrupeds, solving the
interleg coordination problem. By the use of an exter-
nal input, it is possible to make soft transitions between
different gait patterns without any change in the system
architecture. However, some additions are needed in or-
der to coordinate internal movements of each leg joint.
By the use of simple feedfoward neural networks
(FFNN) it is possible to perform nonlinear space trans-
formation, between different kinds of temporal refer- Fig. 1. Experimental quadruped platform
ences into any arbitrary choosen leg trajectory[6]. In-
For online robot operation using the architecture here dimensional value in (X, Y ) cartesian plane. The dif-
propososed, it was developed a specific purpose applica- ferential equation for one oscillator is given by:
tion using C++ for Win32. The same program was used
to perform the neural network training process and data q̇ = F (q) + p (1)
adquisition. It was also used Labview 7.1 to develop
where q̇ denotes the state vector for that oscillator,
another interface to control and measure the platform,
F (q) is the variable state function and p is the pertur-
with an implementation of an standard geometrically
bation to the oscillator system. Applying coordinate
described stable gait.
transformation from (X, Y ) cartesian space into polar
III. CPG architecture description coordinates (r, θ), we have that Eq. 1 becomes:
T
pc (qi ) = λ [xi , yi ] (9)
where q̇ = FACP O (q), and pc (qi ) are the transfor-
mated perturbation vectors due to oscillators coupling.
Fig. 2. CPG system architecture Details on this equations set are described in [2]. By us-
ing the Eq. 10 it’s possible to achieve continuous tran-
sition for the coupling relations, and therefore different
Each subsystem is described and implemented as fol- walking modes with a single input parameter Pmode .
lows:
1 1
A. Temporal reference subsystem θR,1 = 1+ (10)
4 1 + e−20(Pmode −1.5)
This subsystem performs the phase references gen-
1 2 1
eration for coordinated leg movements. It was im- θR,2 = (Pmode − 1) + (11)
plemented using amplitude controlled phase oscillators
4 1 + e−20(Pmode −1.5)
(ACPO), introduced by Buchli [2]. This method was 1 1
θR,3 = 1− (12)
preferred to those based in recurrent neural networks 2 1 + e−20(Pmode −1.5)
as nonlinear oscillators because it provides a simpler
approach to synthesize temporal signals, and less in- A.1 Support phase factor
put parameters are involved. The ACPO consists into While the ACPO provides a way to synthesize phase
oscillators, phase coupled through the differential equa- locked oscillators for each leg, it remains necessary to
tions that describe the temporal evolution of the system include the support phase factor β. This support factor
states. Each oscillator can be representated by its two is the quotient between the duration of support phase
τs , when the tip of the leg remains in contact with the
support surface, and the whole period for a single leg
M
step τstep . The support factor β range goes between X
yi = σ wj · Ij + θj , i = 1, · · · , K (14)
0 and 1, being necessary a value greater than 0.75 for
j=1
statically stable gait in quadruped locomotion.
A compansion curve is applied to the normalized where yi is the output for each neuron, wij are the in-
phase for each leg state vector (r, θ), with β as input. terconection weights, Ij the neuron inputs and θj a bias
The compansion curve c(x, β) is composed by two lin- term. For our implementation there were used from 5
ear segmentes described by Eq. III-A.1. The resulting to 40 neurons for the hidden layer and 3 neurons for
curve is shown in Figure 3. the output layer, one for each leg motor. At input level
it has the two dimensional output vector of the tempo-
( x
2β x≤β ral subsystem. Figure 4 shows the general neural net-
c(x, β) = x 1
β
work architecture. This network structure is repeated
2(1−β) + 2 1− 1−β x>β
for each leg.
References
[1] D. J. Todd Walking Machines. An Introduction To Legged
Robotics, Kogan Page Ltd. 1985
[2] J. Buchli and Auke Jan Ijspeert, Distributed Central Pattern
Generator Model for Robotics Application Based on Phase
Sensitivity Analysis, In Proc. of 1st. Intl. Workshop Bio-
ADIT. 2004
[3] Hillel J. Chiel, Randall D. Beer, John C. Gallagher, Evolu-
tion and Analysis of Model CPGs for Walking: I. Dynamical
Modules, Journal of Computational Neuroscience 7, pp 99-
118 (1999)
[4] Fukuoka Y., Kimura H. and A. H. Cohen, Adaptive Dynamic
Walking of a Quadruped Robot on Irregular Terrain Based on
Biological Concepts, Intl. Journ. of Robot. Res. Vol 22, No.
3-4. 2003, pp 187-202
[5] H. Kimura, Y. Fukuoka, Y. Hada and K. Takase, Three-
Dimensional Adaptive Dynamic Walking of a Quadruped -
Rolling Motion Feedback to CPGs Controlling Pitching Mo-
tion, Proc. of ICRA 2002. pp 2228-2233
[6] J. Cappelletto, P. Estévez, W. Medina, L. Fermı́n, J. M. Bo-
gado, J. C. Grieco, G. Fernández-López, Gait Synthesis and
Modulation for Quadruped Robot Locomotion Using a Simple
Feed-Forward Network, Lecture Notes in Computer Science,
Vol. 4029, Jan 2006, Pages 731 - 739
[7] F-S Tsung: Modeling Dynamical Systems with Recurrent
Neural Networks, PhD Dissertation. Univ. of California, San
Diego. 1994