20 #include <gtsam/config.h> 59 R_(pose.R_), t_(pose.t_) {
72 R_(T(0, 0), T(0, 1), T(0, 2), T(1, 0), T(1, 1), T(1, 2), T(2, 0), T(2, 1),
73 T(2, 2)), t_(T(0, 3), T(1, 3), T(2, 3)) {
87 static boost::optional<Pose3> Align(
const std::vector<Point3Pair>& abPointPairs);
94 void print(
const std::string& s =
"")
const;
97 bool equals(
const Pose3& pose,
double tol = 1e-9)
const;
109 Pose3 inverse()
const;
113 return Pose3(R_ * T.R_, t_ + R_ * T.t_);
130 Matrix6 AdjointMap()
const;
137 return AdjointMap() * xi_b;
155 static Matrix6 adjointMap(
const Vector6 &xi);
160 static Vector6 adjoint(
const Vector6 &xi,
const Vector6 &y,
166 static Vector6 adjointTranspose(
const Vector6& xi,
const Vector6& y,
170 static Matrix6 ExpmapDerivative(
const Vector6& xi);
173 static Matrix6 LogmapDerivative(
const Pose3& xi);
190 static Matrix
wedge(
double wx,
double wy,
double wz,
double vx,
double vy,
192 return (Matrix(4, 4) << 0., -wz, wy, vx, wz, 0., -wx, vy, -wy, wx, 0., vz, 0., 0., 0., 0.).finished();
211 return transform_from(p);
250 Matrix4 matrix()
const;
295 return std::make_pair(3, 5);
304 return std::make_pair(0, 2);
309 friend std::ostream &operator<<(std::ostream &os,
const Pose3& p);
313 friend class boost::serialization::access;
314 template<
class Archive>
315 void serialize(Archive & ar,
const unsigned int ) {
316 ar & BOOST_SERIALIZATION_NVP(R_);
317 ar & BOOST_SERIALIZATION_NVP(t_);
333 return Pose3::wedge(xi(0), xi(1), xi(2), xi(3), xi(4), xi(5));
341 GTSAM_EXPORT boost::optional<Pose3> align(
const std::vector<Point3Pair>& baPointPairs);
344 typedef std::vector<Pose3> Pose3Vector;
356 template <
typename T>
static std::pair< size_t, size_t > rotationInterval()
Return the start and end indices (inclusive) of the rotation component of the exponential map paramet...
Definition: Pose3.h:303
Base class and basic functions for Lie types.
Represents a 3D point on a unit sphere.
Definition: Unit3.h:42
Definition: BearingRange.h:38
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition: Matrix.cpp:140
static Matrix wedge(double wx, double wy, double wz, double vx, double vy, double vz)
wedge for Pose3:
Definition: Pose3.h:190
double y() const
get y
Definition: Point3.h:111
Pose3()
Default constructor is origin.
Definition: Pose3.h:55
OptionalJacobian is an Eigen::Ref like class that can take be constructed using either a fixed size o...
Definition: OptionalJacobian.h:39
Definition: BearingRange.h:32
static Pose3 identity()
identity for group operation
Definition: Pose3.h:104
Point3 operator*(const Point3 &p) const
syntactic sugar for transform_from
Definition: Pose3.h:210
A CRTP helper class that implements Lie group methods Prerequisites: methods operator*, inverse, and AdjointMap, as well as a ChartAtOrigin struct that will be used to define the manifold Chart To use, simply derive, but also say "using LieGroup<Class,N>::inverse" For derivative math, see doc/math.pdf.
Definition: Lie.h:36
double z() const
get z
Definition: Pose3.h:245
Vector6 Adjoint(const Vector6 &xi_b) const
FIXME Not tested - marked as incorrect.
Definition: Pose3.h:136
Rot3 Rotation
Pose Concept requirements.
Definition: Pose3.h:41
double y() const
get y
Definition: Pose3.h:240
Template to create a binary predicate.
Definition: Testable.h:110
double x() const
get x
Definition: Pose3.h:235
Pose3(const Pose3 &pose)
Copy constructor.
Definition: Pose3.h:58
static std::pair< size_t, size_t > translationInterval()
Return the start and end indices (inclusive) of the translation component of the exponential map para...
Definition: Pose3.h:294
Pose3(const Rot3 &R, const Point3 &t)
Construct from R,t.
Definition: Pose3.h:63
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition: concepts.h:30
3D rotation represented as a rotation matrix or quaternion
Pose3 operator*(const Pose3 &T) const
compose syntactic sugar
Definition: Pose3.h:112
double z() const
get z
Definition: Point3.h:114
double x() const
get x
Definition: Point3.h:108
Definition: BearingRange.h:123
Definition: BearingRange.h:109
Pose3(const Matrix &T)
Constructor from 4*4 matrix.
Definition: Pose3.h:71
Matrix wedge< Pose3 >(const Vector &xi)
wedge for Pose3:
Definition: Pose3.h:332
Both LieGroupTraits and Testable.
Definition: Lie.h:237
Global functions in a separate testing namespace.
Definition: chartTesting.h:28