Abstract
In this article we present a novel mechanical design of a robot leg that possesses active and variable passive compliance properties. The hip and knee joints provide active compliance, while the variable passive compliance comes from the spiral foot spring, mounted on the ankle joint, which changes its stiffness by rotating and changing contact angle with the ground. The stiffness of the foot for various contact angles was identified experimentally by using the strength tester measurement system. The method for damping coefficient identification, based on the observation of energy losses during the stance phase of leg hopping motion, is described and used to obtain the foot damping model. The adaptation of spiral foot stiffness to varying ground stiffness is achieved by extracting a leg contact time from a feedback signal provided by a flex sensor mounted on the foot. The experiments on a single leg and quadruped platforms have confirmed that the presented spiral foot design provides stiffness adaptability, partial recovery of the energy from the previous hop and restriction of stance contact time, which are all necessary conditions to obtain more efficient quadruped locomotion.
Introduction
The extensive observations of the nature have revealed that complex high degree of freedom legged locomotion systems can be described by a reduced-order dynamics model called SLIP (The Spring Loaded Inverted Pendulum)[1–3]. The simplified model consists of one body equivalent mass M at the top of a single linear spring with stiffnes kleg, as shown in Figure 1. The motion represented by the SLIP model is characterized by two phases: flight phase and stance phase. Flight phase, during which the whole system is off the ground, ends when the leg touches down with a certain velocity

