32 : std::runtime_error(
"Stereo Cheirality Exception"),
35 Key nearbyVariable()
const {
56 typedef StereoPoint2Vector MeasurementVector;
89 void print(
const std::string& s =
"")
const {
90 leftCamPose_.
print(s +
".camera.");
91 K_->print(s +
".calibration.");
96 return leftCamPose_.
equals(camera.leftCamPose_, tol)
97 && K_->equals(*camera.K_, tol);
105 inline size_t dim()
const {
110 static inline size_t Dim() {
135 return K_->baseline();
177 friend class boost::serialization::access;
178 template<
class Archive>
179 void serialize(Archive & ar,
const unsigned int ) {
180 ar & BOOST_SERIALIZATION_NVP(leftCamPose_);
181 ar & BOOST_SERIALIZATION_NVP(K_);
Vector6 localCoordinates(const StereoCamera &t2) const
Local coordinates of manifold neighborhood around current value.
Definition: StereoCamera.h:120
void print(const std::string &s="") const
print with optional string
Definition: Pose3.cpp:107
Both ManifoldTraits and Testable.
Definition: Manifold.h:120
Definition: StereoCamera.h:26
boost::shared_ptr< Cal3_S2Stereo > shared_ptr
shared pointer to stereo calibration object
Definition: Cal3_S2Stereo.h:39
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:57
A 2D stereo point (uL,uR,v)
void print(const std::string &s="") const
print
Definition: StereoCamera.h:89
OptionalJacobian is an Eigen::Ref like class that can take be constructed using either a fixed size o...
Definition: OptionalJacobian.h:39
static size_t Dim()
Dimensionality of the tangent space.
Definition: StereoCamera.h:110
const Cal3_S2Stereo & calibration() const
Return shared pointer to calibration.
Definition: StereoCamera.h:80
Definition: StereoPoint2.h:32
Definition: StereoCamera.h:47
Point2_ project(const Point3_ &p_cam)
Expression version of PinholeBase::Project.
Definition: expressions.h:57
const Pose3 & pose() const
pose
Definition: StereoCamera.h:129
double baseline() const
baseline
Definition: StereoCamera.h:134
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition: concepts.h:30
StereoPoint2 Measurement
Some classes template on either PinholeCamera or StereoCamera, and this typedef informs those classes...
Definition: StereoCamera.h:55
Definition: Cal3_S2Stereo.h:30
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
bool equals(const StereoCamera &camera, double tol=1e-9) const
equals
Definition: StereoCamera.h:95
size_t dim() const
Dimensionality of the tangent space.
Definition: StereoCamera.h:105
The most common 5DOF 3D->2D calibration + Stereo baseline.
StereoCamera retract(const Vector &v) const
Updates a with tangent space delta.
Definition: StereoCamera.h:115
TangentVector localCoordinates(const Class &g) const
localCoordinates as required by manifold concept: finds tangent vector between *this and g
Definition: Lie.h:138
StereoCamera()
Default constructor allocates a calibration!
Definition: StereoCamera.h:72
bool equals(const Pose3 &pose, double tol=1e-9) const
assert equality up to a tolerance
Definition: Pose3.cpp:114