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
Guilhem Saurel
pinocchio
Commits
48c60e12
Commit
48c60e12
authored
Jul 03, 2018
by
jcarpent
Browse files
[Python] Use new API for enableEigenPySpecific
parent
276ae00e
Changes
3
Hide whitespace changes
Inline
Side-by-side
bindings/python/CMakeLists.txt
View file @
48c60e12
...
...
@@ -35,7 +35,7 @@ ADD_CUSTOM_TARGET(python)
SET_TARGET_PROPERTIES
(
python PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD True
)
# --- DEPENDENCIES --- #
SET
(
PKG_CONFIG_PYWRAP_REQUIRES
"eigenpy >= 1.
3.1
"
)
SET
(
PKG_CONFIG_PYWRAP_REQUIRES
"eigenpy >= 1.
4.0
"
)
FOREACH
(
dep
${
PKG_CONFIG_PYWRAP_REQUIRES
}
)
ADD_COMPILE_DEPENDENCY
(
${
dep
}
)
ENDFOREACH
(
dep
${
PKG_CONFIG_PYWRAP_REQUIRES
}
)
...
...
bindings/python/module.cpp
View file @
48c60e12
//
// Copyright (c) 2015-201
7
CNRS
// Copyright (c) 2015-201
8
CNRS
// Copyright (c) 2015 Wandercraft, 86 rue de Paris 91400 Orsay, France.
//
// This file is part of Pinocchio
...
...
@@ -36,10 +36,10 @@ BOOST_PYTHON_MODULE(libpinocchio_pywrap)
typedef
Eigen
::
Matrix
<
double
,
6
,
Eigen
::
Dynamic
>
Matrix6x
;
typedef
Eigen
::
Matrix
<
double
,
3
,
Eigen
::
Dynamic
>
Matrix3x
;
eigenpy
::
enableEigenPySpecific
<
Matrix6d
,
Matrix6d
>
();
eigenpy
::
enableEigenPySpecific
<
Vector6d
,
Vector6d
>
();
eigenpy
::
enableEigenPySpecific
<
Matrix6x
,
Matrix6x
>
();
eigenpy
::
enableEigenPySpecific
<
Matrix3x
,
Matrix3x
>
();
eigenpy
::
enableEigenPySpecific
<
Matrix6d
>
();
eigenpy
::
enableEigenPySpecific
<
Vector6d
>
();
eigenpy
::
enableEigenPySpecific
<
Matrix6x
>
();
eigenpy
::
enableEigenPySpecific
<
Matrix3x
>
();
exposeSE3
();
exposeForce
();
...
...
bindings/python/multibody/data.hpp
View file @
48c60e12
...
...
@@ -134,7 +134,7 @@ namespace se3
bp
::
class_
<
std
::
vector
<
int
>
>
(
"StdVec_int"
)
.
def
(
bp
::
vector_indexing_suite
<
std
::
vector
<
int
>
>
());
eigenpy
::
enableEigenPySpecific
<
Data
::
RowMatrixXd
,
Data
::
RowMatrixXd
>
();
eigenpy
::
enableEigenPySpecific
<
Data
::
RowMatrixXd
>
();
}
};
...
...
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