The SLIP model behaviour
At the beginning of another flight phase, the portion of potential elastic energy stored in the spring assumes back a kinetic form represented by a take-off velocity
The stiffness is particularly important in two aspects of legged locomotion which include work output and gait control [5, 6]. The locomotion speed is determined by a stride frequency, a number of hops or steps made in a period of time, and also by a stride length which is defined as a distance covered with each hop or step.
The same locomotion speed value can be achieved by combining different stride frequencies and lengths. If the stride length is constant, higher speed demands higher stride frequency which requires stiffer legs [7, 8]. On the other hand, the increase of speed by increasing the stride length and keeping the stride frequency constant does not demand the change of the stiffness [9, 10]. Namely, the increase of stride length reduces the touchdown angle Θ, which ultimately results in a reduced vertical travel of the center of mass ΔL while keeping the leg stiffness constant.
In [7] it is shown that the stride frequency selected by any running or hopping animal optimizes the energy cost of locomotion. The human Achilles tendon absorbs up to 35% of the total mechanical energy during each stride while the horse tendon conserves as much as 40% of mechanical work for trotting and galloping [11].
Locomotion at stride frequencies above optimal demands a stiffer leg which dissipates higher energy in collision with the ground, requires faster and energy demanding muscular activity and introduces high stresses. Too low leg stiffness at lower stride frequencies increases the stance time, which is energetically expensive because the actuators must hold a body mass against the gravity for a longer period of time.
Numerous studies have shown an important link between the leg stiffness and ground stiffness values. In [12] it is shown that a vertical mass displacement ΔL remains constant in spite of immense changes in the ground stiffness kg (see Figure 1). In other words, while they are running on stiffness-varying surfaces (varying kg), humans tend to adapt the stiffness of their legs kleg so that the effective stiffness in vertical direction remains constant. The authors’ final conclusion is that kinematic variables such as stride frequency and ground contact time Tc remain unchanged during hopping or running on stiffness-varying surfaces in order to minimize the metabolic cost of locomotion.
Regarding the gait control, one can conclude that natural leg stiffness compensates changes in ground stiffness in order to maintain the stride frequency constant at the desired energy optimal value. Additionally, the changes in locomotion speed influence the leg stiffness only if the stride frequency is changing.
Compliance in robot leg design
Compliance in robotics is known and researched [6, 13]. It ensures that the interaction between the robot and its surroundings during task execution conforms to environment characteristics and safety requirements without compromising the robot operation. The robot leg compliance makes it possible for the robot to filter the unexpected ground force impulses, but most importantly improves the locomotion stability on surfaces with variable geometry and stiffness. Depending on the robot leg mechanical design and control, three types of compliance exist: the fully passive (fixed and variable), the fully active and the hybrid which combines both active and passive compliance.
The fixed passive compliance is achieved by using a mechanical spring with stiffness kp and damping cp. The biggest advantage of using a mechanical spring is elastic energy absorption in the compression phase, which is partially converted to kinetic energy during the extension phase. The obtained output kinetic energy is dominantly reduced due to losses caused by damping cp and can be recovered through actuation. For example, the leg design of the experimental quadruped platform Scout II presented in [14] has two DOF, the active hip rotation joint and the prismatic passive spring. The robot bouncing stride frequency is limited due to the fixed spring parameters but the specific resistance of locomotion [15] shows that the robot successfully reuses elastic potential energy. The one-legged hopping robot ARL-Monopod II presented in [16] reuses spring energy to achieve the smallest specific locomotion resistance. The bow leg planar hopping robot is presented in [17]. The leg design is based on a curved leaf spring which reduces the need for additional actuation energy. The use of the fixed passive compliance ensures elastic energy absorption but the robot locomotion has no ability to adapt to different ground stiffness.
The active compliance requires torque control of robot actuators to provide a spring-like dynamic behaviour. A fully torque-controlled hydraulically actuated quadruped (HyQ) robot is presented in [18]. The highly dynamic active compliance is achieved to ensure fast locomotion over rough terrain. A compliant quadruped robot StarlETH uses brushless DC motors to achieve active compliance [19]. Additional mechanical springs are included into the leg structure in order to recover some energy and ensure certain passive compliance.
The biggest drawback of fully active compliance is the inability to absorb and restore energy. The only solution which mimics the compliance in the real world is the one that uses variable passive compliance leg design. To the best of authors’ knowledge, the earliest known research which analyses elastic storage mechanisms is the MIT technical report that explores active balance for the dynamic legged systems presented in [20]. The authors analyse the property of the material to store the energy starting from steel in tension towards compressed gas. The hydraulic-pneumatic telescoping leg is presented which contains an air chamber with controllable air pressure to simulate a variable spring. The latest variable compliance mechanisms rely on relatively complex designs which include a combination of non-linear springs in combination with at least one actuator in order to control the compliance of the entire mechanical system. An actuator with mechanical adjustable series compliance (AMASC) is depicted in [21]. The nonlinear spring behaviour is formed by a set of spiral pulleys which deform the two fibreglass springs. The compliance and the equilibrium position can be controlled independently by using dedicated motors. Similar mechanically complex approaches can be found in [22, 23].
The principle adopted for the presented foot design has similarities to the RHex hexapod C-leg solutions [24, 25]. The RHex C-leg is designed as a compliant C-shaped beam which is rotated by a single actuator. During the rotation the C-leg produces vertical and longitudinal forces to the body which allows the efficient RHex locomotion through “flowable ground” such as grass, mud or sand [26]. The design of a C-shaped multi-directional variable stiffness leg for RHex is described in [27, 28]. The leg stiffness can be varied with an actuated slider position. As the leg rolls during the stance phase, its stiffness additionally changes depending on a rolling contact point position whose influence, according to the authors, is not significant and can be additionally compensated by optimization.
All presented robot leg designs have the ability to control compliance but they lack information on how to detect the ground stiffness, which is needed as feedback for stable gait control on stiffness-varying surfaces. The authors in [29] conclude that human runners completely adjust the leg stiffness during the first step on the unknown surface only if they knew in advance that the change would happen and already had experience about the ground stiffness from the past. Unexpected ground stiffness transition could lead to disruptions that might cause losing the balance.
This research suggests that a robot could prepare itself in advance for the stiffness transition by using, for example, the image processing feedback, and then during the transition, it could use a ground stiffness feedback from the leg for adaptation of leg stiffness if possible. For this purpose a novel design of a quadruped robot with legs having their feet in the form of a spiral spring attached to the rotary shaft of the ankle is proposed (see Figure 2). The fact that the spiral spring can rotate and change the contact angle with the ground extends the variable passive property to the leg in a whole and thus enables direct stiffness control during robot motion. This feature should allow the robot to walk, run and jump with higher energy efficiency than the concurrent simpler quadruped robot designs. The first prototype of the envisioned quadruped robot, called Dynarobin, having oval feet firmly attached to the legs was presented in [30].

Dynarobin - a compliant quadruped robot design
The remainder of article is organized in the following way. In section 2 a compliant leg design is presented. Also, foot spring stiffness is experimentally identified using a strength tester measurement system. A method for damping coefficient identification, based on the observation of energy losses during the stance phase of hopping, is described. The analytic solution is derived from observing the mathematical model of a bouncing ping-pong ball. In section 3 a vision tracking system is used to measure the hopping leg position and velocity, which were used to calculate the damping coefficient. The foot contact angle adaptation algorithm, based on a contact time feedback measured by a flex sensor, is presented and tested on a single leg experimental platform. The final experiment evaluates the possibilities and requirements of a foot used on the quadruped robot like Dynarobin in section 4. We conclude the article with final remarks in section 5.
A planar 3-DOF robot leg design with active and variable passive compliance properties, which can be easily upgraded to a 4-DOF leg by adding a lateral hip joint, is shown in Figure 3. The leg consists of three revolute joints (i.e. hip, knee, and ankle), two rigid links (thigh and lower leg) and a foot having the form of a rotary head with a flexible spiral shaped beam (see Figure 4). The robot leg mass M contains masses of servo motors, links and other present elements. The hip and knee joints, actuated with Dynamixel MX-64 motors, control the (x, z) position of the leg, but through torque control they also provide active leg compliance. The ankle joint, which rotates a spiral foot, is actuated by the Dynamixel MX-28 motor.

The leg design with a spiral foot attached to the ankle

The spiral foot CAD model
Biological equivalents to torque controlled robot actuators are muscles, which connected tightly with bones and tendons, enable both actuation and active compliance during locomotion. Muscles can be modelled in a simplified way as springs with variable stiffness coefficient ka, variable damping coefficient ca and controllable initial length La0. The same simplified model can be directly applied to a robot leg, as depicted in Figure 3.
In order to measure the foot spring contraction during a ground contact phase, a low cost flex sensor is attached to the spiral foot. Measuring of contraction duration can give not only the information about the beginning of the stance phase, but also can serve as a basis for rudimentary approximation of the ground stiffness coefficient kg. This information can serve as a feedback to the leg stiffness control algorithm.
The aim of introducing the revolute flexible foot is to get closer to the functionality of a real tendon. We can model it as an additional spring with a stiffness coefficient ks, damping coefficient cs and initial length Ls0. By rotating the foot during the flight phase, fast and reliable control of the contact point between the foot and the ground becomes possible, which directly affects (changes) ks, cs and Ls0, turning them into controllable parameters. The active hip/knee compliance and adjustable passive foot compliance yield the total leg compliance parameters kL and cL. By knowing the configuration of terrain (here we consider only flat stiffness-varying terrains) and by controlling the point of foot contact with the ground, we provide basic conditions for implementation of robot stiffness control.
A spiral foot (its CAD model is depicted in Figure 4) consists of a stainless steel based spiral-shaped spring connected to the ankle motor shaft through an aluminium head with a total mass of Ms. The foot passive compliance properties depend on mechanical characteristics of a spiral-shaped spring: used material, thickness A, width B and radius r(α). The radius r(α) represents the spring relative distance to the central rotational axis

The contact angle α
The mechanical foot design is adapted to the robot prototype size and weight and all spring identification and analysis is performed accordingly (see robot and foot parameters in Table 1). Used materials, curvature, width and thickness define values of foot stiffness ks(α) and damping cs(α). The curvature radius of the spring (foot length) is in the range from 0.02 m to 0.06 m (10% to 27% of the leg length) which satisfies the cat-alike natural three-segmented limb ratio [31]. The foot spring width (0.01 m) and thickness (0.001 m) are conditioned by a single leg load value around Ml = 0.58 kg and by the requirement that the largest displacement of the foot head should not exceed the maximally allowed contraction of the foot at the contact angle α = 0°, i.e. when foot stiffness ks is the lowest. More detailed analysis of influence of mechanical design characteristics on ks(α) and cs(α) demands deeper simulation and experimental analysis by using the Finite Element Analysis method as shown in [32], which is beyond the scope of this article.
Dynarobin and spiral foot design characteristics
The spiral foot stiffness identification was performed by using a strength tester TensoLab 3000 [33] measurement system shown in Figure 6. The experimental platform consists of a measuring load cell attached to a base plate which can be vertically translated. The other part of the load cell is connected to the foot which is rotated by control of the ankle joint servo motor. During one measurement the foot head undergoes a series of angular displacements equal to 22.5° starting from α = 0° to α = 180°. For each angle the foot is positioned above the ground and then vertically translated with a speed of 0.05 m/min.

The spiral foot identification process
Force measurement starts at foot touchdown (Δ = 0 m) and ends either when the maximum displacement Δ = 0.02 m or maximum force F = 55 N are observed. In total three measurements for each observed angle were conducted (see Figure 7). The family of average curves F = f(Δ) for α = (0, 22.5,.., 180) were then approximated with 2nd-degree or 1st-degree polynomials as depicted in Figure 8 and Table 2.

Force measurement depending on α (three measurements for each angle repeated)

Force measurement depending on displacement Δ, first and second-order approximation
Spiral foot contact force - first and second degree approximation for different α[°]
Although the second-degree polynomial best fit the stiffness function (smaller MSE), the linear approximation ks for each angle was chosen as it provides adequate accuracy and simplicity and is therefore going to be used in the foot damping coefficient identification (see Table 3). Finally, the second-degree polynomial approximation of stiffness ks as a function of foot angle α[°] is shown graphically in Figure 9 and represented analytically as:

Second-order approximation of stiffness ks as a function of spiral foot angle α[°]. The red dots represent the measured ks values from Table 3.
Spiral foot stiffness - first-degree approximation for different α[°]
In addition to the stiffness coefficient ks, the spiral foot contains damping coefficient cs which causes energy losses during the stance phase. In order to analytically calculate the energy losses, we assume that hip and knee actuators are locked (ka → ∞), and the entire leg is observed as a simple mass-spring-damper model with total mass ML = M + Ms, stiffness ks and damping cs. The ground stiffness is assumed to be very stiff (kg → ∞) and without damping (cg = 0 Ns/m) (see Figure 10).

A mass-spring damper model with a mass ML and stiffness ks and damping cs
At the initial stage of the jump, the leg is at height h0 with initial speed υ = ||
The final height h1 depends on the velocity υ1 obtained at the end of the stance phase. The energy losses can be observed as a difference between the kinetic energy calculated at υ0 and υ1. Since it is easier to measure the height difference Δh = h1 – h0 rather than the speed difference Δυ = υ1 – υ0, it is easier to observe the difference in the potential energy.
The analytic solution to the energy losses problem is inspired by the work in [34] where the mass-spring-damper model of a bouncing ping-pong ball has been analysed. The motion of a leg is observed in the translated coordinate frame (x, zΔ) which yields:
where ZΔ(t) = z(t) – Ls0 and g0 = 9.81m/s2 represents the gravity. Using the initial conditions of zΔ(0) = 0 and υ(0) = –υ0, where υ0 is the velocity of mass ML at the initial contact, the analytical solution yields:
where
The total hopping period consists of the stance contact time Tc and the flight time Tf. Tc can be obtained from (4) by finding the first solution to the equation zΔ(0) = 0. In order to solve it analytically, the equation (4) is rearranged as:
Assuming
and the minimum non-zero solution which represents the contact time Tc is:
The flight time Tf is defined as:
where
Accordingly, the total hopping frequency is defined as:
Finally, the energy loss caused by the damping factor cs can be obtained from the difference of kinetic energies:
As mentioned, the difference in kinetic energy can be measured indirectly as the difference in the potential energy at the apex of the two consecutive hops:
The damping factor cs can be obtained from (12) as:
where
In order to evaluate the presented foot design two experimental platforms were used. The experimental platform called Planarizer, depicted in Figure 11, uses a rotational boom to suspend the motion of the single leg. This platform is widely used for the experiments with legged robot platforms [3, 17]. The planarizer constrains the motion of the leg to 2D space (i.e. horizontal and vertical motion) and ensures that the leg follows a circular path, which in turn allows for the leg to cover long distances and prolongs the experiments. The leg behaviour during motion is tracked with the Smartek GigE camera [35] providing the motion tracking frequency of up to 75Hz. The setup for motion tracking is made out of one infrared marker (see Figure 11) placed on the leg. This marker is tracked and its position is analysed for identification and control purposes.

Planarizer - the experimental platform with a rotational boom
The second experimental platform is the quadruped robot Dynarobin already depicted in Figure 2.
In order to calculate damping (14) the following values from Figure 10 are necessary: the initial height h0, the initial contact speed υ0, the final height h1 and the mass ML. The hip and knee joints are fixed (extended leg position) and the leg with mass Ml = 0.7kg (leg + planarizer bar) is repeatedly released from different heights h0. One example of the tracked marker starting at height h0 = 0.262m is depicted in Figure 12. The height difference value Δh is used to calculate the potential energy losses (13). In total, the leg was released from nine different heights h0 and also for nine different angles α = 0°, 22.5°, 45°, 67.5°, 90°, 112.5°, 135°, 157.5° and 180°, yielding the total of 81 tests. The blue circles of which some are ovelapping represent the results of all tests for the damping cs (see Figure 13). Finally, the third-order approximation of cs with respect to a marked red in Figure 13 is represented analytically as:

The example of tracked IR marker position

Spiral foot damping cs as a function of angle α[°]
The final values for the characteristic angles are listed in Table 4. The approximation of energy losses is also calculated based on obtained Δh values and goes from 19.5% (α = 0°) towards 73.6% at α = 180°.
Spiral foot damping depending on the angle α
The previous stiffness and damping identification experiments have shown that the presented foot design is able to change stiffness from the minimal ks = 1253 N / m at α = 0° to the maximal ks = 8600 N / m at α = 180° and recover the energy from the previous hop which goes up to 80% at the minimum contact angle value α = 0°. As pointed in introduction, the possibility to adjust the leg stiffness to the desired locomotion stride frequency and the ability to partially recover the energy from the previous hop confirms the contribution of spiral foot design in lowering the total energy cost of locomotion.
Foot deflection during the stance phase is measured by a flex sensor and transformed into a suitable digital value denoted as AD value by using the microcontroller dsPIC30F4013. The result of deflection measurement can be used for determination of Tflex, the time elapsed from the initial contact (start of the stance phase) to the foot maximum deflection (see Figure 10).
In order to analyse the leg behaviour on different surfaces a simple control design is introduced as shown in Figure 14. When the foot reaches maximum deflection, the microcontroller triggers the main computer to actuate the leg and to generate force on the foot in -z direction. This movement adds additional energy to the system and allows jumps of a single leg above the ground. During the flight phase the microcontroller calculates interval Tflex from the previous hop, which is then used as a feedback for the foot contact angle adaptation algorithm. The aim of a leg surface adaptation experiment is to show that the time interval Tflex can remain constant in case of hopping on different surfaces if the contact angle of the spiral foot is properly adjusted. Based on the measured time Tflex, the adaptation algorithm changes the foot angle α in order to reach a targeted reference time Tflex0.

The control design
The example of the flex sensor AD values acquired during the stance phase are shown in Figure 15. The initial deflection value during the monitored flight phase is AD0 = 2200. Any change bigger than the threshold value ΔADmin triggers the microcontroller to start receiving flex sensor data. The blue coloured AD signal represents the feedback of the leg without actuation during the stance phase. It can be seen that the maximum deflection is reached in time Tflex = 0.04 s and the starting AD0 value is reached again in TSU = 0.082 s. The red coloured AD signal represents the actuated leg which generates force during the second part of the stance phase. The total stance phase is extended to TSA = 0.1 s, which is the result of additional energy added to the system. This experiment confirms that the leg actuation force is generated right after the maximum deflection moment because the measured time Tflex for the red and blue AD values are equal.

The flex measured value AD
If the leg starts to generate force significantly before or after the actual maximum deflection moment, the total energy added to the system is lessened. During experiments it was found that for contact angles higher than 60° the leg actuation with Dynamixel motors was too slow to recover energy dissipation needed to make a jump. Consequently, the lower and upper limits of the contact angle adaptation range were set to 0° and 60°, respectively.
During the period of time Tflex there is no actuation and the whole leg behaves as a 2-DOF mass-spring-damper model with masses ML and Mf, stiffness ks, kg and damping cs and cg, as shown in Figure 16. This 2-DOF model can be simplified [36] by using the 1-DOF model with mass Mequ and stiffness kequ and cequ defined as:

