Go to the documentation of this file.
29 #include <gtsam/dllexport.h>
47 mutable std::optional<Matrix32>
B_;
48 mutable std::optional<Matrix62>
H_B_;
51 mutable std::mutex B_mutex_;
56 inline constexpr
static auto dimension = 2;
99 static Unit3 Random(std::mt19937 &
rng);
106 GTSAM_EXPORT
friend std::ostream&
operator<<(std::ostream&
os,
110 void print(
const std::string&
s = std::string())
const;
130 Matrix3 skew()
const;
136 Vector3 unitVector(OptionalJacobian<3, 2>
H = {})
const;
145 OptionalJacobian<1,2> H2 = {})
const;
149 Vector2 error(
const Unit3&
q, OptionalJacobian<2, 2> H_q = {})
const;
153 Vector2 errorVector(
const Unit3&
q, OptionalJacobian<2, 2> H_p = {},
154 OptionalJacobian<2, 2> H_q = {})
const;
157 double distance(
const Unit3&
q, OptionalJacobian<1, 2>
H = {})
const;
161 return Unit3(p_.cross(
q.p_));
175 inline static size_t Dim() {
180 inline size_t dim()
const {
193 Vector2 localCoordinates(
const Unit3&
s)
const;
201 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
203 friend class boost::serialization::access;
204 template<
class ARCHIVE>
205 void serialize(ARCHIVE & ar,
const unsigned int ) {
206 ar & BOOST_SERIALIZATION_NVP(p_);
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
friend Point3 operator*(double s, const Unit3 &d)
Return scaled direction as Point3.
typedef and functions to augment Eigen's VectorXd
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static const double d[K][N]
std::ostream & operator<<(std::ostream &os, const Dih6 &m)
serialization for Vectors
typedef and functions to augment Eigen's MatrixXd
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
Point3_ point3(const Unit3_ &v)
bool equal_with_abs_tol(const Eigen::DenseBase< MATRIX > &A, const Eigen::DenseBase< MATRIX > &B, double tol=1e-9)
std::optional< Matrix62 > H_B_
Cached basis derivative.
def retract(a, np.ndarray xi)
std::optional< Matrix32 > B_
Cached basis.
Both ManifoldTraits and Testable.
ofstream os("timeSchurFactors.csv")
Unit3()
Default constructor.
Unit3 & operator=(const Unit3 &u)
Copy assignment.
void print(const Matrix &A, const string &s, ostream &stream)
static size_t Dim()
Dimensionality of tangent space = 2 DOF.
EIGEN_DEVICE_FUNC const Scalar & q
Point3 cross(const Point3 &q) const
Cross-product w Point3.
double dot(const V1 &a, const V2 &b)
Base class and basic functions for Manifold types.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Array< int, Dynamic, 1 > v
size_t dim() const
Dimensionality of tangent space = 2 DOF.
bool equals(const Unit3 &s, double tol=1e-9) const
The equals function with tolerance.
Double_ distance(const OrientedPlane3_ &p)
Represents a 3D point on a unit sphere.
Unit3 cross(const Unit3 &q) const
Cross-product between two Unit3s.
Unit3(const Unit3 &u)
Copy constructor.
#define GTSAM_MAKE_ALIGNED_OPERATOR_NEW
Vector3 p_
The location of the point on the unit sphere.
@ EXPMAP
Use the exponential map to retract.
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:21