Commit a6fc2d35 authored by Ewen Dantec's avatar Ewen Dantec
Browse files

Add headguard for hpp-fcl in unittest

parent 65d03ca4
Pipeline #15635 failed with stage
in 93 minutes and 58 seconds
......@@ -188,6 +188,8 @@ boost::shared_ptr<crocoddyl::CostModelAbstract> CostModelFactory::create(CostMod
return cost;
}
#ifdef PINOCCHIO_WITH_HPP_FCL
boost::shared_ptr<crocoddyl::CostModelAbstract> CostModelFactory::create(CostModelCollisionTypes::Type cost_type,
StateModelTypes::Type state_type,
std::size_t nu) const {
......@@ -234,6 +236,8 @@ boost::shared_ptr<crocoddyl::CostModelAbstract> CostModelFactory::create(CostMod
return cost;
}
#endif // PINOCCHIO_WITH_HPP_FCL
boost::shared_ptr<crocoddyl::CostModelAbstract> create_random_cost(StateModelTypes::Type state_type, std::size_t nu) {
static bool once = true;
if (once) {
......
......@@ -11,6 +11,8 @@
#define BOOST_TEST_NO_MAIN
#define BOOST_TEST_ALTERNATIVE_INIT_API
#ifdef PINOCCHIO_WITH_HPP_FCL
#include "crocoddyl/multibody/data/multibody.hpp"
#include "factory/cost.hpp"
......@@ -242,3 +244,4 @@ bool init_function() {
int main(int argc, char** argv) { return ::boost::unit_test::unit_test_main(&init_function, argc, argv); }
#endif // PINOCCHIO_WITH_HPP_FCL
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