Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-centroidal-dynamics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Humanoid Path Planner
hpp-centroidal-dynamics
Commits
d58ca69d
Commit
d58ca69d
authored
8 years ago
by
andreadelprete
Browse files
Options
Downloads
Patches
Plain Diff
Modify CMakeLists.txt and installation instructions to use pkgconfig version of qpOases
parent
9924f13f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+2
-1
2 additions, 1 deletion
CMakeLists.txt
README.md
+15
-7
15 additions, 7 deletions
README.md
src/CMakeLists.txt
+4
-3
4 additions, 3 deletions
src/CMakeLists.txt
test/CMakeLists.txt
+1
-1
1 addition, 1 deletion
test/CMakeLists.txt
with
22 additions
and
12 deletions
CMakeLists.txt
+
2
−
1
View file @
d58ca69d
...
@@ -61,7 +61,8 @@ else()
...
@@ -61,7 +61,8 @@ else()
add_definitions
(
-DCLP_FOUND
)
add_definitions
(
-DCLP_FOUND
)
endif
()
endif
()
SEARCH_FOR_QPOASES
()
#SEARCH_FOR_QPOASES()
ADD_REQUIRED_DEPENDENCY
(
"qpOASES"
)
add_subdirectory
(
src
)
add_subdirectory
(
src
)
add_subdirectory
(
test
)
add_subdirectory
(
test
)
...
...
This diff is collapsed.
Click to expand it.
README.md
+
15
−
7
View file @
d58ca69d
...
@@ -35,10 +35,18 @@ You can install Eigen3 with the following command:
...
@@ -35,10 +35,18 @@ You can install Eigen3 with the following command:
```
```
sudo apt-get install libeigen3-dev
sudo apt-get install libeigen3-dev
```
```
Install qpOases from sources following the instructions on its
[
webpage
](
https://projects.coin-or.org/qpOASES
)
.
For qpOases you have to install the pkg-config version you can find here: https://github.com/humanoid-path-planner/qpoases
Note that you need to compile qpOases into a dynamic library (not a static one).
```
git clone --recursive https://github.com/humanoid-path-planner/qpoases
mkdir qpoases/build
cd qpoases/build
cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_DIR}/install ..
make install
```
#Alternatively, you can install qpOases from sources following the instructions on its [webpage](https://projects.coin-or.org/qpOASES).
#Note that you need to compile qpOases into a dynamic library (not a static one).
Then you can clone th
e
repository using ssh:
Then you can clone th
is
repository using ssh:
```
```
git clone --recursive git@github.com:andreadelprete/robust-equilibrium-lib.git $ROBUST_EQUI_LIB_DIR
git clone --recursive git@github.com:andreadelprete/robust-equilibrium-lib.git $ROBUST_EQUI_LIB_DIR
```
```
...
@@ -46,17 +54,17 @@ or using http:
...
@@ -46,17 +54,17 @@ or using http:
```
```
git clone --recursive https://github.com/andreadelprete/robust-equilibrium-lib.git $ROBUST_EQUI_LIB_DIR
git clone --recursive https://github.com/andreadelprete/robust-equilibrium-lib.git $ROBUST_EQUI_LIB_DIR
```
```
And you can build th
e
library using CMake:
And you can build th
is
library using CMake:
```
```
mkdir $ROBUST_EQUI_LIB_DIR/build
mkdir $ROBUST_EQUI_LIB_DIR/build
cd $ROBUST_EQUI_LIB_DIR/build
cd $ROBUST_EQUI_LIB_DIR/build
cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_DIR}/install ..
cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_DIR}/install ..
make install
make install
```
```
Currently, CMake may have problems finding CDD
and qpOases
.
Currently, CMake may have problems finding CDD.
If this is the case you can specify
their
path
s
manually, for instance:
If this is the case you can specify
its
path manually, for instance:
```
```
cmake -DCDD_LIBRARY=/usr/lib/libcdd.so
-DqpOASES_INCLUDEDIR=${QP_OASES_DIR}/include -DqpOASES_LIB=${QP_OASES_DIR}/bin/libqpOASES.so
-DCMAKE_INSTALL_PREFIX=${DEVEL_DIR}/install ..
cmake -DCDD_LIBRARY=/usr/lib/libcdd.so -DCMAKE_INSTALL_PREFIX=${DEVEL_DIR}/install ..
```
```
### Optional
### Optional
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
4
−
3
View file @
d58ca69d
...
@@ -4,7 +4,7 @@ include_directories("${SRC_DIR}")
...
@@ -4,7 +4,7 @@ include_directories("${SRC_DIR}")
include_directories
(
"
${
INCLUDE_DIR
}
"
)
include_directories
(
"
${
INCLUDE_DIR
}
"
)
include_directories
(
"
${
EIGEN3_INCLUDE_DIR
}
"
)
include_directories
(
"
${
EIGEN3_INCLUDE_DIR
}
"
)
include_directories
(
"
${
CDD_INCLUDE_DIR
}
"
)
include_directories
(
"
${
CDD_INCLUDE_DIR
}
"
)
include
_
directories
(
"
${
qpOASES
_INCLUDE_DIR
}
"
)
# no need to
include
directories
for
qpOASES
as it is automatically done through pkgconfig
if
(
CLP_FOUND
)
if
(
CLP_FOUND
)
include_directories
(
"
${
CLP_INCLUDE_DIR
}
"
)
include_directories
(
"
${
CLP_INCLUDE_DIR
}
"
)
...
@@ -35,8 +35,9 @@ if ( MSVC )
...
@@ -35,8 +35,9 @@ if ( MSVC )
SET
(
CMAKE_DEBUG_POSTFIX d
)
SET
(
CMAKE_DEBUG_POSTFIX d
)
endif
(
MSVC
)
endif
(
MSVC
)
TARGET_LINK_LIBRARIES
(
robust-equilibrium-lib
${
CDD_LIBRARY
}
TARGET_LINK_LIBRARIES
(
robust-equilibrium-lib
${
CDD_LIBRARY
}
)
${
qpOASES_LIBRARY
}
)
PKG_CONFIG_USE_DEPENDENCY
(
robust-equilibrium-lib qpOASES
)
if
(
CLP_FOUND
)
if
(
CLP_FOUND
)
TARGET_LINK_LIBRARIES
(
robust-equilibrium-lib
${
CLP_LIBRARY
}
TARGET_LINK_LIBRARIES
(
robust-equilibrium-lib
${
CLP_LIBRARY
}
/usr/lib/libCoinUtils.so
)
/usr/lib/libCoinUtils.so
)
...
...
This diff is collapsed.
Click to expand it.
test/CMakeLists.txt
+
1
−
1
View file @
d58ca69d
...
@@ -4,7 +4,7 @@ include_directories("${SRC_DIR}")
...
@@ -4,7 +4,7 @@ include_directories("${SRC_DIR}")
include_directories
(
"
${
INCLUDE_DIR
}
"
)
include_directories
(
"
${
INCLUDE_DIR
}
"
)
include_directories
(
"
${
EIGEN3_INCLUDE_DIR
}
"
)
include_directories
(
"
${
EIGEN3_INCLUDE_DIR
}
"
)
include_directories
(
"
${
CDD_INCLUDE_DIR
}
"
)
include_directories
(
"
${
CDD_INCLUDE_DIR
}
"
)
include
_
directories
(
"
${
qpOASES
_INCLUDE_DIR
}
"
)
# no need to
include
directories
for
qpOASES
as it is automatically done through pkgconfig
if
(
CLP_FOUND
)
if
(
CLP_FOUND
)
include_directories
(
"
${
CLP_INCLUDE_DIR
}
"
)
include_directories
(
"
${
CLP_INCLUDE_DIR
}
"
)
endif
()
endif
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment