Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
sot-dynamic-pinocchio
Commits
6e292aff
Commit
6e292aff
authored
Sep 14, 2018
by
Olivier Stasse
Browse files
Fix compiling and deployment of python-module-py.cpp
parent
1f3f5d05
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/sot-dynamic-pinocchio/dynamic-pinocchio.h
View file @
6e292aff
...
...
@@ -29,8 +29,6 @@
/* STD */
#include
<string>
#include
<map>
/* Matrix */
#include
<dynamic-graph/linear-algebra.h>
/* SOT */
#include
<sot/core/flags.hh>
...
...
@@ -40,6 +38,8 @@
#include
<dynamic-graph/signal-time-dependent.h>
#include
<sot/core/exception-dynamic.hh>
#include
<sot/core/matrix-geometry.hh>
/* Matrix */
#include
<dynamic-graph/linear-algebra.h>
/* PINOCCHIO */
#include
<pinocchio/macros.hpp>
...
...
src/CMakeLists.txt
View file @
6e292aff
...
...
@@ -61,6 +61,17 @@ FOREACH(lib ${plugins})
UNSET
(
{libname}
)
ENDFOREACH
(
lib
)
IF
(
BUILD_PYTHON_INTERFACE
)
DYNAMIC_GRAPH_PYTHON_MODULE
(
"sot/dynamics_pinocchio/dynamic"
""
dynamic-wrap-python
1
"src/python-module-py.cpp"
)
PKG_CONFIG_USE_DEPENDENCY
(
dynamic-wrap-python pinocchio
)
ENDIF
(
BUILD_PYTHON_INTERFACE
)
# Main Library
ADD_LIBRARY
(
${
LIBRARY_NAME
}
SHARED sot-dynamic-pinocchio.cpp
)
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
pinocchio
)
...
...
src/python-module-py.cpp
View file @
6e292aff
...
...
@@ -13,8 +13,10 @@
// You should have received a copy of the GNU Lesser General Public License
// along with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>.
#include
<Python.h>
#include
<sot/core/debug.hh>
#include
<sot-dynamic-pinocchio/dynamic-pinocchio.h>
#include
<Python.h>
#include
<boost/python.hpp>
#include
<typeinfo>
#include
<cstdio>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment