fix SphericalCamera traits definition
parent
ced6c53e06
commit
c8184eb109
|
@ -238,9 +238,9 @@ class GTSAM_EXPORT SphericalCamera {
|
||||||
// end of class SphericalCamera
|
// end of class SphericalCamera
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct traits<SphericalCamera> : public internal::LieGroup<Pose3> {};
|
struct traits<SphericalCamera> : public internal::Manifold<SphericalCamera> {};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct traits<const SphericalCamera> : public internal::LieGroup<Pose3> {};
|
struct traits<const SphericalCamera> : public internal::Manifold<SphericalCamera> {};
|
||||||
|
|
||||||
} // namespace gtsam
|
} // namespace gtsam
|
||||||
|
|
|
@ -162,8 +162,9 @@ protected:
|
||||||
/// Collect all cameras: important that in key order.
|
/// Collect all cameras: important that in key order.
|
||||||
virtual Cameras cameras(const Values& values) const {
|
virtual Cameras cameras(const Values& values) const {
|
||||||
Cameras cameras;
|
Cameras cameras;
|
||||||
for(const Key& k: this->keys_)
|
for(const Key& k: this->keys_) {
|
||||||
cameras.push_back(values.at<CAMERA>(k));
|
cameras.push_back(values.at<CAMERA>(k));
|
||||||
|
}
|
||||||
return cameras;
|
return cameras;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue