Git Product home page Git Product logo

osqp-cpp's People

Contributors

cantonios avatar fabienpean avatar mlubin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osqp-cpp's Issues

Compile sample code issues

I face this error then compile sample code from readme
specifically it happens when I declare osqp::OsqpSolver solver;
Any ideas what might be the issues ?

/usr/bin/ld: /usr/local/lib/libabsl_strings.a(numbers.cc.o): relocation R_X86_64_PC32 against symbol `_ZN4absl14ascii_internal13kPropertyBitsE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

Initial solution

How can I set initial solution?
There is not way to modify solver.primal_solution() since it is const, and I can not find a way to set initial solution

Improve usage of FetchContent

Right now the library breaks because the latest version of OSQP removes one of the headers osqp-cpp relies on: ctrlc.h. FetchContent allows to select specific versions of a library by means of GIT_TAG: could you add this functionality to osqp-cpp? Also, it would be great if osqp-cpp defined its own Git tags, too. Thanks!

Error encountered during make

I encountered following error messages during make:

/home/pi/osqp-cpp/src/osqp++.cc:33:5: error: static assertion failed: OSQP's c_int typedef does not match the definition in osqp++.h.
     std::is_same_v<osqp::c_int, ::c_int>,
     ^~~
/home/pi/osqp-cpp/src/osqp++.cc:38:36: error: static assertion failed: The size of OSQPSettings has changed unexpectedly. Make sure that the map between ::OSQPSettings and osqp::OsqpSettings remains up to date.
 static_assert(sizeof(OSQPSettings) == 176,
/home/pi/osqp-cpp/src/osqp++.cc:233:9: error: cannot convert ‘osqp::c_int*’ {aka ‘long long int*’} to ‘c_int*’ {aka ‘int*’} in initialization
/home/pi/osqp-cpp/src/osqp++.cc:233:9: error: cannot convert ‘osqp::c_int*’ {aka ‘long long int*’} to ‘c_int*’ {aka ‘int*’} in initialization
/home/pi/osqp-cpp/src/osqp++.cc:243:9: error: cannot convert ‘osqp::c_int*’ {aka ‘long long int*’} to ‘c_int*’ {aka ‘int*’} in initialization
/home/pi/osqp-cpp/src/osqp++.cc:243:9: error: cannot convert ‘osqp::c_int*’ {aka ‘long long int*’} to ‘c_int*’ {aka ‘int*’} in initialization

I'm running it on Raspberry Pi OS (Debian Buster). But I don't think this is the source of the problem...

ctrlc.h header issue

Hi, I am trying to build osqp-cpp on Raspberry Pi with Ubuntu 20.04. It was successfully built before.

But currently, OSQP requires cmake 3.18 which is not original available in Ubuntu 20.04. Then I updated to the latest cmake version.

we configure the CMakeLists for our application(ROS) like this:

include(FetchContent)
# OSQP
if (NOT TARGET osqp-cpp)
  set (PYTHON OFF CACHE INTERNAL "Turn off python for OSQP-CPP")
  message(STATUS "${PROJECT_NAME}: `osqp-cpp` targets not found. Attempting to fetch contents...")
  FetchContent_Declare(
    osqp-cpp
    GIT_REPOSITORY https://github.com/google/osqp-cpp/
    GIT_TAG        origin/master
  )
  FetchContent_MakeAvailable(osqp-cpp)
else()
  message(STATUS "osqp-cpp: `osqp` targets found.")
endif()

When we build package, got issue: fatal error: ctrlc.h: No such file or directory. could your tell me what is this header?
Thanks for your help.

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.