Line |
Branch |
Exec |
Source |
1 |
|
|
// |
2 |
|
|
// Copyright (c) 2016-2018 CNRS |
3 |
|
|
// |
4 |
|
|
|
5 |
|
|
#ifndef __pinocchio_default_check_hpp__ |
6 |
|
|
#define __pinocchio_default_check_hpp__ |
7 |
|
|
|
8 |
|
|
#include <pinocchio/algorithm/check.hpp> |
9 |
|
|
#include <pinocchio/algorithm/aba.hpp> |
10 |
|
|
#include <pinocchio/algorithm/crba.hpp> |
11 |
|
|
|
12 |
|
|
namespace pinocchio |
13 |
|
|
{ |
14 |
|
|
/// Default checker-list, used as the default argument in Model::check(). |
15 |
|
✗ |
inline AlgorithmCheckerList<ParentChecker, CRBAChecker, ABAChecker> makeDefaultCheckerList() |
16 |
|
|
{ |
17 |
|
✗ |
return makeAlgoCheckerList(ParentChecker(), CRBAChecker(), ABAChecker()); |
18 |
|
|
} |
19 |
|
|
|
20 |
|
|
#define DEFAULT_CHECKERS makeDefaultCheckerList() |
21 |
|
|
|
22 |
|
|
template<typename Scalar, int Options, template<typename, int> class JointCollectionTpl> |
23 |
|
|
inline bool ModelTpl<Scalar, Options, JointCollectionTpl>::check() const |
24 |
|
|
{ |
25 |
|
|
return this->check(DEFAULT_CHECKERS); |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
} // namespace pinocchio |
29 |
|
|
|
30 |
|
|
#endif // ifndef __pinocchio_default_check_hpp__ |
31 |
|
|
|