32 : std::runtime_error(
"Stereo Cheirality Exception"),
35 Key nearbyVariable()
const {
56 typedef StereoPoint2Vector MeasurementVector;
60 Cal3_S2Stereo::shared_ptr K_;
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_);
The most common 5DOF 3D->2D calibration + Stereo baseline.
A 2D stereo point (uL,uR,v)
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
std::string serialize(const T &input)
serializes to a string
Definition: serialization.h:112
Vector3 Point3
As of GTSAM 4, in order to make GTSAM more lean, it is now possible to just typedef Point3 to Vector3...
Definition: Point3.h:35
Point2_ project(const Point3_ &p_cam)
Expression version of PinholeBase::Project.
Definition: expressions.h:96
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:69
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition: concepts.h:30
TangentVector localCoordinates(const Class &g) const
localCoordinates as required by manifold concept: finds tangent vector between *this and g
Definition: Lie.h:136
Both ManifoldTraits and Testable.
Definition: Manifold.h:120
OptionalJacobian is an Eigen::Ref like class that can take be constructed using either a fixed size o...
Definition: OptionalJacobian.h:39
Definition: Cal3_S2Stereo.h:30
bool equals(const Pose3 &pose, double tol=1e-9) const
assert equality up to a tolerance
Definition: Pose3.cpp:158
void print(const std::string &s="") const
print with optional string
Definition: Pose3.cpp:153
Definition: StereoCamera.h:26
Definition: StereoCamera.h:47
StereoCamera()
Default constructor allocates a calibration!
Definition: StereoCamera.h:72
static size_t Dim()
Dimensionality of the tangent space.
Definition: StereoCamera.h:110
void print(const std::string &s="") const
print
Definition: StereoCamera.h:89
Vector6 localCoordinates(const StereoCamera &t2) const
Local coordinates of manifold neighborhood around current value.
Definition: StereoCamera.h:120
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
StereoCamera retract(const Vector &v) const
Updates a with tangent space delta.
Definition: StereoCamera.h:115
StereoPoint2 Measurement
Some classes template on either PinholeCamera or StereoCamera, and this typedef informs those classes...
Definition: StereoCamera.h:55
const Cal3_S2Stereo & calibration() const
Return shared pointer to calibration.
Definition: StereoCamera.h:80
double baseline() const
baseline
Definition: StereoCamera.h:134
const Pose3 & pose() const
pose
Definition: StereoCamera.h:129
Definition: StereoPoint2.h:32