Commit b75745c3 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

include pinocchio before boost, ref #182

ref https://github.com/stack-of-tasks/pinocchio/issues/849
parent 85bd19fb
Pipeline #5999 passed with stage
in 74 minutes and 30 seconds
......@@ -15,6 +15,7 @@
// hpp-core. If not, see <http://www.gnu.org/licenses/>.
#define BOOST_TEST_MODULE configuration_shooters
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <hpp/core/configuration-shooter/uniform.hh>
......
......@@ -15,6 +15,7 @@
// hpp-core. If not, see <http://www.gnu.org/licenses/>.
#define BOOST_TEST_MODULE ExplicitRelativeTransformationTest
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <boost/shared_ptr.hpp>
......
......@@ -15,6 +15,7 @@
// hpp-core. If not, see <http://www.gnu.org/licenses/>.
#define BOOST_TEST_MODULE pathProjector
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <boost/test/test_case_template.hpp>
#include <boost/mpl/list.hpp>
......
......@@ -15,6 +15,7 @@
// hpp-core. If not, see <http://www.gnu.org/licenses/>.
#define BOOST_TEST_MODULE paths
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <boost/test/test_case_template.hpp>
#include <boost/mpl/list.hpp>
......
......@@ -15,6 +15,7 @@
// hpp-core. If not, see <http://www.gnu.org/licenses/>.
#define BOOST_TEST_MODULE plugin
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <hpp/core/plugin.hh>
......
......@@ -15,6 +15,7 @@
// hpp-core. If not, see <http://www.gnu.org/licenses/>.
#define BOOST_TEST_MODULE problem
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <hpp/fcl/collision_object.h>
......
......@@ -15,6 +15,7 @@
// hpp-core. If not, see <http://www.gnu.org/licenses/>.
#define BOOST_TEST_MODULE relativeMotion
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <boost/test/test_case_template.hpp>
#include <boost/mpl/list.hpp>
......
......@@ -18,6 +18,8 @@
#define BOOST_TEST_MODULE test_config_validations
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <hpp/core/problem.hh>
......
......@@ -14,7 +14,8 @@
// received a copy of the GNU Lesser General Public License along with
// hpp-constraints. If not, see <http://www.gnu.org/licenses/>.
#define BOOST_TEST_MODULE ConfigProjector
#define BOOST_TEST_MODULE ConfigProjector
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <hpp/pinocchio/device.hh>
......@@ -124,16 +125,16 @@ BOOST_AUTO_TEST_CASE (ref_not_zero)
projector->add (constraints::Implicit::create (position, ineq));
Configuration_t cfg(dev->neutralConfiguration ());
ref[0] = 2;
ref[1] = 0;
ref[2] = 2;
ref[0] = 2;
ref[1] = 0;
ref[2] = 2;
cfg.segment (0,3) = ref;
BOOST_CHECK (projector->apply (cfg));
BOOST_CHECK_MESSAGE ((cfg.segment (0, 3) - ref).isZero (), "Configuration should not be modified.");
ref[0] = 0;
ref[1] = 0;
ref[2] = 0;
ref[0] = 0;
ref[1] = 0;
ref[2] = 0;
cfg.segment (0,3) = ref;
BOOST_CHECK (projector->apply (cfg));
BOOST_CHECK_MESSAGE ( cfg (0) > 1 , "Dof 0 should have been modified. " << cfg.head<3>().transpose());
......
......@@ -15,6 +15,7 @@
// hpp-constraints. If not, see <http://www.gnu.org/licenses/>.
#define BOOST_TEST_MODULE ContinuousValidation
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
......
......@@ -19,6 +19,7 @@
#define BOOST_TEST_MODULE gradient_based
#include <cmath>
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <hpp/pinocchio/device.hh>
......
......@@ -18,6 +18,8 @@
#define BOOST_TEST_MODULE path_extraction
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <hpp/fcl/math/transform.h>
......
......@@ -15,6 +15,7 @@
// hpp-core. If not, see <http://www.gnu.org/licenses/>.
#define BOOST_TEST_MODULE time_parameterization
#include <pinocchio/fwd.hpp>
#include <boost/test/included/unit_test.hpp>
#include <hpp/core/time-parameterization/polynomial.hh>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment