Repository navigation
Open
Conversation
Rewrites easynav_mpc_controller as an LTV-MPC for differential, omnidirectional, Ackermann and aerial robots, solved as a sparse QP with OSQP (osqp_vendor), replacing NLopt. Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
This was referenced Nov 1, 2026
juanscelyg
approved these changes
Nov 1, 2026
juanscelyg
self-requested a review
November 1, 2026 15:37
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #165.
Rewrites
easynav_mpc_controlleras a linear time-varying MPC solved as a sparse QP with OSQP (osqp_vendor), in place of NLopt.Motion models:
diff,omni,ackermannandaerial(x, y, z, yaw), linearized around a nominal trajectory: the previous solution shifted, or the reference when the robot lags it. Atime_constantmodels actuator lag.Constraints:
robot_limits, including the vertical ones;safety_margin.Bounds always include the nominal, so the QP stays feasible.
Reference:
Topics:
<node>/<plugin>/predicted,/referenceand/obstacles.Parameters: renamed parameters still work with a deprecation warning.
safety_radius,use_collision_checkerandverboseare no longer used and only warn.OSQP versions: works with OSQP 0.6 (Humble, Jazzy, Kilted) and 1.x (Lyrical, Rolling).
It needs the new
robot_limitsfields from #156 (max_vertical_vel/acc/decel,min_turning_radius), so CI will fail until that is merged.Tests: unit tests for the model, QP and reference; 13 closed-loop scenarios with a simulated robot (corners, narrow passages, obstacles, Ackermann turns, aerial climbs); and parameter validation.
In Gazebo:
Builds: Humble, Jazzy, Kilted, Lyrical and Rolling.