Skip to content
Robotics.world

Research

Magnet-Aware Control of Legged Robots

Ferromagnetic parts of a legged robot — chiefly its motors — experience forces and torques when moving through the strong static fields (reaching several Tesla) used at facilities like CERN and ITER.

The paper’s first page · arXiv:2610.08653
arXiv
2610.08653 · Preprint · not peer-reviewed
Published
2026-10-06
Authors
J. Playan Garai, S. B. Djuve, C. McGreavy, M. Khadiv

In plain words

Ferromagnetic parts of a legged robot — chiefly its motors — experience forces and torques when moving through the strong static fields (reaching several Tesla) used at facilities like CERN and ITER.

AI summary

Overview

Research area: Robotics — legged locomotion control, disturbance rejection, and physics simulation for robots operating in strong static magnetic fields (Big Science facilities such as CERN and ITER).

Technical level: Advanced. The paper assumes familiarity with floating-base rigid-body dynamics, centroidal-momentum Model Predictive Control, Whole-Body Control formulated as a quadratic program, and electromagnetic material modeling (susceptibility, demagnetization tensors).

Scope: The paper builds a simulation plugin, a field-estimation routine, and a magnet-aware MPC/WBC control stack, then validates them in MuJoCo and in Hardware-in-the-Loop experiments on a Unitree Go2 quadruped.

What This Paper Is About

Ferromagnetic parts of a legged robot — chiefly its motors — experience forces and torques when moving through the strong static fields (reaching several Tesla) used at facilities like CERN and ITER. These wrenches vary with the robot's pose and position, so they look unlike the transient pushes that conventional reactive controllers are designed to reject, and the robot can be pulled toward the field source and collapse. The paper's goal is to model these induced wrenches, estimate the ambient field from the robot's own motion and sensors, and predict and cancel the wrenches inside the locomotion controller so the robot can walk through regions of field strength that would otherwise be inaccessible.

Key Contributions

  1. A custom MuJoCo physics plugin that computes induced magnetic forces and torques on any rigid body designated as magnetic, given the material's relative permeability, demagnetizing matrix, and volume, plus an analytical description of the external field and its spatial gradient.

  2. An inverse magnetic field estimation framework that infers the latent field parameters — the field at the origin and the gradient tensor — from quadruped dynamic responses and any number of sensor readings, using forward simulation through the plugin.

  3. A Magnet-Aware MPC + WBC architecture that embeds the magnetic wrench model into centroidal dynamics in the MPC stage and into the floating-base rigid-body dynamics of the WBC quadratic program, so perturbations are predicted and counteracted during locomotion rather than reacted to.

  4. Simulation and Hardware-in-the-Loop validation on a Unitree Go2, quantifying how much larger the disturbance and the workspace become with compensation.

Main Findings

  • Force-space rejection improves by a factor of 2.5, and torque-space rejection by a factor of 1.6–2, relative to a non-compensated system.

  • Operable area grows by 29.34% within the proposed magnetic field; 10.84% of that area corresponds to regions that would previously have caused immediate collapse of the non-compensated controller.

  • Pure torque case (no gradient): with the field in the horizontal plane, the uncompensated robot sustains continuous disturbance torque up to 6 N·m, develops a steady-state heading error of 10° at B ≈ 0.1 T, and shows a noticeable yaw offset starting at B ≈ 0.02 T. The compensated robot holds heading and posture up to 10 N·m (about B ≈ 0.18 T) and saturates around 12 N·m.

  • Coupled force-and-torque case (spherical field, radius r = 2 m, center field [0.3, 0.3, 0] T): the standard controller first loses balance at 0.02–0.03 T (net perturbation force ≈ 15 N) but recovers; locomotion failure occurs reliably at 0.05 T (net force ≈ 20 N). Failure locations across entry angles trace a circular boundary around the field epicenter.

  • Compensated robot in the same sphere withstands peak perturbation forces up to 50 N, traverses 0.06 T and 0.08 T regions that previously caused collapse, and reaches peak transient fields of ≈ 1.0 T before actuator saturation.

  • Heading control under alignment torque: uncompensated yaw error reaches up to 5°; compensated control keeps it below 1°.

  • Field estimation converges in simulation for a scene with a field of norm 0.07 T, with the caveat that high noise and insufficient sensor data degrade the optimization, and that the assumed field model (a linear field with constant diagonal gradient) must be matched to the actual field's complexity.

  • HIL differs structurally from full physics: in HIL the wrenches are injected numerically into the controller equations rather than applied as physical body forces on leg masses, so the hardware completes traversals that full-physics simulation fails when physical leg forces exceed friction limits.

Methodology in Plain English

The team first writes down how a piece of ferromagnetic material behaves in a field: the material magnetizes according to a susceptibility tensor adjusted for its shape (the demagnetizing matrix), producing a magnetic moment. Because the moment is generally not aligned with the external field in anisotropic parts, the part experiences both a force — driven by the spatial gradient of the field dotted with the moment — and a torque from the cross product of moment and field. The resulting wrench is quadratic in the field for torque and bilinear in gradient and field for force.

They implement this inside MuJoCo as a plugin, evaluating an analytical field at each magnetic body's center of mass. All 12 of the Go2's motor assemblies are modeled as cylinders with volume 7.6969 × 10⁻⁵ m³, demagnetizing factors [0.2, 0.2, 0.6], and a deliberately conservative relative permeability of 1000 (pure iron), which maximizes the predicted wrench. Four virtual magnetometers in a tetrahedral layout model commercial THM1176 Hall sensors.

For control, they take a standard two-stage pipeline — an MPC that optimizes ground reaction forces using centroidal dynamics, followed by a WBC quadratic program that produces joint torques — and add the magnetic force and torque terms to the momentum-rate equation in the MPC and the projected magnetic wrench to the dynamics constraint in the WBC. For efficiency inside MPC, the field is approximated locally with a first-order Taylor expansion.

For estimation, they treat the field parameters as unknowns and run forward simulations, minimizing the mismatch between simulated and measured base accelerations and sensor readings. They deliberately avoid joint accelerations in the objective because double-differentiating joint encoders on hardware is noisy; base acceleration comes directly from the IMU.

Hardware validation uses a Hardware-in-the-Loop scheme: the real Go2 walks a lab floor while MuJoCo runs the same spherical field, computes the wrench, and injects it into the hardware WBC, with simulated magnetometer noise and bias.

Why This Matters

Research impact: The work reframes magnetic interference as a predictable, model-based, pose-dependent disturbance rather than an unmodeled push, and shows that reactive or momentum-observer methods are structurally mismatched to it — magnetic forces contaminate ground reaction force measurements, and null-space projection amplifies modeling error because of the nonlinearity of the wrench model. It also provides an open simulation tool where none existed, since rigid-body engines rarely include magnetic interaction.

Real-world applications:

  • Inspection and maintenance robots inside high-energy physics detectors and accelerator tunnels at CERN.
  • Robotics in fusion energy environments such as ITER, where maintenance must happen in strong fields.
  • Industrial settings with MRI magnets, magnetic separators, or electromagnetic cranes.
  • Survey and emergency-response robots near strong permanent-magnet installations.

Industry relevance: Manufacturing, energy, and healthcare all contain regions where a stock quadruped's motors and Hall-effect encoders would fault first. The paper's assumption of capacitive encoders rather than Hall sensors, plus a field-aware controller, gives a concrete recipe for extending commercial legged platforms into environments they are currently excluded from.

Future Directions

  • Accurate equivalent magnetic moments for motors. The authors flag this explicitly as open: characterizing the effective permeability of a composite motor assembly is nontrivial, so they assume solid pure iron as a worst case.

  • Richer field models for estimation. The demonstrated estimation uses a linear field with constant diagonal gradient; the authors note that more complex fields require the model to scale accordingly or provide feasible approximations, and that data quantity and noise strongly affect convergence.

  • Reintroducing joint accelerations into the estimation objective in a weighted fashion, if those signals can be trusted, alongside the base-acceleration and sensor terms.

  • Closing the HIL-versus-reality gap. Because HIL injects wrenches into controller equations rather than loading the structure, the paper cannot characterize physical joint binding or structural loading; actual high-field testing at facilities would be the natural next step.

Target Audience

Robotics researchers and graduate students working on legged locomotion, whole-body control, and disturbance rejection; engineers integrating robots into high-field scientific or industrial facilities; and simulation developers interested in extending physics engines with domain-specific force models. Readers without a background in optimal control and rigid-body dynamics will find the modeling and results sections accessible, but the control and estimation sections require the stated advanced background.

Authors’ abstract

Autonomous robots can increase uptime and reduce human exposure in Big Science facilities, but strong magnetic fields needed for their operation corrupt sensors and induce pose-dependent mechanical wrenches that destabilize robots and challenge conventional reactive controllers. This paper presents a control framework for modeling, estimating, and dynamically compensating for spatially varying magnetic wrenches acting on legged robots to improve robustness in these fields.…

The full abstract on arXiv
Read the original paper

Related papers