Skip to content
Snippets Groups Projects
Unverified Commit 4947e157 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #502 from jcarpent/devel

Fix bugs in exp6
parents ac2cba4a 0962b9a7
Branches
Tags
No related merge requests found
......@@ -255,7 +255,7 @@ namespace se3
typename SE3::Angular_t & rot = res.rotation();
const Scalar t = std::sqrt(t2);
if(t > Eigen::NumTraits<Scalar>::dummy_precision())
if(t > 1e-4)
{
Scalar ct,st; SINCOS(t,&st,&ct);
......@@ -278,7 +278,7 @@ namespace se3
{
const Scalar alpha_wxv = Scalar(1)/Scalar(2) - t2/24;
const Scalar alpha_v = Scalar(1) - t2/6;
const Scalar alpha_w = Scalar(1)/Scalar(6) - t2/120;
const Scalar alpha_w = (Scalar(1)/Scalar(6) - t2/120) * w.dot(v);
// Linear
trans.noalias() = (alpha_v*v + alpha_w*w + alpha_wxv*w.cross(v));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment