Skip to content

Commit 9c6c999

Browse files
committed
[core] Removed default tolerenace in quaternions
1 parent a0a64fa commit 9c6c999

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

include/pinocchio/codegen/cppadcg.hpp

+8
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ namespace pinocchio
122122
}
123123
};
124124

125+
namespace quaternion
126+
{
127+
template <typename BaseScalar>
128+
struct DefaultNormTolerance<CppAD::AD<CppAD::cg::CG<BaseScalar>>>
129+
{
130+
static constexpr BaseScalar value() { return DefaultNormTolerance<CppAD::AD<BaseScalar>>::value(); }
131+
};
132+
}
125133
} // namespace pinocchio
126134

127135
#endif // #ifndef __pinocchio_codegen_ccpadcg_hpp__

include/pinocchio/math/quaternion.hpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ namespace pinocchio
2020
namespace quaternion
2121
{
2222
template <typename Scalar>
23-
struct DefaultNormTolerance
24-
{
25-
static constexpr Scalar value() { return Scalar(1e-8); } // Generic fallback
26-
};
23+
struct DefaultNormTolerance;
2724

2825
template <>
2926
struct DefaultNormTolerance<double>

0 commit comments

Comments
 (0)