Skip to content

OSQP fix after Drake (and OSQP) upgrade#383

Merged
ebianchi merged 5 commits into
sampling_based_c3_publicfrom
sampling_c3_osqp_update
Jul 2, 2025
Merged

OSQP fix after Drake (and OSQP) upgrade#383
ebianchi merged 5 commits into
sampling_based_c3_publicfrom
sampling_c3_osqp_update

Conversation

@ebianchi
Copy link
Copy Markdown

@ebianchi ebianchi commented Jul 2, 2025

Two changes for interacting with OSQP with upgraded Drake:

  1. When using OSQP v0.6.3, Drake no longer exposes the OSQP-internal setting linsys_solver as it did with v0.6.2. Given all of our examples so far have only ever used the default solver, this PR removes linsys_solver as an available setting in our solver yaml files. To keep this as an available setting would require either customizing OSQP or Drake, neither of which felt worth it given we aren't intending to use the feature.
  2. OSQP v0.6.3 requires adaptive_rho_interval to be provided as an int (i.e. it now throws an error if this is not the case). Our code previously mixed up int and double inconsistently in a couple places, which eventually gave a double to OSQP. This parameter now is appropriately defined as an int consistently.

The jack sampling C3 example did not run before (due to an OSQP error) and now does.


This change is Reviewable

@ebianchi ebianchi changed the base branch from sampling_based_c3_public to sampling_based_c3_dev July 2, 2025 20:42
@ebianchi ebianchi changed the base branch from sampling_based_c3_dev to sampling_based_c3_public July 2, 2025 20:42
Copy link
Copy Markdown

@cuie23 cuie23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 12 of 12 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ebianchi)

@ebianchi ebianchi merged commit 1e6b8e3 into sampling_based_c3_public Jul 2, 2025
2 of 3 checks passed
@ebianchi ebianchi deleted the sampling_c3_osqp_update branch July 2, 2025 21:45
ebianchi added a commit that referenced this pull request Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants