From 35f3a2540d29da7244bab279a4e0fce205c60188 Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@laas.fr>
Date: Fri, 28 Aug 2020 15:58:21 +0200
Subject: [PATCH] module.hh: include pinocchio/fwd if pinocchio is used

---
 include/dynamic-graph/python/module.hh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/dynamic-graph/python/module.hh b/include/dynamic-graph/python/module.hh
index 7933e47..c472538 100644
--- a/include/dynamic-graph/python/module.hh
+++ b/include/dynamic-graph/python/module.hh
@@ -1,6 +1,11 @@
 #ifndef DYNAMIC_GRAPH_PYTHON_MODULE_HH
 #define DYNAMIC_GRAPH_PYTHON_MODULE_HH
 
+#ifdef PINOCCHIO_WITH_URDFDOM
+// If pinocchio is used, we have to include pinocchio header before boost mpl
+#include <pinocchio/fwd.hpp>
+#endif
+
 #include <boost/python.hpp>
 #include <boost/mpl/for_each.hpp>
 
-- 
GitLab