Skip to content

Software

OsqpEigen

By Generative Bionics, Italy (checked on github.com/gbionics (opens in a new tab)), from github.com/gbionics/osqp-eigen (opens in a new tab)

  • Robot arms and industry
  • Library
  • BSD-3-Clause

A simple C++ wrapper around the OSQP quadratic programming solver that exposes it through Eigen types. It is intended for C++ projects that need to solve QPs.

Facts

GitHub stars
510read on 28 Nov 2026
Last update
20 Jul 2026Newest commit on master
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Advanced

Checked on GitHub on 28 Nov 2026.

Licenses

Code
BSD-3-Clause (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit 7587e69 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Wraps the osqp library with a C++ interface that works with Eigen3 matrices and vectors.
  • Depends only on osqp and Eigen3; Catch2 is needed only to run the tests.
  • Can be installed with conda from the conda-forge channel, which also pulls in osqp and Eigen3.
  • Can be built from source with CMake and then found from other projects via find_package.
  • Exports a CMake target named OsqpEigen::OsqpEigen for linking into C++ projects.
  • Is also available in the Bazel Central Registry for projects using Bazel.

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-3-Clause. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Maintained, last commit on 20 Jul 2026.

Use it

How to install it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 7587e69

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 Generative Bionics, at commit 7587e69, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

osqp-eigen

Simple C++ wrapper for osqp (opens in a new tab) library.

๐Ÿ“š Documentation

The documentation is available online at the accompanying website (opens in a new tab).

๐Ÿ“„ Dependences

The project depends only on osqp (opens in a new tab) and Eigen3 (opens in a new tab). Please install Catch2 (opens in a new tab) if you want to run the tests only for testing.

๐Ÿ› ๏ธ Usage
๐Ÿ“ฆ Install with conda (recommended)

You can easily the library with conda (opens in a new tab) using the following command

conda install -c conda-forge osqp-eigen

conda will automatically install osqp (opens in a new tab) and Eigen3 (opens in a new tab).

โš™๏ธ Build from source (advanced)
  1. Clone the repository
    git clone https://github.com/gbionics/osqp-eigen.git
    
  2. Build it
    cd osqp-eigen
    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX:PATH=<custom-folder> ../
    make
    make install
    
  3. Add the following environmental variable
    OsqpEigen_DIR=/path/where/you/installed/
    
๐Ÿ–ฅ๏ธ How to use the library

osqp-eigen provides native CMake support which allows the library to be easily used in CMake projects. osqp-eigen exports a CMake target called OsqpEigen::OsqpEigen which can be imported using the find_package CMake command and used by calling target_link_libraries as in the following example:

cmake_minimum_required(VERSION 3.0)
project(myproject)
find_package(OsqpEigen REQUIRED)
add_executable(example example.cpp)
target_link_libraries(example OsqpEigen::OsqpEigen)

If you prefer to use the bazel (opens in a new tab) build system, osqp-eigen is available in the Bazel Central Registry, so you can use it following the docs available at https://registry.bazel.build/modules/osqp-eigen (opens in a new tab).

๐Ÿ› Bug reports and support

All types of issues (opens in a new tab) are welcome.

๐Ÿงฉ Compatibility Policy

This project tries to avoid removing functionalities in minor releases, while functionalities are only removed in major version. However, this is only done in a best-effort way, and it may be possible that backward incompatibly changes occur in minor releases (see EffVer (opens in a new tab) for more details). Furthermore, the policy is that patch releases does not modify at all the public headers (i.e. the installed .h and .hpp) files of the project. This is done to ensure that no ABI change will occur in patch releases, without having to manually track ABI changes.

๐Ÿ“ License

Materials in this repository are distributed under the following license:

All software is licensed under the BSD 3-Clause License. See LICENSE (opens in a new tab) file for details.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.