Public SpaCostFunction::Compute* (#814)
parent
19ff047a79
commit
057bd8ce6a
|
@ -50,9 +50,6 @@ class SpaCostFunction {
|
|||
return true;
|
||||
}
|
||||
|
||||
private:
|
||||
explicit SpaCostFunction(const Constraint::Pose& pose) : pose_(pose) {}
|
||||
|
||||
// Computes the error between the node-to-submap alignment 'zbar_ij' and the
|
||||
// difference of submap pose 'c_i' and node pose 'c_j' which are both in an
|
||||
// arbitrary common frame.
|
||||
|
@ -86,6 +83,9 @@ class SpaCostFunction {
|
|||
e[2] = e_ij[2] * T(pose.rotation_weight);
|
||||
}
|
||||
|
||||
private:
|
||||
explicit SpaCostFunction(const Constraint::Pose& pose) : pose_(pose) {}
|
||||
|
||||
const Constraint::Pose pose_;
|
||||
};
|
||||
|
||||
|
|
|
@ -53,9 +53,6 @@ class SpaCostFunction {
|
|||
return true;
|
||||
}
|
||||
|
||||
private:
|
||||
explicit SpaCostFunction(const Constraint::Pose& pose) : pose_(pose) {}
|
||||
|
||||
// Computes the error between the node-to-submap alignment 'zbar_ij' and the
|
||||
// difference of submap pose 'c_i' and node pose 'c_j' which are both in an
|
||||
// arbitrary common frame.
|
||||
|
@ -108,6 +105,9 @@ class SpaCostFunction {
|
|||
}
|
||||
}
|
||||
|
||||
private:
|
||||
explicit SpaCostFunction(const Constraint::Pose& pose) : pose_(pose) {}
|
||||
|
||||
const Constraint::Pose pose_;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue