23 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 24 #include <boost/serialization/nvp.hpp> 40 enum { dimension = 3 };
46 uL_(0), uR_(0), v_(0) {
53 uL_(uL), uR_(uR), v_(v) {
58 uL_(v(0)), uR_(v(1)), v_(v(2)) {}
65 void print(
const std::string&
s =
"")
const;
110 inline double uL()
const {
return uL_;}
113 inline double uR()
const {
return uR_;}
116 inline double v()
const {
return v_;}
153 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 155 friend class boost::serialization::access;
156 template<
class ARCHIVE>
157 void serialize(ARCHIVE & ar,
const unsigned int ) {
158 ar & BOOST_SERIALIZATION_NVP(uL_);
159 ar & BOOST_SERIALIZATION_NVP(uR_);
160 ar & BOOST_SERIALIZATION_NVP(v_);
void print(const Matrix &A, const string &s, ostream &stream)
std::ostream & operator<<(std::ostream &os, const Dih6 &m)
static StereoPoint2 Expmap(const Vector &d)
VectorSpace provides both Testable and VectorSpaceTraits.
std::string serialize(const T &input)
serializes to a string
bool operator==(const Matrix &A, const Matrix &B)
Pose2_ Expmap(const Vector3_ &xi)
StereoPoint2 inverse() const
std::vector< StereoPoint2 > StereoPoint2Vector
StereoPoint2(double uL, double uR, double v)
StereoPoint2 operator-() const
inverse
Array< int, Dynamic, 1 > v
Errors operator+(const Errors &a, const Errors &b)
Addition.
Errors operator-(const Errors &a, const Errors &b)
Subtraction.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
EIGEN_DEVICE_FUNC const Scalar & q
static StereoPoint2 Identity()
identity
static Vector Logmap(const StereoPoint2 &p)
StereoPoint2 compose(const StereoPoint2 &p1) const
StereoPoint2 retract(const Vector &v) const
ofstream os("timeSchurFactors.csv")
Vector localCoordinates(const StereoPoint2 &t2) const
Expression< T > compose(const Expression< T > &t1, const Expression< T > &t2)
StereoPoint2 between(const StereoPoint2 &p2) const
StereoPoint2(const Vector3 &v)
construct from 3D vector
Expression< T > between(const Expression< T > &t1, const Expression< T > &t2)
bool equals(const StereoPoint2 &q, double tol=1e-9) const