20 #include <gtsam/dllexport.h>
21 #include <gtsam/base/DerivedValue.h>
38 double value()
const {
return d_; }
41 operator double()
const {
return d_; }
44 void print(
const std::string& name=
"")
const;
48 return fabs(expected.d_ - d_) <= tol;
54 size_t dim()
const {
return 1; }
55 static size_t Dim() {
return 1; }
72 boost::optional<Matrix&> H1=boost::none,
73 boost::optional<Matrix&> H2=boost::none)
const {
81 boost::optional<Matrix&> H1=boost::none,
82 boost::optional<Matrix&> H2=boost::none)
const {
102 static Matrix
dexpL(
const Vector& v) {
LieScalar inverse() const
invert the object and yield a new one
Definition: LieScalar.h:89
Vector localCoordinates(const LieScalar &t2) const
Definition: LieScalar.h:61
Base class and basic functions for Lie types.
LieScalar is a wrapper around double to allow it to be a Lie type.
Definition: LieScalar.h:29
Matrix eye(size_t m, size_t n)
Creates an identity matrix, with matlab-like syntax.
Definition: Matrix.cpp:50
bool equals(const LieScalar &expected, double tol=1e-5) const
equality up to tolerance
Definition: LieScalar.h:47
LieScalar compose(const LieScalar &p, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none) const
compose with another object
Definition: LieScalar.h:71
static Matrix dexpInvL(const Vector &v)
Left-trivialized derivative inverse of the exponential map.
Definition: LieScalar.h:107
double value() const
access the underlying value
Definition: LieScalar.h:38
static LieScalar identity()
identity
Definition: LieScalar.h:66
LieScalar between(const LieScalar &l2, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none) const
between operation
Definition: LieScalar.h:80
LieScalar()
default constructor
Definition: LieScalar.h:32
void print(const Matrix &A, const string &s, ostream &stream)
print a matrix
Definition: Matrix.cpp:183
static LieScalar Expmap(const Vector &v)
Expmap around identity.
Definition: LieScalar.h:96
LieScalar retract(const Vector &v) const
Update the LieScalar with a tangent space update.
Definition: LieScalar.h:58
static Matrix dexpL(const Vector &v)
Left-trivialized derivative of the exponential map.
Definition: LieScalar.h:102
static Vector Logmap(const LieScalar &p)
Logmap around identity - just returns with default cast back.
Definition: LieScalar.h:99
LieScalar(double d)
wrap a double
Definition: LieScalar.h:35
Definition: DerivedValue.h:44
size_t dim() const
Returns dimensionality of the tangent space.
Definition: LieScalar.h:54