Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-core
Commits
2e9ea113
Commit
2e9ea113
authored
Jan 12, 2021
by
Joseph Mirabel
Browse files
[TOPPRA] Add Seidel solver.
parent
368e72fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/toppra.cc
View file @
2e9ea113
...
...
@@ -35,6 +35,7 @@
#include
<toppra/algorithm/toppra.hpp>
#include
<toppra/solver/glpk-wrapper.hpp>
#include
<toppra/solver/qpOASES-wrapper.hpp>
#include
<toppra/solver/seidel.hpp>
#include
<toppra/constraint/linear_joint_velocity.hpp>
#include
<toppra/constraint/linear_joint_acceleration.hpp>
...
...
@@ -178,11 +179,14 @@ PathVectorPtr_t TOPPRA::optimize(const PathVectorPtr_t &path)
algo
.
setN
((
int
)
N
);
switch
(
solver
)
{
default:
hppDout
(
error
,
"Solver "
<<
solver
<<
" does not exists. Using
GLPK
"
);
hppDout
(
error
,
"Solver "
<<
solver
<<
" does not exists. Using
Seidel
"
);
case
0
:
algo
.
solver
(
std
::
make_shared
<
toppra
::
solver
::
GLPKWrapper
>
());
algo
.
solver
(
std
::
make_shared
<
toppra
::
solver
::
Seidel
>
());
break
;
case
1
:
algo
.
solver
(
std
::
make_shared
<
toppra
::
solver
::
GLPKWrapper
>
());
break
;
case
2
:
algo
.
solver
(
std
::
make_shared
<
toppra
::
solver
::
qpOASESWrapper
>
());
break
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment