google / osqp-cpp Goto Github PK
View Code? Open in Web Editor NEWA C++ interface for the OSQP quadratic programming solver.
License: Apache License 2.0
A C++ interface for the OSQP quadratic programming solver.
License: Apache License 2.0
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
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
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!
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...
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.