32 :
std::runtime_error(
"Stereo Cheirality Exception"),
89 void print(
const std::string&
s =
"")
const {
90 leftCamPose_.
print(
s +
".camera.");
91 K_->print(
s +
".calibration.");
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>
180 ar & BOOST_SERIALIZATION_NVP(leftCamPose_);
181 ar & BOOST_SERIALIZATION_NVP(K_);
void print(const std::string &s="") const
print with optional string
size_t dim() const
Dimensionality of the tangent space.
Both ManifoldTraits and Testable.
Point2_ project(const Point3_ &p_cam)
Expression version of PinholeBase::Project.
bool equals(const Pose3 &pose, double tol=1e-9) const
assert equality up to a tolerance
const Cal3_S2Stereo & calibration() const
Return shared pointer to calibration.
Point2_ project2(const Expression< CAMERA > &camera_, const Expression< POINT > &p_)
static Cal3_S2 K(500, 500, 0.1, 640/2, 480/2)
StereoCamera()
Default constructor allocates a calibration!
Cal3_S2Stereo::shared_ptr K_
void serialize(Archive &ar, const unsigned int)
static Point3 backproject(const Pose3 &pose, const Point2 &point, const double &depth)
std::vector< StereoPoint2 > StereoPoint2Vector
StereoPoint2Vector MeasurementVector
void print(const std::string &s="") const
print
StereoCheiralityException()
static size_t Dim()
Dimensionality of the tangent space.
boost::shared_ptr< Cal3_S2Stereo > shared_ptr
static const Pose3 pose(Rot3(Vector3(1,-1,-1).asDiagonal()), Point3(0, 0, 0.5))
StereoCamera retract(const Vector &v) const
Updates a with tangent space delta.
StereoCheiralityException(Key j)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Vector6 localCoordinates(const StereoCamera &t2) const
Local coordinates of manifold neighborhood around current value.
bool equals(const StereoCamera &camera, double tol=1e-9) const
equals
The most common 5DOF 3D->2D calibration + Stereo baseline.
double baseline() const
baseline
A 2D stereo point (uL,uR,v)
Key nearbyVariable() const
static const CalibratedCamera camera(kDefaultPose)
const Pose3 & pose() const
pose
std::uint64_t Key
Integer nonlinear key type.
TangentVector localCoordinates(const Class &g) const
localCoordinates as required by manifold concept: finds tangent vector between *this and g ...