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
loco-3d
crocoddyl
Commits
a6fc2d35
Commit
a6fc2d35
authored
Jun 24, 2021
by
Ewen Dantec
Browse files
Add headguard for hpp-fcl in unittest
parent
65d03ca4
Pipeline
#15635
failed with stage
in 93 minutes and 58 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
unittest/factory/cost.cpp
View file @
a6fc2d35
...
...
@@ -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
)
{
...
...
unittest/test_costs_collision.cpp
View file @
a6fc2d35
...
...
@@ -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
Write
Preview
Markdown
is supported
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