Skip to content
Snippets Groups Projects
Verified Commit 7c3b0cfd authored by Justin Carpentier's avatar Justin Carpentier
Browse files

spatial: fix comparison

parent 9c0ff510
No related branches found
No related tags found
No related merge requests found
//
// Copyright (c) 2018-2019 CNRS INRIA
// Copyright (c) 2018-2020 CNRS INRIA
//
#ifndef __pinocchio_fwd_hpp__
......@@ -14,6 +14,7 @@ namespace pinocchio {}
#include "pinocchio/config.hpp"
#include "pinocchio/utils/helpers.hpp"
#include "pinocchio/utils/cast.hpp"
#include "pinocchio/container/boost-container-limits.hpp"
......
......@@ -289,7 +289,7 @@ namespace pinocchio
// During the cast, it may appear that the matrix is not normalized correctly.
// Force the normalization of the rotation part of the matrix.
if(static_cast<NewScalar>(Eigen::NumTraits<Scalar>::epsilon()) > Eigen::NumTraits<NewScalar>::epsilon())
if(pinocchio::cast<NewScalar>(Eigen::NumTraits<Scalar>::epsilon()) > Eigen::NumTraits<NewScalar>::epsilon())
res.normalize();
return res;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment