get dimension of prior factor with traits
parent
1f171cf1a1
commit
c472c86730
|
@ -81,7 +81,7 @@ namespace gtsam {
|
|||
|
||||
/** vector of errors */
|
||||
Vector evaluateError(const T& p, boost::optional<Matrix&> H = boost::none) const {
|
||||
if (H) (*H) = eye(p.dim());
|
||||
if (H) (*H) = eye(traits::dimension<T>());
|
||||
// manifold equivalent of h(x)-z -> log(z,h(x))
|
||||
DefaultChart<T> chart;
|
||||
return chart.local(prior_,p);
|
||||
|
|
Loading…
Reference in New Issue