Skip to content
Snippets Groups Projects
Commit 8f66de29 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

eigen map to avoid useless copies

parent 731737d3
No related branches found
No related tags found
1 merge request!328WIP: Resolve "Remove wolf::Scalar and use double instead"
This commit is part of merge request !328. Comments created here will be created in the context of that merge request.
......@@ -34,8 +34,8 @@ inline bool FactorPose3D::operator ()(const T* const _p, const T* const _o, T* _
{
// states
Eigen::Matrix<T, 3, 1> p(_p);
Eigen::Quaternion<T> q(_o);
Eigen::Map<const Eigen::Matrix<T, 3, 1>> p(_p);
Eigen::Map<const Eigen::Quaternion<T>> q(_o);
// measurements
Eigen::Vector3d p_measured(getMeasurement().data() + 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment