WorksComputer Science
Learning Purposeful Co-designs of Bio-inspired Quadrupedal Robots
Abstract
Treating morphology and control as separate design problems has constrained the efficiency and adaptability of quadrupedal robots, while current co-design approaches are often constrained by restricted design spaces. We overcome this limit by introducing Dogger, a bio-inspired quadruped with modular three-segment legs, four-bar linkages and adjustable passive knee compliance. A two-stage framework combining reinforcement learning and Bayesian optimization is developed: the morphology-conditioned control policy is trained across designs and then held fixed during task-specific design selection. The resulting designs and policies deployed zero-shot reduce the cost of transport by 18.6% and 35.7% for inspection and payload-carrying tasks. Comparisons demonstrate that full geometry-compliance co-design outperforms fixed and restricted design scopes. Cross-task tests further reveal distinct task-specific morphologies with shared mechanical trade-offs. These results provide hardware-level evidence that expanding the physical design space alongside learned control is essential to realize the full potential of task-driven morphology-control co-design in legged robotics.
Introduction
Animals exhibit diverse forms of agile, efficient and adaptable locomotion through the close integration of morphology, neural control and behaviour. This coupling continues to inspire the design of legged robots capable of meeting different task demands [1, 2, 3, 4].
Inspired by the natural muscle-skeleton system, passive elastic actuators, especially parallel elastic actuators (PEAs), are incorporated into the quadrupedal design, improving robustness, reducing energy consumption or generating highly dynamic motions [5, 6, 7, 8, 9, 10]. On the other hand, learning-based controllers have enabled quadrupeds to traverse challenging terrain [11, 12, 13], locomote over deformable surfaces [14], and perform agile or adaptive multi-skill behaviours [15, 16, 17, 18]. Yet these controllers are typically developed for a specified mechanical platform, whose leg geometry and passive mechanics shape the dynamics and energy exchanges underlying locomotion. Changes to these properties may therefore require policy retraining or hardware-specific adjustment. Physical
This work is supported by the EU project 101016970 NI.
Fabio Boekel and Cosimo Della Santina are with Cognitive Robotics, Delft University of Technology, Building 34, Mekelweg 2, 2628 CD Delft, Netherlands (e-mail: [email protected], [email protected]).
Jiatao Ding is with AI Core, Beijing Zhongguancun Academy, Beijing, 100094, China (e-mail: [email protected]). Cosimo Della Santina is also with the Institute of Robotics and Mechatronics, German Aerospace Center (DLR), 82234 Wessling, Germany (e-mail: [email protected], [email protected]).
Jiatao Ding is the corresponding author.
legged robots provide concrete examples: Badri-Spröwitz et al. developed BirdBot, which uses avian-inspired geometry and passive clutching to support energy-efficient locomotion with minimal active control [19]; Ruppert and Badri-Spröwitz matched a closed-loop central pattern generator (CPG) to passive elastic dynamics [10]; and Stella et al. embedded behavioral synergies in tendon routing, pulley geometry, and joint stiffness [1]. Together, these studies highlight the importance of coordinating mechanical structure and control, as further illustrated by the system-level energy-efficiency improvements demonstrated by RAIBO2 [20]. They motivate a broader design question: How should morphology and control be jointly optimized to meet different task demands?
Morphology-control co-design offers a promising way to address this question. Evolutionary approaches search mechanical design and gait or controller parameters [21], while trajectory-optimization and control-aware methods incorporate design variables into motion optimization [22, 23, 24]. Reinforcement learning (RL) approaches have explored concurrent learning of agent design and behaviour, including frameworks that couple online and offline learning [25, 26, 27, 28, 29]. Other approaches combine learning with trajectory optimization or evolutionary search [30], [31], or couple evolutionary design search with optimal control [32]. Meta-RL and design-conditioned policies further support the evaluation of candidate morphologies by reusing learned control across designs [8], [33]. Collectively, these approaches have broadened the available optimization strategies. However, an algorithmic formulation alone does not determine which mechanical variables can be changed in a real robot, how readily candidate designs can be fabricated and exchanged, or whether predicted improvements persist after hardware deployment.
Recent studies have begun to address these physical challenges. Song et al. designed task-oriented quadrupedal leg mechanisms, introducing a differential three-segment design for payload and efficiency [34]. Most directly related to this work, Bjelonic et al. combined a design-conditioned RL policy with Bayesian optimization (BO) to co-design passive knee elasticity and locomotion control on ANYmal [8]. Their study demonstrated learning-based physical co-design with a mechanical search focused on passive knee elasticity. Design optimization used a teacher policy, whereas a distilled student policy was deployed on hardware. These advances demonstrate the practical value of co-design, while leaving open how different mechanical design freedoms should be combined for a given task. In particular, optimizing passive compliance within a prescribed leg geometry does not establish whether jointly varying geometry and compliance yields additional benefits, or how these benefits change across tasks. Systematically investigating these questions on hardware calls for a platform that supports controlled variation of geometry and compliance, together with a control framework for evaluating candidate designs and deploying the selected configurations.
In this work, we jointly expand the mechanical design space and the learning framework through developing a modular hardware platform and proposing a morphology-aware design strategy. By aligning an expressive physical substrate with advanced co-design algorithms, we provide a systematic real-world demonstration that morphology–control co-design yields substantial gains in quadrupedal locomotion under specific task requirements. This overarching contribution unfolds through three key technical advances:
Modular quadruped Dogger. We introduce a modular quadruped for systematic morphological variation. Its bio-inspired three-segment legs and parallel-elastic knee elements enable rapid changes to geometry and passive compliance while retaining the same trunk, actuators, sensing and onboard computing, providing an expanded, physically realizable design space for co-design.
Morphology-aware learning framework. We develop a two-stage co-design framework that combines RL and BO. A morphology-conditioned policy is trained across a distribution of leg geometries and compliance parameters, then held fixed while BO selects task-specific designs. The same policy evaluates candidate designs and controls the selected hardware without retraining or distillation.
Experimental validation of task-dependent design benefits. We demonstrate zero-shot sim-to-real transfer of optimized designs and policies. Relative to a nominal spring-disengaged configuration, the selected hardware reduces system-level cost of transport by 18.6% for inspection and 35.7% for payload transport, providing quantitative evidence of real-world efficiency gains from expanded morphology-control co-design. Comparison studies show that joint geometry–compliance optimization outperforms fixed and restricted design scopes, while cross-task evaluations reveal task-specific performance trade-offs.
Methodology
This section details the co-design methodology for the bio-inspired quadruped, focusing on the three primary components: (1) the bio-inspired leg design, (2) the learning-based co-design algorithm, and (3) the sim-to-real strategy.
Bio-inspired Leg Design
As can be seen in Figure 1, the quadruped has four identical legs, each of which consists of two main components: a three-segment mechanism with four-bar linkage kinematics and a parallel spring at the knee joint. This bio-inspired configuration expands the mechanical design space compared to a traditional two-segment non-elastic leg.

Figure 1. Design of the bio-inspired leg. The lengths of the leg’s links are scaled from their nominal values (, , ) using scaling factors (, , ). The spring wheel’s diameter () adjusts the effective rotational stiffness, while the spring offset () specifies the engagement angle. The middle inset shows the clamps used to set . The right panel shows three spring-wheel configurations, with decreasing from left to right. The wire extending upward is connected to the spring, which is not shown here.
The leg morphology is determined by the three link lengths (thigh, shank and foot) and the mechanical properties of the knee spring system (rotational stiffness and spring engagement angle). Given three scaling factors: thigh (), shank (), and foot (), each link length is determined by its respective scaling factor and nominal length (denoted by , , , respectively). The rotational joint stiffness and the engagement angle are controlled by the wheel diameter () and spring offset (). Therefore, a specific design in the design space is parametrized as .
Three-segment leg mechanism
Inspired by animal anatomy, we design the leg with three segments, with a parallel linkage implemented for the third segment. The leg structure is fully 3D printed and designed to exclude any electronics and belts. Modifications to can be made by reprinting individual parts. The entire leg structure can be removed in one piece without the need to detach a single motor. These modular design features enable rapid and cost-effective testing of the co-design pipeline.
The scale parameters range from 0.70 to 1.30, with the bounds determined by the minimum and maximum sizes that can fit in the robot body. Reducing the lower limit was difficult because the parallel linkage joint in the thigh would interfere with the motor’s output axis, while increasing the upper limit would result in a collision between the front and back legs of the robot. The nominal scaling factor is centred within this range at 1.00.
Knee PEA mechanism
We further integrate a PEA into the knee joint to emulate the elasticity found in biological systems. Inspired by the wheel-wire mechanism in [3, 8, 35], we incorporate a spring in the thigh joint, to which a wire is connected. The wire passes over a wheel positioned at the knee joint, with both the wheel and the wire attached to the shank. In this design, the diameter of the wheel influences the rotational stiffness of the joint. Since the wheel is 3D printed, it can be easily swapped, enabling faster implementation, as there is no need to purchase a new spring each time the robot is optimized with a different spring stiffness. The mechanism with different wheels can be seen on the right side of Figure 1.
Furthermore, this design allows to be adjusted by altering the position of the clamps on the wire, effectively modifying the leg angle at which the spring activates. As can be seen in the middle inset of Figure 1, the position of the clamp can be changed by screwing or unscrewing the screw on the clamp and moving it along the wire.
For the PEA, we choose a spring with a stiffness of N/m, with ranging from 0 to 50 mm and from 0 to 10 mm. With these ranges, we can achieve a rotational joint stiffness between 0.03 − 2.62 Nm/rad and an initial torque on the knee joint in the standing position between 0 − 5.62 Nm. Across these parameter ranges, spring deformation remains below the limit at which plastic deformation occurs.
Learning-based Morphology-control Co-design
Our learning-based co-design pipeline uses a two-step process to optimize both the morphology and the controller, given a task (Figure 2). This process consists of 1) universal policy training using RL and 2) design selection through BO. In the first step, we train a universal policy that is adapted to robot designs () distributed across the design space . In the second step, we use to control the different designs for a specific task and select the best design with the lowest cost. After the two-step optimization, we obtain the task-specific design and the universal controller used to control it.

Figure 2. Two-stage optimization for morphology-control co-design. In Step 1, a universal control policy is trained in simulation across a broad design space using RL. In Step 2, a BO-based selector identifies the optimal design for a specific task by evaluating energy performance. For real-world deployment, the policy maps observations to actions while incorporating the feedforward spring torque , which helps to bridge the sim-to-real gap.
RL-based universal policy training
Formally, RL is formulated as a Markov decision process (MDP). At each timestep , the agent observes its state , in our case, a partial observation , and takes an action . This interaction results in a transition to a new state , and the agent receives a reward that evaluates the quality of its action. Using the new state and its policy , the agent takes the next action . The goal of the RL algorithm is to optimize the policy to maximize the cumulative rewards obtained over time.
The observation space, action space, rewards, and termination follow.
Observation space: The observation includes both the design parameters () and the remaining portion of the observation (). This portion consists of the commanded forward () and sideward () velocities, the commanded yaw rate, the gravity vector of the robot’s body, the actual yaw rate, the joint positions , and the previous actions . Together, these elements form the current observation .
Action space: The action space consists of the desired joint angles. is added to the predefined standing pose of the robot , resulting in the desired joint angles .
The commands generated by the policy are executed by actuators, which operate using the internal proportional-derivative (PD) controller. The PD controller generates the torques to track . See Figure 2B for an overview of how the actions are processed.
Rewards: The reward function combines task-specific and regularization terms. The task-specific reward focuses on velocity tracking, whereas the regularization terms promote motion smoothness, base stability and energy efficiency. In our work, the reward structure is designed to avoid biasing the policy toward specific designs. For example, we exclude reward terms such as body height, which could bias a specific design. Note that the reward also incorporates the cost function for the design selection (as discussed in the second step), ensuring alignment between the training and design selection objectives.
Termination: Each episode terminates when the robot flips upside down, reaches joint limits or exceeds the maximum episode length.
Our implementation uses a single fixed . Unlike [33], which uses a meta-RL approach to adapt policies across different designs, our simpler approach achieves robust performance across the considered designs, thereby simplifying the training pipeline. While [8] distinguishes between design-aware and deployment policies, we use a single policy informed by design parameters, ensuring that the deployment policy is also aware of the robot design. In addition, in contrast to [8, 33], we do not use motion primitives for the foot trajectories as part of the reward, enhancing the freedom to explore the best motion for each design.
BO-based design selection
In the second step, we select the best design by minimizing a cost function for a specific task .
The task defines the environment scenario and the task requirements. It can include a specific velocity command, a particular type of terrain, disturbance levels, or variations in the robot, such as a version with a payload. Given a task, we aim to improve energy efficiency by minimizing the cost of transport , defined as
where the total energy usage is calculated from the integration of the total power of the system over time, is the total distance, and is the total time.
The cost function above enables fair comparisons across different velocity commands and designs with varying velocity tracking performance, which, however, is not differentiable with respect to . Therefore, we utilize a derivative-free optimization method. In this work, we chose BO over an evolutionary algorithm because of its sample efficiency. Following the standard BO procedure, this design selection process takes place over multiple iterations. At each iteration , the BO algorithm receives the cost function scores of a batch of designs from the previous iteration. Based on these scores, it selects a new batch of designs . During each episode, the trained policy performs inference to control the different designs in . At the end of the episode, the scores of for these designs are returned to the BO algorithm. This process is repeated for a set number of iterations to find the best design .
Sim-to-real Transfer
To ensure the zero-shot transfer of purposeful co-designs from simulation to the physical world, we employ the following sim-to-real strategies: domain randomization, noise injection, feedforward compensation for the PEA and a comprehensive energy model.
Domain randomization
Domain randomization is applied by adjusting parameters such as body weight and inertia, PD gains, and contact friction. These ranges are selected based on real-robot testing to encompass the variability observed in real-world environments. Note that domain randomization is not applied during the second design selection step to ensure that performance differences between candidate morphologies are attributable to the design itself rather than stochastic environment variations.
Disturbances and noise injection
During training, random velocity perturbations are introduced to simulate unexpected disturbances that the robot may encounter in real environments. In addition, random noise is added to all observation values except for the design parameters. Noise is also added to the spring offset and resampled every 100 steps.
In the second step, the same disturbances and noise are applied. To ensure a fair comparison, we share the random seed across all tested designs, ensuring that each design experiences identical noise and disturbances during evaluation.
PEA simulation
The additional knee torque from the parallel spring is estimated with
where is the torque that is produced by the spring on joint , which depends on the joint angle , spring setpoint and the spring stiffness .
We compute a feedforward torque command using (2) to compensate for spring torque on the knee joint, allowing the policy to optimize the gait and utilize the spring effectively rather than compensate for spring-induced deviations.
Comprehensive energy model
To ensure that the purposeful co-designs in simulation reflect the real efficiency gains of hardware, we employ a comprehensive energy model that accounts for both the mechanical work of the bio-inspired legs and the static electrical overhead of the platform. The total power consumption () is estimated as the sum of the power consumed by the twelve motors and the power consumption of the remaining electronics, such as the NVIDIA Jetson computer. Denoting the total motor power as and other electronics as , we have
Measurements have shown that remains relatively constant during operation and is therefore time-independent. Inspired by [36], we estimate by
where is the torque applied by the motor , is the rotational speed, is the motor’s winding resistance, is the torque constant, and is the velocity constant. This equation accounts for both winding power dissipation, proportional to , and rotational power, .
Results
We evaluate physical co-design through complementary simulation and hardware experiments on the Dogger platform. The main results focus on task-specific design selection, cross-task performance, contributions of geometry and passive compliance, and robust locomotion on rough terrain.
Design and Evaluation Settings
We train the universal control policy using proximal policy optimization (PPO) [37] in thousands of parallel environments, each assigned a different design sampled from the morphology space. In our implementation, up to 8,192 environments are used for flat-terrain training within the Brax framework [38], while more complex terrain scenarios are trained using NVIDIA Isaac Lab [39] with 4,096 environments. Training requires approximately 15 minutes to 2 hours on a desktop GPU (NVIDIA RTX 4070), depending on the task complexity. The resulting controller operates at a frequency of 50 Hz.
For design selection, we use the tree-structured Parzen estimator (TPE) solver [40] provided by the Optuna library [41]. The process begins with a warm-up phase in which 100 randomly sampled designs are evaluated. Each design is evaluated for 6000 environment steps in the inspection task and 15000 environment steps in the payload transport task. Detailed settings for the RL reward, domain randomization, and BO are attached in the appendix. Hardware devices are also specified in the appendix.
Task-Driven Co-design for Energy-Efficient Locomotion
We asked whether different task objectives select distinct energy-efficient physical configurations and whether their predicted advantages transfer to hardware. We considered two design optimization tasks: task 1 for efficient inspection and task 2 for efficient payload transport, and evaluated each optimized design in both simulation and hardware experiments (see Figure 3 and Movie 1). The resulting designs are denoted by for task 1 and for task 2. These designs were compared with two nominal reference designs whose link lengths were set to be their mid-range values: nominal design 1, , with the springs disengaged, and nominal design 2, , with the springs set to be their mid-range values.

Figure 3. Snapshots from indoor experiments. For task 1, the robot walks forward at 0.5 m/s. For task 2, the robot walks sideways to the left at 0.25 m/s. Consecutive frames are separated by 0.12 s. All four selected designs were tested on hardware; only a subset is shown because of space constraints.
Task 1: Efficient Inspection
Task 1 represents an inspection along a fixed route, simplified as straight-line motion on flat ground alternating between walking and standing still (Figure 3A). Four repeated trials were performed for each design. The selected design for task 1, , was , , , mm, and mm, as visualized in Figure 4(A). From the left column of Figure 4(B), this optimized design achieved a 12.6% 0.4% reduction in compared with in simulation. Following zero-shot transfer, hardware experiments showed that achieved an 18.6% 1.7% reduction in compared with . Notably,

Figure 4. Task-driven co-design selects energy-efficient configurations. (A) The four designs: , , , and , where and share the same link parameters. The radar chart shows their five design parameters. Design colors: purple (), blue (), green (), and yellow (). (B) Relative changes compared with for task 1 (left) and for task 2 (right). Solid bars represent simulation and hatched bars represent hardware experiments; error bars show standard deviations. (C) Torque profiles of the front-right knee motor during task 1.
our calculation includes the static power consumption of all electronics, which accounts for approximately 50% of the total energy consumption. Because this static consumption is constant across designs and cannot be influenced by the design space, the improvement in locomotion-dependent energy use is larger than the system-level reduction alone suggests. Figure 4(C) shows the front-right knee torques for task 1, revealing the effect of PEA. With the PEA disengaged (i.e., ), the knee motor exhibits the highest peak torque, and most of the knee torque lies on one side of the zero line (marked by a dotted line). In contrast, when the PEA is engaged (, , ), the torque shifts, resulting in a lower peak value and a more balanced distribution centred around zero. In particular, the optimized designs and exhibit the most balanced torque distributions and the lowest peak torques.
Task 2: Efficient Payload Transport
Task 2 represents payload transport through omnidirectional locomotion while carrying a 2 kg payload (approximately 30% of the robot’s total mass). The robot received 16 commands spanning different walking directions and velocities over 2 minutes, and four tests were performed for each design (Figure 3B).
The selected design for task 2, , was , , , mm, and mm, as visualized in Figure 4(A). The right column of Figure 4(B) shows that, in simulation, achieved a 34.0% 0.3% reduction in relative to and was the most efficient among the four evaluated configurations. In the hardware experiments, reduced by 35.7% 3.1%.
It is worth mentioning that, although absolute differs between simulation and hardware, both the simulation and hardware experiments recognize the optimized morphology and the corresponding energetic benefits given the distinct task requirements, as evidenced by Figure 3B.
Cross-Task Validation of Selected Co-designs
To assess the task specificity of the selected designs, we further evaluated in task 1 and in task 2.
The left column of Figure 4(B) shows that achieved a 7.0% 0.4% reduction in relative to in simulation and a 13.5% 3.3% reduction on hardware for task 1 (yellow bars). Nevertheless, was less energy-efficient than the task-specific design . Conversely, reduced relative to by 14.4% 0.4% in simulation and 23.7% 2.3% in hardware experiments for task 2 (green bars in the right column). However, was less energy-efficient than the task-specific design .
These cross-validation results show that, although the optimized designs perform well when evaluated on the other task, they do not match the performance of the designs specifically optimized for their respective tasks. This indicates that the co-design process captures task-dependent optima rather than a single universally optimal solution. At the same time, the relatively strong cross-task performance suggests that these designs exploit underlying mechanical trade-offs that are partially shared across tasks, leading to overlapping regions of high-performing configurations in the design space. Consequently, the proposed pipeline does not simply identify a single best morphology but instead discovers task-aligned solutions within a structured design landscape in which multiple configurations can achieve competitive performance, depending on the task context.
Full Geometry–Compliance Co-design versus Restricted Design Scopes
To isolate the contributions of geometry and passive compliance, we compared four design scopes in simulation: a fixed configuration, link-length-only co-design, spring-only co-design and full link length–spring co-design. The restricted scopes optimized either the three segment lengths with the springs disengaged, or the passive knee-spring parameters with the segment lengths fixed at their nominal values, whereas the full scope optimizes all five parameters jointly.
As shown in Figure 5, the relative importance of the two mechanical design groups depends on the task. For task 1, link-length-only co-design produced only a small mean reduction of 1.1% 2.5% relative to the fixed configuration, whereas spring-only co-design achieved a larger reduction of 7.3% 1.3%. For task 2, the trend was reversed: link-length-only co-design reduced by 24.0% 0.9%, compared with only 16.3% 0.8% for spring-only co-design. Thus, within the tested design space, passive compliance contributes more strongly to the inspection task, while leg geometry contributes more strongly to payload transport.
Figure 5. Design-space ablation for tasks 1 and 2. The left and right columns correspond to tasks 1 and 2, respectively. The top row shows the selected design parameters for the fixed, link-length-only, spring-only and full link-length–spring design scopes. The bottom row shows the relative changes compared with the fixed configuration, ; error bars indicate standard deviations. In (B), purple, green and yellow bars represent link-length-only, spring-only and full geometry–compliance co-design, respectively.
Jointly optimizing geometry (link lengths) and passive compliance (spring parameters) produced the largest improvement in both tasks, reducing by 12.6% 0.4% for task 1 and 34.0% 0.3% for task 2. The selected full designs also combine different geometry and compliance settings for the two objectives (Figure 5, top row). These results indicate that geometry and passive compliance provide complementary design freedoms: restricting either group excludes configurations that achieve the lowest energy cost, whereas full co-design can adapt both the leg structure and passive knee mechanics to different task demands.
Comparison with Alternative Co-design Baselines
To assess the influence of the co-design formulation, we compared our RL+BO framework with two alternative codesign approaches: a CPG controller jointly optimized with the morphology using CMA-ES [42] and a privileged-RL controller combined with BO [8]. Each method optimized the same five physical design parameters for both tasks.
As illustrated in Figure 6, the three approaches selected substantially different physical configurations, indicating that the preferred morphology depends on the controller and optimization formulation. For task 1, CPG+CMA-ES achieved a mean of 96.0% relative to our method, corresponding to a 4.0% lower value, whereas privileged RL+BO reached 112.8%, corresponding to a 12.8% higher value. Thus, the CPG-based baseline achieved the lowest mean energy cost for the inspection task.

Figure 6. Comparison with alternative co-design baselines. The top row shows the physical configurations selected by CPG+CMA-ES, privileged RL+BO and our method. The bottom row shows the mean normalized to that of our method for each task; error bars indicate standard deviations.
For task 2, our method achieved the lowest mean . The normalized mean was 103.2% for CPG+CMA-ES and 103.7% for privileged RL+BO, corresponding to increases of 3.2% and 3.7%, respectively, relative to our method (see the bottom right in Figure 6). The CPG+CMA-ES results also exhibited considerably greater variability for this task.
Overall, these comparisons show that the proposed framework remains competitive across tasks with different locomotion demands, while the selected morphology depends on the co-design formulation.
Robust Locomotion on Outdoor Terrains
While the primary co-design optimization and quantitative evaluations were conducted on flat surfaces to ensure controlled comparisons, we further qualitatively assessed the robustness of the universal policy and the modular hardware on various unstructured outdoor terrains.
We deployed two distinct configurations across a range of challenging environments, including gravel, tall grass, uneven soil and forest debris (see Figure 7 and Movie 2). Despite the disturbances posed by the outdoor terrain, the learning policy successfully maintained stable locomotion. A separate continuous 17-min outdoor trial further demonstrated sustained locomotion without falling, controller reset or policy fine-tuning (Movie 3).

Figure 7. Robust locomotion in outdoor environments. Two distinct robot configurations are deployed across unstructured terrains; the configuration shown in the bottom two rows has a longer shank.
Conclusion
This work proposes a two-step learning-based morphology-control co-design pipeline to achieve purposeful, task-driven quadrupedal design, with a bio-inspired platform. Dogger’s three-segment legs and adjustable passive knee compliance expose complementary geometric and elastic design freedoms, while its modular construction makes these choices physically realizable. Coupled with morphology-conditioned learning, this architecture enables task-specific mechanical advantages to be identified and retained after hardware deployment. Sim-to-real deployment demonstrates that the resulting design and the control policy achieve energetic benefit satisfying different task demands.
Using the present two-step framework, however, task-specific design selection is performed under a previously trained policy, so the selected morphology depends on the capabilities of that controller. Allowing the policy to adapt alongside morphology could reveal effective pairings that remain inaccessible to fixed-policy design search. A single-stage learning-based co-design framework could pursue this direction by jointly optimizing policy and morphology within a common learning loop. In addition, incorporating additional structural variables and practical design constraints would further strengthen the connection to robot development. Ultimately, experience accumulated across successive tasks could improve both morphology selection and policy learning, providing a basis for continual improvement of the morphology-control co-design system.
Hardware Platform
This section provides additional details on the key components of the physical robot.
Data Collection Protocol
During hardware experiments, velocity commands are transmitted from a remote computer to the robot via a TCP connection. The commands are sent automatically according to a predefined schedule to ensure consistency across trials. The robot records sensor data at 25 Hz, including proprioceptive measurements, energy consumption, temperatures and control inputs. These data are then transmitted to the remote computer for post-processing. Hardware energy consumption is measured at the system level. In simulation, energy consumption is estimated using the defined in the ‘Methodology’ Section, which is also used during the second stage of design selection.
Hardware Platform Overview
To support the custom bio-inspired legs, we developed a modular robotic platform capable of accommodating different leg configurations. Existing platforms, such as the ODRI Solo 12 [43] and Unitree GO 1 [44], present integration challenges because of physical and software constraints on incorporating new leg designs. We therefore developed a custom platform to integrate the bio-inspired legs and support the co-design pipeline.
A key feature of Dogger is that it combines off-the-shelf electronics with custom 3D-printed mechanical components made from standard materials such as PLA, PETG and TPU. These components can be fabricated using conventional FDM printers, making the platform relatively inexpensive, reproducible and adaptable to future modifications.
The resulting quadruped, equipped with the nominal legs, is intermediate in size between the Unitree GO 1 and ODRI Solo 12. It weighs approximately 6.5 kg, with a front-to-back length of 37 cm and a width of 27 cm. The robot is actuated by Xiaomi Cybergears operating at 24 V and producing a peak torque of 12 Nm per joint. Power is supplied by a generic 2 Ah lithium-ion drill battery and distributed through an MJbots power-distribution board [45].
An NVIDIA Jetson Orin Nano [46] is used as the onboard computer. Communication with the actuators is provided by a PEAK M.2 CAN bus card [47] connected through the PCIe port, with each leg assigned a separate CAN bus. Through these buses, joint position commands are transmitted and joint position estimates are retrieved. An additional CAN-FD USB dongle (CANable 2.0) [48] enables communication with the power-distribution board to monitor the robot’s energy consumption. The robot’s orientation is measured using an onboard MPU-6050 IMU [49], configured in digital motion processor (DMP) mode. The IMU communicates with the Jetson through the I²C bus.
CO-DESIGN PIPELINE SETTINGS
This section provides further details on the training of the and the design-selection process.
RL Training Setup
We employ a universal control policy trained using proximal policy optimization (PPO) [37] to generalize across a range of robot morphologies and terrains. The policy is trained in simulation with thousands of parallel environments, each assigned a different design sampled from the morphology space. In our implementation, up to 8,192 environments are used for flat-terrain training within the Brax framework [38], while more complex terrain scenarios are trained using NVIDIA Isaac Lab [39] with 4,096 environments. Training requires approximately 15 minutes to 2 hours on a desktop GPU (NVIDIA RTX 4070), depending on the task complexity. The resulting controller operates at a frequency of 50 Hz.
To improve robustness in challenging environments, training incorporates a terrain curriculum and additional state information for value estimation. This setup enables stable performance across structured and unstructured terrains while maintaining a consistent control architecture across all experiments.
| Parameter | Value |
| Number of Timesteps | 150, 000, 000 |
| Episode Length | 1000 |
| Normalize Observations | True |
| Unroll Length | 20 |
| Number of Minibatches | 32 |
| Number of Updates per Batch | 4 |
| Discounting | 0.97 |
| Learning Rate | |
| Entropy Cost | |
| Number of Environments | 8192 |
| Batch Size | 256 |
| Policy Hidden Layer Sizes | (128, 128, 128, 128) |
Table I. PPO TRAINING HYPERPARAMETERS.
| Parameter | Value |
| Velocity Command Bounds | |
| Linear Velocity X | |
| Linear Velocity Y | |
| Angular Velocity Yaw | |
| Action Space Bounds | |
| Lower Bounds | |
| Upper Bounds | |
| Additional Reward Parameters | |
| Observation Noise | 0.065 |
| Action Scale | |
| Probability of Zero Command | 0.1 |
Table II. ENVIRONMENT-CONFIGURATION HYPERPARAMETERS.
Table I and Table II list the hyperparameters used for PPO training and environment configuration, respectively. Table III lists the reward components, whose symbols are defined in Table IV. The reward weights and domain-randomization ranges are reported in Table V and Table VI, respectively.
Design Selection Setup
For design selection, we use the tree-structured Parzen estimator (TPE) solver [40] provided by the Optuna library [41]. The process begins with a warm-up phase in which 100 randomly sampled designs are evaluated in parallel. Each design is evaluated for 6000 environment steps in task 1 and 15000 environment steps in task 2. We perform 45 iterations with a batch size of 20 designs per iteration, requiring approximately 45 minutes of computation on the same GPU.
| Reward Component | Expression |
| Tracking Reward Functions | |
| Tracking Linear Velocity | |
| Tracking Angular Velocity | |
| Regularization Reward Functions | |
| Linear Velocity along Z | |
| Angular Velocity in XY | |
| Orientation | |
| Torques | |
| Action Rate | |
| Foot Air Time | |
| Hip Deviation from Initial Pose | |
| Standing Deviation from Initial Pose | |
| Step Height | |
| Termination | |
| Foot Slip |
Table III. Reward functions.
| Symbol | Description |
| Joint position vector for all actuators. | |
| Default joint position vector for all actuators. | |
| Angular velocity of the -th actuator. | |
| Torque applied to the -th actuator. | |
| Action command for the -th actuator. | |
| Previous action command for the -th actuator. | |
| Actual linear velocity vector. | |
| Desired linear velocity vector. | |
| Actual angular velocity vector. | |
| Desired angular velocity around the axis. | |
| Orientation quaternion components representing pitch and roll of the base. | |
| Air time of the -th foot. | |
| Boolean indicating whether the -th foot is not in contact with the ground. | |
| Boolean indicating whether the -th foot is in contact with the ground. | |
| Linear velocity vector of the -th foot in the and directions. | |
| Step height of the -th foot. | |
| Step-height threshold for the -th foot. | |
| Heat loss constant. | |
| Mechanical power constant. | |
| Indicator function (1 if the condition inside is true, 0 otherwise). | |
| Boolean indicating if the episode has terminated. | |
| Current simulation-step index. | |
| Variance parameter controlling the sensitivity of the exponential function. |
Table IV. Symbols used in the reward functions.
| Parameter | Range | Unit | Notes |
| [0.7, 1.3] | [-] | Factor | |
| [0.7, 1.3] | [-] | Factor | |
| [0.7, 1.3] | [-] | Factor | |
| [0, 50] | [mm] | - | |
| [0, 10] | [mm] | - | |
| Friction | [1.0, 2.0] | [-] | Multiplicative factor |
| Position gain (Kp) | [−2.5, 2.5] | [-] | Additive offset |
| Derivative gain (Kd) | [−0.2, 0.35] | [-] | Additive offset |
| Joint damping | [0.0, 0.3] | [-] | Additive offset |
| Torso mass | [0.75, 1.5] | [-] | Multiplicative factor |
| Torso inertia | [0.5, 2.5] | [-] | Multiplicative factor |
| Torso COM position | [0.035, 0.05] | [m] | Additive offset |
Table VI. Variable ranges for domain randomization.
| Reward Component | Weight |
| Tracking Reward Weights | |
| Tracking Linear Velocity | 1.5 |
| Tracking Angular Velocity | 0.8 |
| Tracking Sigma | 0.25 |
| Regularization Reward Weights | |
| Linear Velocity along Z | −2.0 |
| Angular Velocity in XY | −0.05 |
| Orientation | −35.0 |
| Torques | −0.0015 |
| Action Rate | −0.1 |
| Foot Air Time | 10.0 |
| Hip Deviation from Initial Pose | −0.20 |
| Standing Deviation from Initial Pose | −0.15 |
| Step Height | −1.75 |
| Termination | −1.0 |
| Foot Slip | −0.1 |
Table V. Reward weights.
References
- [1]F. Stella, M. M. Achkar, C. Della Santina, and J. Hughes, “Synergy-based robotic quadruped leveraging passivity for natural intelligence and behavioural diversity,” Nat. Mach. Intell., vol. 7, pp. 386–399, 2025.
- [2]S. Seek et al., “Design principles for energy-efficient legged locomotion and implementation on the mit cheetah robot,” IEEE/ASME Trans. Mechatron., vol. 20, no. 3, pp. 1117–1129, 2014.
- [3]J. Ding, P. Posthoorn, V. Atanasov, F. Boekel, J. Kober, and C. D. Santina, “Quadrupedal locomotion with parallel compliance: E-go design, modeling, and control,” IEEE/ASME Trans. Mechatron., vol. 29, no. 4, pp. 2839–2848, 2024.DOI
- [4]J. Humphreys and C. Zhou, “Learning to adapt through bio-inspired gait strategies for versatile quadruped locomotion,” Nat. Mach. Intell., vol. 7, pp. 1141–1153, 2025.arxiv.org/abs/2412.09440
- [5]J. Buchli, F. Iida, and A. J. Ijspeert, “Finding resonance: Adaptive frequency oscillators for dynamic legged locomotion,” in Proc. IEEE/RSJ Int. Conf. Intell. Robot. Syst., 2006, pp. 3903–3909.DOI
- [6]A. Spröwitz, A. Tuleu, M. Vespignani, M. Ajallooeian, E. Badri, and A. J. Ijspeert, “Towards dynamic trot gait locomotion: Design, control, and experiments with cheetah-cub, a compliant quadruped robot,” Int. J. Robot. Res., vol. 32, no. 8, pp. 932–950, 2013.DOI
- [7]A. T. Spröwitz et al., “Oncilla robot: a versatile open-source quadruped research robot with compliant pantograph legs,” Front. Robot. AI, vol. 5, p. 67, 2018.
- [8]F. Bjelonic, J. Lee, P. Arm, D. Sako, D. Tateo, J. Peters, and M. Hutter, “Learning-based design and control for quadrupedal robots with parallel-elastic actuators,” IEEE Robot. Autom. Lett., vol. 8, no. 3, pp. 1611–1618, 2023.DOI
- [9]P. Arm et al., “Spacebok: A dynamic legged robot for space exploration,” in Proc. IEEE Int. Conf. Robot. Autom., 2019, pp. 6288–6294.DOI
- [10]F. Ruppert and A. Badri-Spröwitz, “Learning plastic matching of robot dynamics in closed-loop central pattern generators,” Nat. Mach. Intell., vol. 4, no. 7, pp. 652–660, 2022.
- [11]T. Miki, J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter, “Learning robust perceptive locomotion for quadrupedal robots in the wild,” Sci. Robot., vol. 7, no. 62, p. eabk2822, 2022.DOI
- [12]H. Kim, H. Oh, J. Park, Y. Kim, D. Youm, M. Jung, M. Lee, and J. Hwangbo, “High-speed control and navigation for quadrupedal robots on complex and discrete terrain,” Sci. Robot., vol. 10, no. 102, p. eads6192, 2025.arxiv.org/abs/2506.02835
- [13]J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter, “Learning quadrupedal locomotion over challenging terrain,” Sci. Robot., vol. 5, no. 47, p. eabc5986, 2020.
- [14]S. Choi, G. Ji, J. Park, H. Kim, J. Mun, J. H. Lee, and J. Hwangbo, “Learning quadrupedal locomotion on deformable terrain,” Sci. Robot., vol. 8, no. 74, p. eade2256, 2023.DOI
- [15]J. Hwangbo, J. Lee, A. Dosovitskiy, C. D. Bellicoso, V. Tsounis, V. Koltun, and M. Hutter, “Learning agile and dynamic motor skills for legged robots,” Sci. Robot., vol. 4, no. 26, p. eaau5872, 2019.
- [16]L. Han, Q. Zhu, J. Sheng, C. Zhang, T. Li, Y. Zhang, H. Zhang, Y. Liu, C. Zhou, R. Zhao, J. Li, Y. Zhang, R. Wang, W. Chi, X. Li, Y. Zhu, L. Xiang, X. Teng, and Z. Zhang, “Lifelike agility and play in quadrupedal robots using reinforcement learning and generative pre-trained models,” Nat. Mach. Intell., vol. 6, pp. 787–798, 2024.DOI
- [17]J.-G. Kang, J. Park, T.-G. Song, J.-H. Kim, S. Hong, and H.-W. Park, “Agile perceptive multiskill locomotion for quadrupedal robots in the wild,” Sci. Robot., vol. 11, no. 116, p. eadz7397, 2026.DOI
- [18]C. Yang, K. Yuan, Q. Zhu, W. Yu, and Z. Li, “Multi-expert learning of adaptive legged locomotion,” Sci. Robot., vol. 5, no. 49, p. eabb2174, 2020.
- [19]A. Badri-Spröwitz, A. Aghamalki Sarvestani, M. Sitti, and M. A. Daley, “Birdbot achieves energy-efficient gait with minimal control using avian-inspired leg clutching,” Sci. Robot., vol. 7, no. 64, p. eabg4055, 2022.
- [20]C. Lee, D. Youn, J. Park, J. Lee, S. Choi, G. Ji, J. Mun, M. Jung, H. C. Choi, H. Kim, H. Oh, K. Nam, M. Lee, J. Hur, D. Choi, D. Kim, Y. An, and J. Hwangbo, “A quadruped robot designed to complete a marathon on a single battery charge,” Nature, vol. 658, no. 8135, pp. 372–379, 2026.DOI
- [21]K. M. Digumarti, C. Gehring, S. Coros, J. Hwangbo, and R. Siegwart, “Concurrent optimization of mechanical design and locomotion control of a legged robot,” in Mobile Serv. Robot., 2014, pp. 315–323.DOI
- [22]S. Ha, S. Coros, A. Alspach, J. Kim, and K. Yamane, “Joint optimization of robot design and motion parameters using the implicit function theorem,” in Proc. Robot.: Sci. Syst., Cambridge, Massachusetts, July 2017.DOI
- [23]F. De Vincenti, D. Kang, and S. Coros, “Control-aware design optimization for bio-inspired quadruped robots,” in Proc. IEEE/RSJ Int. Conf. Intell. Robot. Syst., 2021, pp. 1354–1361.DOI
- [24]T. Dinev, C. Mastalli, V. Ivan, S. Tonneau, and S. Vijayakumar, “A versatile co-design approach for dynamic legged robots,” in Proc. IEEE/RSJ Int. Conf. Intell. Robot. Syst., 2022, pp. 10343–10349.arxiv.org/abs/2103.04660
- [25]C. Schaff, D. Yunis, A. Chakrabarti, and M. R. Walter, “Jointly learning to construct and control agents using deep reinforcement learning,” in Proc. IEEE Int. Conf. Robot. Autom., 2019, pp. 9798–9805.arxiv.org/abs/1801.01432
- [26]D. Ha, “Reinforcement learning for improving agent design,” Artif. Life, vol. 25, no. 4, pp. 352–365, Nov. 2019.DOI
- [27]J. Won and J. Lee, “Learning body shape variation in physics-based characters,” ACM Trans. Graph., vol. 38, no. 6, pp. 1–12, 2019.DOI
- [28]K. S. Luck, H. B. Amor, and R. Calandra, “Data-efficient co-adaptation of morphology and behaviour with deep reinforcement learning,” in Prof. Conf. Robot Learn. PMLR, 2020, pp. 854–869.arxiv.org/abs/1911.06832
- [29]C. Chen, P. Xiang, H. Lu, Y. Wang, and R. Xiong, “C2: Co-design of robots via concurrent-network coupling online and offline reinforcement learning,” in Proc. IEEE/RSJ Int. Conf. Intell. Robot. Syst., 2023, pp. 7487–7494.DOI
- [30]G. Grandesso, “Reinforcement learning and trajectory optimization for the concurrent design of high-performance robotic systems,” Ph.D. dissertation, University of Trento, Trento, Italy, July 2023.DOI
- [31]A. Gupta, S. Savarese, S. Ganguli, and L. Fei-Fei, “Embodied intelligence via learning and evolution,” Nat. Commun., vol. 12, p. 5721, 2021.DOI
- [32]G. Fadini, S. Kumar, R. Kumar, T. Flayols, A. Del Prete, J. Carpentier, and P. Souères, “Co-designing versatile quadruped robots for dynamic and energy-efficient motions,” Robotica, vol. 42, no. 6, pp. 2004–2025, 2024.DOI
- [33]Á. Belmonte-Baeza, J. Lee, G. Valsecchi, and M. Hutter, “Meta reinforcement learning for optimal design of legged robots,” IEEE Robot. Autom. Lett., vol. 7, no. 4, pp. 12 134–12 141, 2022.
- [34]Z. Song, L. Yue, L. Zhang, X. Zheng, H. Zhang, J. Dong, Z. Li, K. Sreenath, and Y.-h. Liu, “Codesign of a differential three-segment leg enhancing payload and efficiency in quadrupeds,” IEEE/ASME Trans. Mechatron., vol. 31, no. 1, pp. 257–268, February 2026.DOI
- [35]X. Liu, A. Rossi, and I. Poulakakis, “A switchable parallel elastic actuator and its application to leg design for running robots,” IEEE/ASME Trans. Mechatron., vol. 23, no. 6, pp. 2681–2692, 2018.DOI
- [36]G. Bellegarda, C. Nguyen, and Q. Nguyen, “Robust quadruped jumping via deep reinforcement learning,” Robot. Autom. Syst., vol. 182, p. 104799, 2024.arxiv.org/abs/2011.07089
- [37]J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, “Proximal policy optimization algorithms,” arXiv preprint arXiv:1707.06347, 2017.arxiv.org/abs/1707.06347
- [38]C. D. Freeman, E. Frey, A. Raichuk, S. Girgin, I. Mordatch, and O. Bachem, “Brax—a differentiable physics engine for large scale rigid body simulation,” arXiv preprint arXiv:2106.13281, 2021.arxiv.org/abs/2106.13281
- [39]M. Mittal, P. Roth, J. Tigue, A. Richard, O. Zhang, P. Du, A. Serrano-Munoz, X. Yao, R. Zurbrügg, N. Rudin et al., “Isaac lab: A gpu-accelerated simulation framework for multi-modal robot learning,” arXiv preprint arXiv:2511.04831, 2025.
- [40]Y. Ozaki, Y. Tanigaki, S. Watanabe, M. Nomura, and M. Onishi, “Multiobjective tree-structured parzen estimator,” J. Artif. Intell. Res., vol. 73, pp. 1209–1250, 2022.DOI
- [41]T. Akiba, S. Sano, T. Yanase, T. Ohta, and M. Koyama, “Optuna: A next-generation hyperparameter optimization framework,” in Proc. ACM SIGKDD Int. Conf. Knowl. Discov. Data Min., 2019, pp. 2623–2631.arxiv.org/abs/1907.10902
- [42]N. Hansen and A. Ostermeier, “Completely derandomized self-adaptation in evolution strategies,” Evol. Comput., vol. 9, no. 2, pp. 159–195, 2001.pubmed.ncbi.nlm.nih.gov/11382355
- [43]P.-A. Léziart, T. Flayols, F. Grimminger, N. Mansard, and P. Souères, “Implementation of a reactive walking controller for the new open-hardware quadruped solo-12,” in Proc. IEEE Int. Conf. Robot. Autom., 2021, pp. 5007–5013.
- [44]Unitree, “Go1,” accessed: 2024-09-13. [Online]. Available: https://www.unitree.com/en/go1/
- [45]MJbots, “Mjbots power distribution,” accessed: 2024-09-12. [Online]. Available: https://mjbots.com/products/mjots-power-dist-4-5b
- [46]NVIDIA, “Jetson orin,” accessed: 2024-09-12. [Online]. Available: https://www.nvidia.com/en-us/autonomous-machines/embedded-systems/jetson-orin/
- [47]PEAK, “Pcan-m-2,” accessed: 2024-09-12. [Online]. Available: https://www.peak-system.com/PCAN-M-2.473.0.html?&L=1
- [48]CANable, “An open-source usb to can adapter,” accessed: 2024-09-12. [Online]. Available: https://canable.io/
- [49]Invensense, “Mpu-6050,” accessed: 2024-09-12. [Online]. Available: https://invensense.tdk.com/products/motion-tracking/6-axis/mpu-6050/
