29 #include <gtsam/dllexport.h> 47 mutable std::optional<Matrix32>
B_;
48 mutable std::optional<Matrix62>
H_B_;
51 mutable std::mutex B_mutex_;
101 static Unit3 Random(std::mt19937 &
rng);
111 void print(
const std::string&
s = std::string())
const;
131 Matrix3 skew()
const;
176 inline static size_t Dim() {
181 inline size_t dim()
const {
202 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 204 friend class boost::serialization::access;
205 template<
class ARCHIVE>
206 void serialize(ARCHIVE & ar,
const unsigned int ) {
207 ar & BOOST_SERIALIZATION_NVP(p_);
void print(const Matrix &A, const string &s, ostream &stream)
Vector3 p_
The location of the point on the unit sphere.
Both ManifoldTraits and Testable.
Unit3(const Unit3 &u)
Copy constructor.
std::ostream & operator<<(std::ostream &os, const Dih6 &m)
double dot(const V1 &a, const V2 &b)
std::string serialize(const T &input)
serializes to a string
std::optional< Matrix32 > B_
Cached basis.
bool equals(const Unit3 &s, double tol=1e-9) const
The equals function with tolerance.
size_t dim() const
Dimensionality of tangent space = 2 DOF.
Double_ distance(const OrientedPlane3_ &p)
std::optional< Matrix62 > H_B_
Cached basis derivative.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange [*:*] noreverse nowriteback set trange [*:*] noreverse nowriteback set urange [*:*] noreverse nowriteback set vrange [*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
Represents a 3D point on a unit sphere.
Point3 cross(const Point3 &q) const
Cross-product w Point3.
Base class and basic functions for Manifold types.
Unit3 & operator=(const Unit3 &u)
Copy assignment.
Array< int, Dynamic, 1 > v
static size_t Dim()
Dimensionality of tangent space = 2 DOF.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
friend Point3 operator*(double s, const Unit3 &d)
Return scaled direction as Point3.
EIGEN_DEVICE_FUNC const Scalar & q
Unit3()
Default constructor.
Point3_ point3(const Unit3_ &v)
bool equal_with_abs_tol(const Eigen::DenseBase< MATRIX > &A, const Eigen::DenseBase< MATRIX > &B, double tol=1e-9)
typedef and functions to augment Eigen's VectorXd
Unit3 cross(const Unit3 &q) const
Cross-product between two Unit3s.
ofstream os("timeSchurFactors.csv")
serialization for Vectors
Use the exponential map to retract.
#define GTSAM_MAKE_ALIGNED_OPERATOR_NEW
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x