Remove SFINAE from KarcherMean so we can also use it for Rot2
parent
b60ca0f5b3
commit
cc8d80fb7e
|
@ -40,8 +40,7 @@ T FindKarcherMeanImpl(const vector<T, ALLOC>& rotations) {
|
||||||
return result.at<T>(kKey);
|
return result.at<T>(kKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T,
|
template <class T>
|
||||||
typename = typename std::enable_if< std::is_same<gtsam::Rot3, T>::value >::type >
|
|
||||||
T FindKarcherMean(const std::vector<T>& rotations) {
|
T FindKarcherMean(const std::vector<T>& rotations) {
|
||||||
return FindKarcherMeanImpl(rotations);
|
return FindKarcherMeanImpl(rotations);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue