Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-spline
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Humanoid Path Planner
hpp-spline
Commits
bf71c76b
Commit
bf71c76b
authored
6 years ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
use standard python bindings name
parent
c8fd823c
No related branches found
Branches containing commit
Tags
v4.3.0
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
python/CMakeLists.txt
+8
-13
8 additions, 13 deletions
python/CMakeLists.txt
python/spline_python.cpp
+1
-1
1 addition, 1 deletion
python/spline_python.cpp
python/test/test.py
+1
-1
1 addition, 1 deletion
python/test/test.py
with
10 additions
and
15 deletions
python/CMakeLists.txt
+
8
−
13
View file @
bf71c76b
cmake_minimum_required
(
VERSION 2.8
)
include_directories
(
"
${
EIGEN3_INCLUDE_DIR
}
"
)
STRING
(
REGEX REPLACE
"-"
"_"
PY_NAME
${
PROJECT_NAME
}
)
ADD_REQUIRED_DEPENDENCY
(
"eigenpy"
)
include_directories
(
"
${
PROJECT_SOURCE_DIR
}
/include"
)
FILE
(
GLOB_RECURSE HeaderFiles
"
${
PROJECT_SOURCE_DIR
}
/include/spline/*.h"
)
# Define the wrapper library that wraps our library
add_library
(
spline
SHARED spline_python.cpp
)
add_library
(
${
PY_NAME
}
SHARED spline_python.cpp
)
#~ target_link_libraries( centroidal_dynamics ${Boost_LIBRARIES} ${PROJECT_NAME} )
# don't prepend wrapper library name with lib
set_target_properties
(
spline
PROPERTIES PREFIX
""
)
set_target_properties
(
${
PY_NAME
}
PROPERTIES PREFIX
""
)
IF
(
APPLE
)
# We need to change the extension for python bindings
SET_TARGET_PROPERTIES
(
spline
PROPERTIES SUFFIX
".so"
)
# We need to change the extension for python bindings
SET_TARGET_PROPERTIES
(
${
PY_NAME
}
PROPERTIES SUFFIX
".so"
)
ENDIF
(
APPLE
)
PKG_CONFIG_USE_DEPENDENCY
(
spline
eigenpy
)
PKG_CONFIG_USE_DEPENDENCY
(
${
PY_NAME
}
eigenpy
)
INSTALL
(
TARGETS
spline
DESTINATION
${
PYTHON_SITELIB
}
)
TARGETS
${
PY_NAME
}
DESTINATION
${
PYTHON_SITELIB
}
)
ADD_PYTHON_UNIT_TEST
(
"python-spline"
"python/test/test.py"
"python"
)
This diff is collapsed.
Click to expand it.
python/spline_python.cpp
+
1
−
1
View file @
bf71c76b
...
...
@@ -205,7 +205,7 @@ void set_end_acc(curve_constraints_t& c, const point_t& val)
BOOST_PYTHON_MODULE
(
spline
)
BOOST_PYTHON_MODULE
(
hpp_
spline
)
{
/** BEGIN eigenpy init**/
eigenpy
::
enableEigenPy
();
...
...
This diff is collapsed.
Click to expand it.
python/test/test.py
+
1
−
1
View file @
bf71c76b
from
numpy
import
matrix
from
numpy.linalg
import
norm
from
spline
import
bezier
,
bezier6
,
curve_constraints
,
exact_cubic
,
from_bezier
,
polynom
,
spline_deriv_constraint
from
hpp_
spline
import
bezier
,
bezier6
,
curve_constraints
,
exact_cubic
,
from_bezier
,
polynom
,
spline_deriv_constraint
__EPS
=
1e-6
...
...
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