Sensor-Based Programming of Central Pattern Generators in Humanoid Robots

In the present article, a method for generating curvilinear bipedal walking patterns is proposed which is able to generate rhythmic and periodic trajectories for a Nao soccer player robot. To do so, a programmable central pattern generator was used which was inspired from locomotion structures in vertebrate animals. In this paper, the programmable central pattern generators were extended and new Equations were added to make a curvilinear pattern for walking Nao robots on a specified circular curve. In addition, some specific Equations were added to the model to control the arms and synchronize them with the movement of the feet. The model uses some sensory inputs to obtain some feedback from the movement and adjust it conforming to the potential perturbations. Input sensory values consist of accelerator values and foot pressure sensor values located on the bottom of each foot. Feedback values can adopt walking to some desired specifications and compensate the effects of some types of perturbations. The proposed model has many benefits including smooth walking patterns and modulation during walking. This model can be extended and used in the Nao soccer player both for the standard platform and the 3D soccer simulation leagues of Robocup SPL competitions to train different types of motions.


Introduction
Nature is usually a very good source of inspiration for science and technology. Taking inspiration from it, humans can usually make a very similar instance to the real case under study. For example, some complimentary algorithms in artificial intelligence are inspired from ants or bees. We can use these ideas and inspiration to build up an artificial instance which is able to imitate the real specimen and use these ideas to complete our approach. ʺHumanoid Robotsʺ are good examples of this kind of inspiration. Recent investigations on the walking of these robots are important parts of robotic development. The problem of walking with two feet in a humanoid robot is a very complicated problem which seems unlikely to be solved in the near future.
The problem of robot locomotion is where neuroscience and robotics converge. This common area of research centres on pattern generators in the spinal cord of vertebrate animals called ʺCentral Pattern Generatorsʺ (CPGs) [1]. Central pattern generators are neural circuits located in the end parts of the brain and first parts of the spinal cord of a large number of animals and they are responsible for generating rhythmic and periodic patterns of locomotion in different parts of the body. Although these pattern generators use very simple sensory inputs imported from the sensory systems, they can produce high dimensional and complex patterns for walking, swimming, jumping, turning and other types of locomotion. The origin of many movements in animals is the central pattern generators which were discovered by Brone in the early decades of the 20th century [2]. He discovered that the movement in many animals is an outcome of central neuronal activities in some parts of their neural system, and simple sensory inputs change these activations and make them capable of responding to the extraneous perturbations. The idea that CPGs are neural networks generating complex locomotion patterns with only simple inputs is a provocative one -it is this that we intend to model in this paper.
In this paper, a model for programmable central pattern generators capable of generating curvilinear bipedal locomotion patterns is developed. The proposed model, which is a model for programmable central pattern generators in a Hoap2 humanoid robot, is based on [3]. The concept of programmable central pattern generators is to make a model for CPGs that can learn from data and generate trajectories similar to them after a period of training. The thought that CPGs can be programmed is a fascinating idea which can be developed to obtain a systematic method of locomotion. In this way, any kind of complex behaviour can be programmed in a CPG model and it can be used in the movement of diverse types of robots.
In the next section, related works in the field of humanoid robot locomotion are reviewed and the advantages and disadvantages in each method are discussed. Section 3 introduces the method for making curvilinear patterns in the Nao robots and how to use programmable central pattern generators to generate the desired patterns. In this section, the features of Nao robots which are the main subjects in the Standard Platform league in Robocup Soccer competitions are explained in brief. Arm movements and different sensory feedbacks integrated in the model used are discussed. Section 4 includes experimental results. We show some of the implementations and results in the Webots simulator and Simulink of Matlab. In addition, we demonstrates some snapshots from the achieved curvilinear walk. In section 5, the conclusions and future prospective works are stated.

Related Works
There are many approaches to solving the bipedal walking issue [4]. Some of these methods use pre-recorded trajectories. These methods are completely offline and never use feedback from robot sensors. The main aim of these methods is to optimize the trajectories and find the best ones to use in locomotion. Finding the best trajectories usually deals with an optimization method in machine learning which can be solved with evolutionary algorithms. Different evolutionary algorithms for this purpose are discussed in [5]. Evolutionary algorithms, such as Particle Swarm Optimization (PSO) [6], Genetic Algorithms (GA) [7], Reinforcement Learning (RL) [8] and Policy Gradient Learning (PGL) [4] [9], have been employed commonly in these types of walk learning. Yang et al. used a truncated Fourier series method to model trajectories for walking in some types of humanoid robots and utilized a genetic algorithm to optimize Fourier coefficients [10]. Some researchers, such as Marc, Kohl and Stone, used some optimization methods for discovering the best parameters of trajectories to maximize a desired fitness function, which is usually the speed of walking or the combination of speed and energy consumption [11], [12].
A very putative method for bipedal walking is the (socalled) Zero Momentum Point (ZMP). ZMP-based approach uses the dynamical model of the robot to calculate a point in which all momentums of the whole robot converge to zero, and it is attempted to keep this point in a suitable and safe area. The original version of this method was discussed by Vukobratovic, who is the founder of this method [13], [14]. Beng Tay used the ZMP method to build omni-directional biped walking in the Nao robot [15], and this has already been used in some other robots [16], [17].
As an alternative to the methods using pre-recorded trajectories, ZMP-based approaches or methods using heuristic control laws (e.g., Virtual Model Control (VMC) [18]), the CPG-based methods are introduced, using some biological perspectives. They encode rhythmic trajectories as limit cycles of nonlinear dynamical systems [19]. A dynamical system is a concept in mathematics where a fixed rule describes the time dependency of a point in a geometrical space. Examples include the mathematical models that describe the swinging of a clock pendulum, the flow of water in a pipe, etc.
Coupled oscillator-based CPG implementations offer miscellaneous fascinating features, such as the stability properties of the limit-cycle behaviour (i.e., the ability to forget perturbations and compensate their effects), the smooth online modulation of trajectories through changes in the parameters of the dynamical system, and entrainment phenomena when the CPG is coupled with a mechanical system. The implementations of CPGs based on the coupled oscillators are actually designs of stable limit cycles in some interconnected oscillators generating patterns. We first design some stable walking limit cycles, and then map external perturbation as some sensory feedbacks to them, and force them to return to the original shape in a smooth and stable manner.
Interesting examples of CPGs applied to biped locomotion are included in [2] and [20]. Matsubaraa et al. discussed a CPG-based method for biped walking which was combined with policy gradient learning [20]. One drawback of the CPG approach is that most of the time these CPGs have to be tailor-made for a specific application, and there are few techniques to construct a CPG for generating an arbitrary input trajectory. Righetti and Ijspeert represented a model for constructions of a generic model of CPG [3]. This method was a programmable central pattern generator which used dynamical systems and some differential Equations to build up a training algorithm. The learner model is based on the works of Righetti, Buchli and Ijspeert, which is a Hebian learning method in dynamical Hopfs oscillators. The programmable central pattern generator has been used to generate walking patterns for a Hoap2 robot. Using this type of generic CPG, they trained the generic CPGs with sample trajectories of walking patterns of the Hoap-2 robot provided by Fujitsu. Each trajectory was a teacher signal to the corresponding CPG controlling the associated joints [21].
Gams et al. discussed a system for learning and encoding a periodic signal with no knowledge on its frequency and waveform, which was able to modulate an input periodic trajectory in response to some external events [22]. Their system is not used to learn walking but some other periodic tasks undertaken by the arms of a humanoid HOAP-2 robot for the task of drumming. This model uses two layers of trajectory generation. The first layer, the Canonical Dynamical System (CDS), is actually a polar implementation of generic CPGs included in [3]. The second layer, the Output Dynamical System (ODS), is responsible for learning and regenerating the waveform of the input signal.
In this paper, a modified and developed model of the programmable central pattern is used for training a curvilinear walking pattern instead of a rectilinear (direct) one. The model for this kind of walk can be used in Nao soccer robots which can be used in the Robocup 3 D Soccer league.

Curvilinear CPG Model
In this section, we explain what the curvilinear bipedal walk is and how generic CPGs are developed to train this walking to the controller of our Nao robot. First of all we describe the global architecture of the controller and its different components. Next, we discuss the nonlinear dynamical oscillators and the fundamental properties of these oscillators. Then the coupling scheme between joints and its role in walking is discussed. In the second subsection we explain the modifications of curvilinear behaviour and new Equations that should be inserted into the model. Subsection 3 is devoted to the arms' movement. We investigate the effects of moving the arms during a curvilinear walking and introduce new Equations for implementing them. The last two subsections describe the offline mode of training and the online controller of the robot. We have tried to explain details of implementation here to make this paper a suitable reference for other researchers in this field.
Nao is one of the most advanced humanoid robots made at the Aldebran French Corporation which was first publicly presented in 2006. In 2007, Nao replaced the robot dog Aibo by Sony as the robot used in the Robocup competitions. This robot has 26 degrees of freedom in different parts of its body including the head, shoulders, elbows, hips, knees and ankles. The Nao academics version is now available for universities and laboratories for research and education purposes. Figure 1.a shows this robot and the different parts of its equipment and joints. The large number of servo motors in its joints has made Nao one of the most flexible humanoid robots to have ever been made and this has also made it the best choice for the Standard Platform league in Robocop soccer international competitions. Details about this robot can be found in [11], [15].
The special type of locomotion we have focused on is curvilinear walking. The curvilinear walk is a smooth form of travelling from a point in the soccer field to a new point along a curvilinear path. A special case of curvilinear path is that of part of a circle. This kind of walking is shown in Figure 1.b.  consists of three sub-modules. The first sub-module is a database of pre-recorded trajectories. The timer is the second module which is responsible for mapping a continuous time to some discrete values of index for pre-recorded matrices of walking trajectories, in the online control module a new timer is similar to the timer in the first module. Accelerometer sensor values and foot-pressure sensors are entered to an online pattern generator that is trained by some alpha, omega and phi vectors.
During a curvilinear walk the robot should simultaneously rotate and move forward, and it must walk along the desired path [9].

Generic CPG Model Architecture in Nao
The architecture of the model used in the present research to use a generic CPG and feedback sensory inputs in the controlling structure of our Nao robot is a bi-phase structure (see Figure. 2). In the first phase, called the training phase, we should train our robot to a fundamental method of walking. The Nao robot did not have any information about how to move its joints to go forward or rotate. So we should train it with some walking trajectories. The training module consists of three sub-modules. The first sub-module is a database of prerecorded trajectories. This contains walking trajectories of the Nao robot in different forms. A gait walking trajectory which is a slow speed and stable type of walking was used in this research.
The timer is the second module which is responsible for mapping a continuous time to some discrete values of index for pre-recorded matrices of walking trajectories. The third module is the generic CPG which is the core of the learning section. The training phase of the robot is an offline process and does not need to be implemented in the robot controller. It can be performed in the MATLAB Simulink environment.
The second phase of walking generation is the online sensory-based walking generation. In this phase, we transfer state vectors which are trained in the first phase to the generic CPGs of the robot controller and initialize CPGs with their necessary values. Sensory input values used in this controller are accelerometer values and footpressure sensor values. An accelerometer is a hardware module in the chest of the robot measuring acceleration values along different directions X, Y and Z.
The fundamental building block of the generic CPG is the adaptive frequency the Hopf oscillator, which is proposed in [21]. These oscillators have the property of learning the frequency of a periodic input signal without any external optimization. Usually, the frequency of an oscillator can be controlled by a specific parameter. In this model all the parameters are changed into a state variable which can be trained using a general evolution rule. It can be proved that when perturbed by a periodic input signal, these state variables will converge to one of the frequency elements of that signal. The adaptation is an intrinsic characteristic of these oscillators. In addition, there is no need for a supervision or external processing.
After convergence, if the input signal disappears, the learned frequency would remain encoded in the system. The relations governing this oscillator are as follows 1,2,3: is radius of the oscillation.  controls the amplitude of the oscillations,  controls the speed of recovery after perturbation,  controls the frequency of the oscillations,   F t is a periodic input to which the oscillator will adapt its frequency, and  > 0 is a coupling constant. The oscillation frequency will adapt to one of the frequency components of the input   F t , regarding the initial conditions of .

 
Pteach t signal is the desired trajectory which is needed to train into the CPGs.

 
Qlearned t is what the system has learned until the time t. The difference of these signals is used as a perturbation signal for the Hopf oscillators. The output amplitude of each oscillator is multiplied by an alpha coefficient and then all of these outputs are added together.
Equations 4-8 complete the definition of a generic CPG:  All the oscillators are coupled with the zeroth oscillator, and the coefficient is used to keep correct phase relationships between the oscillators to build correct phase synchronization.
We use one generic CPG for each joint of the Nao in each Degree Of Freedom (DOF) of each foot. Each CPG is made of exactly four oscillators, as shown in Figure. 3 To coordinate these joints, for each leg and the opposite arm, a chain coupling from the hip to the ankle of the first oscillator of each CPG has been used. This coupling is illustrated in Figure.  . In addition, some extra terms are added to keep correct phase differences between the DOFs. To train different trajectories to these generic CPGs, we need to enter the training trajectories into the system and after a long period of training, the parameters of CPGs are adapted to the desired input. Then the last state of the system will be transferred to the robot controller and in each step of the walk, calculation of an integral should be done to find the new state of the system. The model of generic CPGs presented generates online trajectories for each joint of Nao. We use these trajectories as the desired angles (set points) for the PID controllers controlling each joint. The major benefit of this model is that we can encode arbitrary periodic signals as limit cycles in a network of coupled oscillators. When we get all the properties of such systems, we can modulate the frequency and the amplitude in a smooth way, we have stability to perturbations and we can integrate feedback pathways to adaptively regenerate trajectories and optimize different skills in a soccer player robot.

Curvilinear Generation Equations
We add a new state variable to these Equations to make a curvilinear control in the generic CPG model. In fact a curvilinear walk is a result of smooth changes in the yaw/pitch servo of the hip joint in the Nao model. So we add Equations 9 and 10 to the system to be used for hip yaw/pitch joints: Here  is a small coordinating coefficient which is used to make yaw/pitch joint behaviour similar to the other joints.

   
Acc t Ro t R  is the expected rotation of the robot in the time t which can be computed with this Equation: In this Equation R is the radius of a circular curve and   AccX t is the speed increment of the robot in the direction of the robot's body. In fact Ro at the time t is the projection of rotation in CPG Equations and was computed from the radius of the circular curve and the amount of acceleration. R is inversely proportional with   Ro t . The larger the radius of the curve, the smaller the projection of rotation in each time, and thus the robot would deviate more slowly from its straight path.

Arms Movements
Some experiments carried out by researchers have found that the arms' movements actually provide important indirect benefits for human walking [9]. These researches have shown that swinging the arms in opposition to the legs significantly increases the efficiency of walking. They also discovered that normal arm swinging made walking much easier and smoother. To stabilize and increase the performance of our curvilinear walk we should include the role of the arms in robot walking. The most important arm joint which mostly moves the arm is the shoulder pitch joint. This joint is responsible for moving the arm in the direction of the body (X axis) and can be used to keep the centre of the momentum in a safe and stable area. So only these pitch joints of the shoulders have been considered and the roll joints pertaining to the four elbows and the two shoulders have been locked. There are two different arm-control rules for pure rotation and pure rectilinear walks, and a linear combination of these is used for a curvilinear walk. In the rectilinear case, the angular momentum generated by the arms should repeal unwanted momenta around the Y axis which may be generated by the foot swinging. On the other hand, in a pure rotation case, the angular momentum generated by the arms must intensify the momentum around Z which is used for rotation.
For the arms we do not use direct programming of generic CPGs in the shoulder pitch joints. In other words we compute a shoulder pitch joint indirectly with a linear combination of the other CPG values. Since we intend to compensate the effects of the swing phase, the left arm should be synchronized with the right foot and the right arm should be synchronized with the left foot. This means that whenever the left foot is in its swing phase and it goes forward, the right arm should simultaneously go forward and the left arm should go backward. We use Equations 11-12 to control arm movements: In the above Equations the left shoulder pitch-joint position at the time t is computed from a linear combination of the right hip-roll joint position and the right hip pitch-joint position. R is the radius of curvilinear rotation discussed earlier in curvilinear Equations. , , ,     are the coefficient of R which determines how much momentum the opposite arm should generate. b is a bias value which shifts the range of the movements of the arms. They can be determined by trial and error by some learning procedure [23].

Foot Sensors Feedbacks
The fact that there is a large amount of information embedded in foot pressure sensors is interesting in that this can be added to the model of bipedal walking. Foot sensor feedbacks can determine different states of walking and help the robot control its stability and respond to the changes that occur in the surface of walking. If any part of the walking surface has pits or hills, these pressure sensors tell the robot how to change its walking patterns to bypass these pits and hills. Again, foot-sensor pressure values are the main source of pattern generators located in natural CPGs in vertebrate animals.
Inspired from the natural world, we add the effects of the foot sensors to our model to tune up its efficiency. These feedback effects control the phase differences between the joints in the two feet. There are four foot sensors on the bottom of each foot of the Nao robot. Considering the exact effects of these foot sensory inputs, according to the current research on humans, is a complicated problem. Thus, we use only one effect among several effects which is the phase deviance occurring between the two feet of the Nao Robot. When the phase differences between the robot's feet is disturbed, it is said that a ʺphase devianceʺ has occurred. This deviance can be generated from different origins including non-smoothness of the walking surface, collision with another soccer player robot, collision with the rotating ball, and rotation of the body during the walk. To solve this type of deviance, we update our trained CPGs and import a combination of foot sensor effects to compensate the phase deviance. Equation 13 is utilized to compute the foot sensory effects. We define Equations 14 to modify phase Equations in the generic CPG model and import the foot sensor effects. Using these new online phase calculation Equations, one can modify the phases of the hip pitch joints ( joint numbers 3 and 9) and knee pitch joints (joint numbers 4 and 10). These joints are the most important ones during a curvilinear walk. Other joints of the Nao robot cause no more change in outcomes. This was found to be sufficient to import the foot sensor effects only to the hip pitch joints and knee pitch joints to compensate the lagging and leading of Nao's feet.
We have designed a special value for combining foot sensor values as follows: According to Equation 13, in each cycle the difference of corresponding sensors in both feet is computed and summed together in each time period T i.e., the period of one complete gait to form a foot sensor difference diff F value. Since this value is the sum of forces, diff F should be scaled by a divisor m to be used in the CPGs' modified Equations (in Equation 14).
In this Equation, m is a normalizing constant which is used to scale the pressure values to the appropriate phase difference values. T is the time interval of a gait period.

 
Fsr i,j is the foot pressure of the ith sensor (i can be 1 to 4) in the jth foot (j can be 1 and 2 for the left and right foot, respectively).
where i,k  represent the phase change in the ith oscillator of the kth joint of the robot. Here we have updated Eq. 9 for all the oscillators in joints k=3,4,9,10.

Offline training phase
In the general architecture of the present model, two phases of curvilinear bipedal pattern generation have been discussed. The first phase includes the training of basic walking trajectories to our general CPGs. This should be done to find initial-state values of essential harmonic frequencies, phases and amplitudes shaping the trajectories. The first adaptive oscillator in each generic CPG sends out its frequency and theta value as synchronization criteria in other adaptive oscillators. It is noteworthy that only four adaptive oscillators have been used to reduce computational complexity of the model. The present model has been trained and its last state values have been extracted in Simulink. Then generic CPGs have been transferred to the online controller code of the Nao which was written in Matlab.

A Discussion on the Online Controller
In this subsection we are going to describe the overall functionality of the online controller module of our model. To show how the robot can walk using our model, some pseudo codes are proposed. These pseudo codes are originated from the Matlab language syntax and use some API functions of the Webots (Robotstadium) simulator.
The main goal of this section is to help the reader better understand the details of implementation. The main robot online controller pseudo code is shown below. One part of this code is the initialization of servos and sensors. This is usually required when the robot controller begins to enforce its control. In this pseudo code, CalculateNextState is a function which can calculate the CPG next state from the inputs which are the time interval of integration, the current state of the robot named State0, Acc values, and the value of diff F computed from the foot pressure sensors. To compute the integrations, the ode45 function has been used in the implementations since it is a very flexible method of integration. The next pseudo code shows CalculateNextState computations in the box below. In this pseudo code, three inputs are entered into the function. The first one is the time value. The second is current state of the robot which consists of all values of X, Y, Omega, Alpha and Phi. The third input is the values of the accelerometer sensor from the main pseudo code. The function computes dstate vector which is the input of ode45 or integrating function.
An important problem when using this generic CPG model is the quantization of the time. The time is continuous and should be quantized to be used in the training vector indices. To solve this problem, the time has been multiplied by 25 and then the integer part of the number has been used in the calculations. We have selected 25 because the time step was 40 milliseconds. Another problem in our experiments is the small values of input trajectories -with small values of input signals GPGs never converging to an acceptable point. It was found that the training trajectories should be large enough to train CPGs. So all trajectories were multiplied by 100. After the training phase, CPGs generate trajectories 100 times bigger than they should be. So in the main part of the code we have multiplied the Qlearn vector by 1/100. 7. k =1 to 12 8. j=1 to N 9. temp = state((k-1)*N*5+j)*state((k-1)*N*5+3*N+j);

Offline programming of CPGs
In Figure. 5 an example of a diagram in training mode is illustrated. The red trajectory is the left-hip pitch-joint values (Pteach, multiplied by 100 to be able to be trained in the CPGs) and the blue one (Qlearn) is what the corresponding CPGs is generated during the first 10 seconds. It is observed that the training is very fast and almost efficient. In fact the learning period is approximately 3 seconds; i.e. after 3 seconds, the Qlearn signal trajectory will converge to the Pteach signal.
An arbitrary input signal can have a large number of harmonics representing it, but some of them are more important. The generic CPGs, as shown in Figure. 3, consist of four adaptive oscillators which are responsible for searching and finding the most important harmonics constructing the input signal. In Figure.

Results of Online Control of the Robots
In the second phase we import trained state values to the Webots Nao model and design the controller of curvilinear walking in the Robotstadium environment. When the robot decides to walk on the perimeter of the circular curve with radius R, the online trained CPGs start to generate patterns based on the specific R value. In Figure. 8, 12 snapshots from the robot's curvilinear walking in simulation environment are shown. 9 shows such a circular curve on which the robot has traversed. In the first part of the figure, the robot is in the middle of the soccer field. Then it slowly walks and rotates up to the left of the soccer field. The desired path of the robot is a circle with radius R which is compared with the actual path traversed by the robot. The notion that the robot never stops rotating is a key point in this walk. One can see that it is a curvilinear walk from the starting point in the middle to the corner point. In order to achieve the absolute parameters of the programming of CPGs, we will transfer them to a real Nao. An online controller described in tables 1 and 2 can be implemented in a real Nao controller module to generate a curvilinear walking. In Figure. 10, a curvilinear walk in a real Nao is shown. Sub-figures are numbered 1 to 10 from the starting point to the middle point. This walk goes on to a final point at the end of a circular curve. In this way we obtain a systematic method for building and adjusting the CPG controller on a Nao humanoid robot.

Analysis of the Sensory Feedbacks
Foot sensor values are the main source of feedback which is used in our model to control curvilinear walking. Figure. 11 presents four diagrams of sensory values in the left foot of the robot during a gait. These values are use in Equation 13 to compute diff F value. The diagram of changes in diff F during a gait of curvilinear walking is illustrated in Figure. 12. It can be seen that this diagram is partially symmetric, but the two sides are not exactly the same. This means that in a curvilinear walk, the distribution of force values are not exactly similar in the two feet. We extract this difference between both feet and import it to the CPGs' Equations 13,14. Different phases of walking during a gait are shown in this Figure. These are initial stance, initial contact, initial loading, swing, terminal stance, terminal contact and terminal loading.

Modulation of Basic Frequencies
One of the most beneficial aspects of CPG-based approaches in bipedal walking is modulation of generating trajectories. Modulation of these trajectories helps the robot to change its speed and style of walking. It can increase or decrease its speed by modulating the basic frequencies of the trained trajectories. Extracting the Omega values of walking trajectories, we can obtain basic frequencies of all the joints. A basic frequency is the greatest common divisor of almost all the frequencies (Omega values) of the trained trajectories. It is possible to find a number which can generate the entire Omega values. Increasing or decreasing this basic frequency would cause modulation of trajectories and lead to increment or decrement of the walking speed. Figure. 13 presents this modulation of trained trajectories. We have calculated a basic frequency of the whole system named bf. This bf value has made up of original trajectories in blue colour. Then we have multiplied bf to number 2. The red trajectories are generated in this case which make the robot walk twice as fast as in the original case. Green trajectories are achieved by dividing the bf by 2. We have tested and measured these speeds, and obtained a very smooth and stable curvilinear walking.

Conclusion
A new model for generating a curvilinear bipedal walking pattern using a programmable central pattern generator has been introduced which is trained by the Nao basic walking trajectories. This type of locomotion is a beneficial movement in soccer playing Nao robots in RoboCup SPL competitions because it helps them play faster and localizes them in the points they should be at in their team arrangements. They must avoid collision with other soccer playing robots because crashing may be harmful for their hardware and also may make them fall on the ground, which may cause a period of time during which they must stand up and resume playing again. Curvilinear walking assists humanoid robots in walking naturally and efficiently.
A method has been introduced for designing and learning central pattern generators in Nao robots that can learn trajectories in an offline mode and transfer trained parameters to an online controller. The present model is a development of the model of PCPGs which can generate curvilinear bipedal walking trajectories in the online mode. The sum of the Equations has been updated to make programmable CPGs and enable them to control the hip yaw-pitch joints of Nao to generate curvilinear patterns. In addition, the arm movement trajectories have been generated from a weighted linear sum of the outputs of other CPGs.
It has been shown in this paper that sensory feedback can be integrated in the trained CPGs to control bipedal rotation during curvilinear walking. Two different sensory data are used: accelerometers and foot-pressure sensors, which are combined and used in the trained generic CPGs. New Equations have been introduced to compute the distinctions of pressures in the two feet and these have been inserted into the CPGs state Equations.
Future works will consist of using this model in real Nao soccer players in Standard Platform leagues in Robocup 2014 competitions. It has been planned to implement the method used in a real Nao and test its efficiency in the real world. It is also intended to compare the method with ZMP-based methods currently in use in real Nao robots.