GithubHelp home page GithubHelp logo

kuafuliu / osqp-eigen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robotology/osqp-eigen

0.0 0.0 0.0 1.39 MB

Simple Eigen-C++ wrapper for OSQP library

Home Page: https://robotology.github.io/osqp-eigen/

License: BSD 3-Clause "New" or "Revised" License

C++ 65.84% C 0.25% CMake 33.91%

osqp-eigen's Introduction

osqp-eigen

General c++14 License
CI/CD Codacy Badge CI Azure
conda Conda Recipe Conda Downloads Conda Version Conda Platforms

Simple C++ wrapper for osqp library.

๐Ÿ“š Documentation

The documentation is available online at the accompanying website.

๐Ÿ“„ Dependences

The project depends only on osqp and Eigen3. Please install Catch2 if you want to run the tests only for testing.

๐Ÿ› ๏ธ Usage

๐Ÿ“ฆ Install with conda (recommended)

You can easily the library with conda using the following command

conda install -c conda-forge osqp-eigen

conda will automatically install osqp and Eigen3.

โš™๏ธ Build from source (advanced)

  1. Clone the repository
    git clone https://github.com/robotology/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)

๐Ÿ› Bug reports and support

All types of issues are welcome.

๐Ÿ“ License

Materials in this repository are distributed under the following license:

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

osqp-eigen's People

Contributors

giulioromualdi avatar s-dafarra avatar wxmerkt avatar kalj avatar chibi314 avatar traversaro avatar kexianshen avatar mhubii avatar mpowelson avatar voldien avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.