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 |
|
1 |
inline AlgorithmCheckerList<ParentChecker,CRBAChecker,ABAChecker> makeDefaultCheckerList() |
16 |
✓✗ |
2 |
{ return makeAlgoCheckerList(ParentChecker(),CRBAChecker(),ABAChecker()); } |
17 |
|
|
|
18 |
|
|
#define DEFAULT_CHECKERS makeDefaultCheckerList() |
19 |
|
|
|
20 |
|
|
template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl> |
21 |
|
|
inline bool ModelTpl<Scalar,Options,JointCollectionTpl>::check() const |
22 |
|
|
{ return this->check(DEFAULT_CHECKERS); } |
23 |
|
|
|
24 |
|
|
} // namespace pinocchio |
25 |
|
|
|
26 |
|
|
#endif // ifndef __pinocchio_default_check_hpp__ |