Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Simple Eigen-C++ wrapper for OSQP library

License

NotificationsYou must be signed in to change notification settings

robotology/osqp-eigen

Repository files navigation

Generalc++14License
CI/CDCodacy BadgeCIAzure
condaConda RecipeConda DownloadsConda VersionConda Platforms

Simple C++ wrapper forosqp library.

📚 Documentation

The documentation is available online at the accompanyingwebsite.

📄 Dependences

The project depends only onosqp andEigen3. Please installCatch2 if you want to run the tests only for testing.

🛠️ Usage

📦 Install with conda (recommended)

You can easily the library withconda using the following command

conda install -c conda-forge osqp-eigen

conda will automatically installosqp andEigen3.

⚙️ Build from source (advanced)

  1. Clone the repository
    git clone https://github.com/robotology/osqp-eigen.git
  2. Build it
    cd osqp-eigenmkdir buildcd buildcmake -DCMAKE_INSTALL_PREFIX:PATH=<custom-folder> ../makemake install
  3. Add the following environmental variable
    OsqpEigen_DIR=/path/where/you/installed/

🖥️ How to use the library

osqp-eigen provides nativeCMake support which allows the library to be easily used inCMake projects.osqp-eigen exports a CMake target calledOsqpEigen::OsqpEigen which can be imported using thefind_package CMake command and used by callingtarget_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)

🐛 Bug reports and support

All types ofissues are welcome.

📝 License

Materials in this repository are distributed under the following license:

All software is licensed under the BSD 3-Clause License. SeeLICENSE file for details.


[8]ページ先頭

©2009-2025 Movatter.jp