Commit f7a67855 authored by jcarpent's avatar jcarpent
Browse files

[Spatial] Force evaluation of expressions

parent d3634144
...@@ -294,7 +294,7 @@ namespace se3 ...@@ -294,7 +294,7 @@ namespace se3
template<typename EigenDerived> template<typename EigenDerived>
typename EigenDerived::PlainObject actOnEigenObject(const Eigen::MatrixBase<EigenDerived> & p) const typename EigenDerived::PlainObject actOnEigenObject(const Eigen::MatrixBase<EigenDerived> & p) const
{ return EigenDerived::PlainObject(rot*p+trans); } { return (rot*p+trans).eval(); }
template<typename MapDerived> template<typename MapDerived>
Vector3 actOnEigenObject(const Eigen::MapBase<MapDerived> & p) const Vector3 actOnEigenObject(const Eigen::MapBase<MapDerived> & p) const
...@@ -302,7 +302,7 @@ namespace se3 ...@@ -302,7 +302,7 @@ namespace se3
template<typename EigenDerived> template<typename EigenDerived>
typename EigenDerived::PlainObject actInvOnEigenObject(const Eigen::MatrixBase<EigenDerived> & p) const typename EigenDerived::PlainObject actInvOnEigenObject(const Eigen::MatrixBase<EigenDerived> & p) const
{ return EigenDerived::PlainObject(rot.transpose()*(p-trans)); } { return (rot.transpose()*(p-trans)).eval(); }
template<typename MapDerived> template<typename MapDerived>
Vector3 actInvOnEigenObject(const Eigen::MapBase<MapDerived> & p) const Vector3 actInvOnEigenObject(const Eigen::MapBase<MapDerived> & p) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment