Software
linear_feedback_controller
By loco-3d, from github.com/loco-3d/linear-feedback-controller (opens in a new tab)
- Humanoids and robot learning
- Library
- BSD-2-Clause
A ros2_control package of controllers that run linear feedback control for robots, with a PD phase followed by feedback driven by an external controller such as a whole-body MPC.
Facts
- GitHub stars
- 10read on 28 Nov 2026
- Last update
- 10 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Advanced
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- BSD-2-Clause (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (BSD-2-Clause) at commit 02d1206 (opens in a new tab), on 14 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Main controller switches from PD stabilization to linear feedback control, with the switch timed by a configurable duration.
- Publishes base pose and velocity for free-flying robots (identity for fixed-base) plus joint positions, velocities and efforts.
- Receives control commands carrying a feedback gain matrix, a feedforward torque and the linearization state.
- JointStateEstimator filters joint velocities with exponential smoothing so raw sensor data suits downstream controllers.
- PassthroughController renames and forwards reference interfaces to command interfaces, helping hardware and simulation share one parameter file.
- Message definitions come from a separate linear_feedback_controller_msgs package.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- BSD-2-Clause. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 10 Nov 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/loco-3d/linear-feedback-controller (opens in a new tab)
- The version Robotheca read02d1206 (opens in a new tab)
- Latest releaseRelease v4.1.0 (30 Oct 2026)
Robotheca read the repository at two versions: the summary at cdf6b99 and the facts and the README at 02d1206 (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by loco-3d, at commit 02d1206, under BSD-2-Clause (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
Image: pre-commit.ci status (opens in a new tab) (opens in a new tab)
linear-feedback-controller
A ros2_control (opens in a new tab) package implementing linear feedback control strategies for robotic systems. It supports both fixed-base and free-flying robot configurations and is designed to integrate with external model predictive controllers.
The public message interface is defined in linear_feedback_controller_msgs (opens in a new tab).
Both packages are released under the BSD-2 license (opens in a new tab). Current versions are tracked in their respective package.xml files and must have an associated git tag of the form vX.Y.Z.
Full documentation is available on DeepWiki (opens in a new tab).
Controllers
The package provides three ros2_control controller plugins:
| Controller | Base class | Role |
|---|---|---|
LinearFeedbackControllerRos | ChainableControllerInterface | Main control loop: PD → linear feedback transition with external MPC |
JointStateEstimator | ControllerInterface | Joint state filtering and velocity estimation |
PassthroughController | ChainableControllerInterface | Interface renaming / forwarding for hardware–simulation parity |
LinearFeedbackControllerRos
The main controller implements a two-phase control strategy:
- PD phase — Proportional-derivative control for initial stabilization using configurable per-joint gains (
p_gains,d_gains). - LF phase — Linear feedback control driven by an external controller (e.g. a whole-body MPC based on Crocoddyl (opens in a new tab)).
The transition between phases is time-based and configurable via pd_to_lf_transition_duration.
The controller publishes sensor data on a ROS 2 topic:
- Base pose and velocity (free-flying robots; identity for fixed-base robots)
- Joint positions, velocities, and efforts
It receives control commands containing:
- A feedback gain matrix
- A feedforward torque term
- The linearization state
JointStateEstimator
Reads hardware state interfaces, applies exponential smoothing to joint velocities, and writes the filtered values to command interfaces. This makes raw sensor data suitable for downstream chainable controllers.
PassthroughController
Forwards and renames reference interfaces to command interfaces. Useful when simulation and hardware use different interface names but share the same parameter file.
Dependencies
| Package | Role |
|---|---|
| ros2_control (opens in a new tab) | Controller framework and hardware abstraction |
| pinocchio (opens in a new tab) | Rigid body dynamics and URDF model loading |
| Eigen3 (opens in a new tab) | Linear algebra |
| linear_feedback_controller_msgs (opens in a new tab) | ROS topic message definitions and Eigen/NumPy conversions |
Build
With colcon (recommended)
mkdir -p workspace/src
git -C workspace/src clone https://github.com/loco-3d/linear-feedback-controller.git
colcon build
With CMake directly
git clone https://github.com/loco-3d/linear-feedback-controller.git
cd linear-feedback-controller
mkdir _build && cd _build
cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/your/install/folder
make install
With Nix
git clone https://github.com/loco-3d/linear-feedback-controller.git
cd linear-feedback-controller
# Check (build + tests)
nix flake check -L
# Build only
nix build -L
# Enter development shell
nix develop
nix-direnv (opens in a new tab) is also supported for automatic shell activation.
Configuration
An example YAML configuration for the Tiago Pro robot is available at config/tiago_pro_lfc_params.yaml (opens in a new tab).
Real-world usage can be found in the agimus-demos (opens in a new tab) repository, in particular in the agimus_demos_common package.
License and Authors
BSD-2 — see LICENSE (opens in a new tab).
Historical main authors:
- Côme Perrot
- Maximilien Naveau
- Arthur Valiente
Current maintainers:
- Guilhem Saurel (gsaurel@laas.fr (opens in a new tab))
- Maximilien Naveau (maximilien.naveau@gmail.com (opens in a new tab))
- Clément Pène (clement.pene@laas.fr (opens in a new tab))
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.