15 namespace mrpt {
namespace srba {
35 posEuclidean.
x = posParams[0];
36 posEuclidean.
y = posParams[1];
37 posEuclidean.
z = posParams[2];
43 template <
class POSE,
class VECTOR>
45 pose.composePoint(pt[0],pt[1],pt[2], pt[0],pt[1],pt[2]);
51 template <
class POSE,
class VECTOR>
53 pose.inverseComposePoint(lm_global[0],lm_global[1],lm_global[2], lm_local[0],lm_local[1],lm_local[2]);
68 posEuclidean.
x = posParams[0];
69 posEuclidean.
y = posParams[1];
76 template <
class POSE,
class VECTOR>
79 pose.composePoint(pt[0],pt[1],0, lx,ly,lz);
81 ASSERTMSG_(
std::abs(lz)<1e-2,
"Error: Using a 3D transformation to obtain a 2D point but it results in |z|>eps")
87 template <
class POSE,
class VECTOR>
89 pose.inverseComposePoint(lm_global[0],lm_global[1], lm_local[0],lm_local[1]);
104 template <
class POSE,
class VECTOR>
114 template <
class POSE,
class VECTOR>
134 template <
class POSE,
class VECTOR>
144 template <
class POSE,
class VECTOR>
A parameterization of SE(3) relative poses ("fake landmarks" to emulate graph-SLAM) ...
A parameterization of SE(2) relative poses ("fake landmarks" to emulate graph-SLAM) ...
static const landmark_jacob_family_t jacob_family
Specify the kind of Jacobian to be used for compute_jacobian_dAepsDx_deps<>
static void composePosePoint(VECTOR &pt, const POSE &pose)
Evaluates pt = pose (+) pt.
static void inverseComposePosePoint(const VECTOR &lm_global, VECTOR &lm_local, const POSE &pose)
Evaluates lm_local = lm_global (-) pose.
static const size_t LM_DIMS
The number of parameters in each LM parameterization relative to its base KF: (x,y,z)
static const size_t LM_DIMS
The number of parameters in each LM parameterization relative to its base KF.
static void relativeEuclideanLocation(const VECTOR &posParams, mrpt::math::TPoint3D &posEuclidean)
Converts the landmark parameterization into 3D Eucliden coordinates (used for OpenGL rendering...
double z
X,Y,Z coordinates.
static void relativeEuclideanLocation(const VECTOR &posParams, mrpt::math::TPoint3D &posEuclidean)
Converts the landmark parameterization into 3D Eucliden coordinates (used for OpenGL rendering...
#define MRPT_UNUSED_PARAM(a)
Can be used to avoid "not used parameters" warnings from the compiler.
static void composePosePoint(VECTOR &pt, const POSE &pose)
Evaluates pt = pose (+) pt.
mrpt::srba::landmark_rendering_as_pose_constraints render_mode_t
mrpt::srba::landmark_rendering_as_pose_constraints render_mode_t
mrpt::srba::landmark_rendering_as_point render_mode_t
Render "fake graph-slam-like landmarks" as keyframe-to-keyframe constraints.
static void inverseComposePosePoint(const VECTOR &lm_global, VECTOR &lm_local, const POSE &pose)
Evaluates lm_local = lm_global (-) pose.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
static const size_t LM_DIMS
The number of parameters in each LM parameterization relative to its base KF.
static void composePosePoint(VECTOR &pt, const POSE &pose)
Evaluates pt = pose (+) pt.
static const landmark_jacob_family_t jacob_family
Specify the kind of Jacobian to be used for compute_jacobian_dAepsDx_deps<>
static const landmark_jacob_family_t jacob_family
Specify the kind of Jacobian to be used for compute_jacobian_dAepsDx_deps<>
A parameterization of landmark positions in Euclidean coordinates (2D)
A parameterization of landmark positions in Euclidean coordinates (3D)
static void composePosePoint(VECTOR &pt, const POSE &pose)
Evaluates pt = pose (+) pt.
Render 2D/3D point landmarks.
static void inverseComposePosePoint(const VECTOR &lm_global, VECTOR &lm_local, const POSE &pose)
Evaluates lm_local = lm_global (-) pose.
"fake landmarks" used for relative pose observations
static const landmark_jacob_family_t jacob_family
Specify the kind of Jacobian to be used for compute_jacobian_dAepsDx_deps<>
static const size_t LM_DIMS
The number of parameters in each LM parameterization relative to its base KF: (x,y) ...
landmark_jacob_family_t
Specify the kind of Jacobian to be used for compute_jacobian_dAepsDx_deps<>
mrpt::srba::landmark_rendering_as_point render_mode_t
#define ASSERTMSG_(f, __ERROR_MSG)
static void inverseComposePosePoint(const VECTOR &lm_global, VECTOR &lm_local, const POSE &pose)
Evaluates lm_local = lm_global (-) pose.