44 inline Rot2(
double c,
double s) : c_(c), s_(s) {}
52 Rot2() : c_(1.0), s_(0.0) {}
68 return fromAngle(theta * degree);
72 static Rot2 fromCosSin(
double c,
double s);
93 static Rot2 Random(std::mt19937 &
rng);
100 void print(
const std::string& s =
"theta")
const;
117 return fromCosSin(c_ * R.
c_ - s_ * R.
s_, s_ * R.
c_ + c_ * R.
s_);
197 inline double c()
const {
202 inline double s()
const {
210 Matrix2 transpose()
const;
213 static Rot2 ClosestTo(
const Matrix2&
M);
216 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 218 friend class boost::serialization::access;
219 template<
class ARCHIVE>
220 void serialize(ARCHIVE & ar,
const unsigned int ) {
221 ar & BOOST_SERIALIZATION_NVP(c_);
222 ar & BOOST_SERIALIZATION_NVP(s_);
Point3_ unrotate(const Rot3_ &x, const Point3_ &p)
void print(const Matrix &A, const string &s, ostream &stream)
static Matrix ExpmapDerivative(const Vector &)
Left-trivialized derivative of the exponential map.
Matrix< RealScalar, Dynamic, Dynamic > M
Jet< T, N > cos(const Jet< T, N > &f)
std::string serialize(const T &input)
serializes to a string
Point2 unit() const
Creates a unit vector as a Point2.
Rot2 operator*(const Rot2 &R) const
Rot2 R(Rot2::fromAngle(0.1))
Jet< T, N > sin(const Jet< T, N > &f)
Pose2_ Expmap(const Vector3_ &xi)
static Matrix LogmapDerivative(const Vector &)
Left-trivialized derivative inverse of the exponential map.
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
static Rot2 fromDegrees(double theta)
Named constructor from angle in degrees.
static void normalize(Signature::Row &row)
Point2 operator*(const Point2 &p) const
Array< int, Dynamic, 1 > v
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Point3_ rotate(const Rot3_ &x, const Point3_ &p)
static Rot2 Retract(const Vector1 &v, ChartJacobian H={})
Base class and basic functions for Lie types.
AnnoyingScalar atan2(const AnnoyingScalar &y, const AnnoyingScalar &x)
Both LieGroupTraits and Testable.
static Vector1 Local(const Rot2 &r, ChartJacobian H={})
Matrix1 AdjointMap() const
static Rot2 fromAngle(double theta)
Named constructor from angle in radians.
Rot2(double theta)
Constructor from angle in radians == exponential map at identity.
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
The matrix class, also used for vectors and row-vectors.
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