2-DOF and equivalent 1-DOF spring-mass-damper system
The time Tflex for the 1-DOF model is defined as:
The experiments were conducted on three types of surfaces as shown in Figure 17: hard wood, single and double layer sponge with thickness of d = 0.02m and d = 0.04m, respectively. The sponges were placed on the wooden floor. The hard wood surface was very stiff in comparison to the foot and the estimated hard wood stiffness was about kgw = 11000 N / m. The estimated damping value was negligible, cgw = 0 Ns / m. A complex theory explains that the material stiffness and damping depend also on the contact area between two objects in collision [37]. The total surface deformation Δd in the stance phase depends on the material stiffness, contact area and initial kinetic energy of the leg at the moment of initial contact.

Single leg surface adaptation: a) Hard wood surface. b) Single layer sponge. c) Double layer sponge.
In the experiments carried out the stiffness and damping of the sponge surface were determined experimentally. The foot being in contact with the single layer sponge surface at the contact angle α = 180° was much stiffer than the sponge, which ensured good estimation of the sponge parameters. During hopping on the double layer sponge the surface deformation never exceeded 75% of the total thickness d = 0.04m. In contrary, the surface deformation of the single layer sponge reached the maximum d = 0.02m and therefore, the total effective stiffness consisted of sponge and wood stiffness in series. Based on the experimental measurements the resulting single layer sponge stiffness was around kgs = 1800 N / m. The experimentally obtained stiffness and damping coefficients for the double layer sponge surface were kgds = 800 N / m and cgds = 4 Ns / m.
The foot contact angle adaptation algorithm is related to stride frequency, which means that it is executed once in each hop interval of the robot leg:
where Kγ represents the adaptation gain, hop denotes a current hop of the leg and Tflex is defined as:
For cg = 0 Nm / s, the influence of kg on P(α) for α changing from 0° to 90° is presented in Figure 18. It can be noted that the change of kg from 800 N / m to 11000 N / m shifted the curve P(α) for approximately 0.02s and increased the slope. Also, the variation of kg has larger influence on Tflex as the α increases. The change of cg for three kg values (800 N / m, 1800 N / m, 11000 N / m) is presented in Figure 19. It can be observed that the change of cg from 0 Nm / s to 8 Nm / s shifted the curve P(α) maximally for 0.002s, with minimal changes of slope, which allowed us to neglect the cg value in the analysis that follows. In order to calculate the adaptation gain Kγ (see equation (18)), the function P(α, kg, cg = 0) is linearised as:

The influence of kg on P(α), cg = 0 Ns / m

The influence of cg on P(α), kg, cg): a) kg = 800 N / m. b) kg = 1800 N / m. c) kg = 11000 N / m.
The Kp(α0, kg) values for the whole range of α0 (0° to 90°) and kg (800 N / m to 11000 N / m) are depicted in Figure 20.

The linearized KP (α, kg)
Based on Figure 21, the transfer function of the contact angle adaptation loop is defined as:

Contact angle (leg stiffness) adaptation scheme
where the value of
defines the rate of adaptation.
Because the time interval Tflex is measured in discrete time intervals defined by non deterministic duration of each hop/jump, determinism can be established in the hopping timeframe by expressing τ as a number of hops [hop] (i.e. adaptation iterations).
As depicted with the solid red coloured curve in Figure 22, a double layer sponge (kg = 800 N / m) had the lowest gain for each angle α0, representing thus the worst case for adaptation. This curve is approximated by the following second order function:

The linearized KP (α, kg), side view
Upon inclusion of (22) in (21), for given α0, Td = 1 hop and KPds(α0) → KP, a desired minimal rate of adaptation τ can be provided on all surfaces by using the following adaptation gain:
which guarantees stability, based on the poles of the transfer function (20), for all τ > 0.5 hop.
The tests of the described adaptation scheme were carried out through repetitive jumps of the robot leg on three different surfaces. The actuated leg path repeatedly generated movement in -z direction Δza = 0.03m. The total equivalent mass is Mequ = 0.7kg (Mf ≈ 0). As discussed before, contact angle adaptation during the experiments was constrained to the range from α = 0° to α = 60°. The presence of this limit is also visible in the contact angle adaptation scheme depicted in Figure 21.
The experiments containing N = 250 hops were conducted on three different surfaces in the following order: hard wood surface, single layer sponge, double layer sponge and back over via single layer sponge to the initial hard wood surface. The surface changing interval was set to N=50 hops. The hopping result with the fixed contact angle α = 0 is presented in Figure 23 a). It can be observed that on the single layer sponge the initial Tflex = 0.041 s changes to Tflex = 0.051 s and then, on the double layer sponge, it reaches Tflex = 0.062 s.

The leg surface adaptation: a) No adaptation. b) Adaptation with τ = 4 hop. c) Adaptation with τ = 2 hop. d) Adaptation with τ = 1.5 hop.
For the given reference time Tflex0 = 0.040 s, the adaptation algorithm results for three various adaptation rate values (τ = 4, 2 and 1.5 hop) are depicted in 23 b) to d). It can be observed that for all three values of τ the measured Tflex values ended in narrow interval around the reference value 0.040 ± 0.002 s. The experiments showed that adaptation rates smaller than τ = 2 hop produced larger overshoots and oscillations.
The experiments on a single leg have confirmed that presented revolute spiral feet design comprises the following properties:
R1: Variable passive compliance based on single servo motor control
R2: Detection of maximum deflection moment based on the feedback from the flex sensor mounted on the spiral feet
R3: Reusing energy stored in the spiral feet from the previous hop / step
R4: Surface adaptation capability based on the measured time Tflex and change of the foot contact angle α
In order to fully evaluate these properties on quadrupeds, it is necessary to fulfill some demands on the robot control structure. Based on our recent research [38][39], potential problems and necessary conditions on the robot control structure are presented hereafter, especially to evaluate the properties R3 and R4.
Requirements on quadruped robot control structure
There are four most common quadruped gaits: walk, trot, pace and bound. Gaits exhibit different characteristics in terms of speed, stability and energy efficiency [40, 41]. The walk gait keeps three legs in contact with the ground in every moment and it is considered to be optimal for range of fairly low speeds. The trot gait produces symmetric leg movements with respect to robot's diagonal in order to provide faster forward locomotion. The pace gait is similar to trot but the pairs are formed by the two legs on the same side. Finally, the bound gait allows the quadruped to reach higher locomotion speeds. In theory all types of four-legged gaits can assume the properties R3 and R4 except of the walking gait whose behavior of robot legs cannot be approximated by the SLIP model.
Referring to our complementary research work described in [39], the foot trajectory for all types of four-legged gaits can be described a as cyclic trajectory divided into three distinct segments (see Figure 24): the propel segment from points p1 to p2 where a robot is propelling itself by pushing the foot in horizontal direction while in contact with the ground; push segment lasting from p2 and p4 produces vertical and horizontal components of the foot take-off force; the adjust segment spanning between points p4 and p1 adjusts the robot leg to initial position. Each segment has respective duration time: tpropel, tpush and tadjust. By using the proposed state machine-based approach [39], the presented foot trajectory shape can be executed on all four legs depending on a selected gait with ability to adjust positions of the trajectory points pi and duration of the propel, push and adjust segments. The proposed approach provides ability to optimize the foot trajectory based on a multiple criterion function with arguments like speed, gait stability and energy efficiency (property R3).

Proposed trajectory shape [39]
A simplified dynamic model of a quadruped robot consists of a main body attached to four active springs each representing one robot leg. The main body can be modeled as a system of four equally displaced cuboid masses Mqi, i = 1,..,4, as shown in Figure 25. Referring to relation (17), correct measurement of Tflexi requires knowing Mqi, which is satisfied only if all gait supporting legs touch the ground at the same time. In other words, any deviation from that condition can yield inaccurate ground stiffness measurements. Deviations may occur due to many reasons such as uneven terrain configuration, imperfect robot construction, type of control, robot's task, influence of external forces etc. Some of these causes will affect the distribution of quadruped masses Mqi, other will cause that all supporting legs do not touch the ground simultaneously. In order to fulfill the goal R4, the control algorithm must provide simultaneous actuation of all four legs (real time motor control), controllable mass distribution (tail control [38] or kinematics-based body pose adaptation [30]), active compensation of unwanted body rotations (tail control) and robust measurement of time Tflexi (initial contact and maximum deflection time), etc. In other words, the spectrum of quadruped control goals is now expanded also to possible ground stiffness adaptation.

Symplified quadruped body dynamics
In order to fulfill the requirement R3, the proposed control structure based on a three segmented trajectory can reuse the energy from the previous step if the following conditions are satisfied:
The propel phase starts when the foot touches the ground. This moment is detected by the flex sensor.
The push segment needs to start around the foot maximum deflection time. This time can be predicted by a current foot angle α.
The length of the stride period (tpropel + tpush) must be equal to the foot contact time Tc.
The transition from the adjust to the propel phase occurs at the ground contact event.
Partially reused energy from the previous step reduces the need for additional actuation energy during the push segment, which eventually reduces the total cost of locomotion. The practical confirmation of the property R3 for robot Dynarobin is a part of future work.
In order to evaluate the requirement R4, the quadruped hopping gait experiment with adaptation to stiffness varying surfaces is organized in a way that the robot is repeatedly released manually from the height h0 = 0.05 m without generating any leg movement in -z direction (Δza = 0) during the contact phase. This ensures that all legs touches the ground at the same time. Each leg i has the ability to adapt stiffness and to measure the time Tflexi, i ∊ {1, …, 4}. In order to provide more stable results, the contact angle adaptation algorithm uses the average feedback time TflexΣ defined as:
The robot is repetitively released on two different surfaces in the following order: hard wood, double layer sponge and again hard wood (see Figure 26). In total N=150 hops are conducted with a surface exchanging interval of N=50 hops. The approximated mass for each leg is Mequ = 0.75kg which includes the leg mass and the quarter of the body mass.

Dynarobin experiment a) Hard wood surface. b) Double layer sponge.
Without contact angle adaptation the changes in surface stiffness result with changes of Tflex from initial 0.043 s on the hard wood to approximately 0.065 s on the double layer sponge (see Figure 27 a)). The results of adaptation algorithm can be seen in Figure 27 b). The changes in surface stiffness are successfully compensated by using the adaptation rate τ = 2hop.

Quadruped surface adaptation: a) No adaptation. b) Adaptation with τ = 2 hop.
The simple mechanical design of a robot leg with an elastic spiral-shaped foot allows the leg to possess both active and variable passive compliance properties. The reuse of energy stored in the position-controlled foot spring brings such a design closer to a biological model. Efficient locomotion control requires knowing the stiffness and damping coefficients of the compliant robot leg which must be identified for different contact angles with the ground. In the article, the foot stiffness identification is performed by a strength tester TensoLab measurement system. The damping coefficient is observed through energy losses during the hopping contact phase. The analytic solution is derived using the mathematical model of a bouncing ping-pong ball. The vision tracking system is used to measure the position and velocity of the leg during hopping which is further used for calculating the damping coefficients.
The spiral foot surface adaptation algorithm is presented based on measured time Tflex obtained by flex sensor feedback. The experiments were performed on two experimental platforms, a single leg and a quadruped robot called Dynarobin. The possibility to adjust the leg stiffness and ability to partially recover the energy from the previous hop confirm the contributions of the foot design to lessening the total energy cost of locomotion. Finally, the presented experiments confirm the ability of the adaptive stiffness system to keep the changes of contact time Tc constrained in a narrow range, which is a necessary condition to obtain energy efficient quadruped locomotion. Future work will continue with solving the problem of robot stiffness adaptation to stiffness variations of natural, uneven terrains, where interference of balance control and stiffness control will be investigated.
Acknowledgements
This work was supported by a grant from the Ministry of Science, Education and Sports, Republic of Croatia. Special thanks to Marko Cukon, who was the Dynarobin and the spiral foot designer. Special thanks to the company MIRTA-KONTROL d.o.o. (www.mirta-kontrol.hr), the owner of the TensoLab 3000 measurement system.
