moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
eigen_test_utils.hpp File Reference
#include <gtest/gtest.h>
#include <sstream>
#include <Eigen/Geometry>
Include dependency graph for eigen_test_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  IsApprox< T1, T2 >

Macros

#define EXPECT_EIGEN_EQ(val1, val2)
#define EXPECT_EIGEN_NEAR(val1, val2, prec_)

Functions

template<typename _Scalar, int _Dim, int _Mode, int _Options>
std::ostream & operator<< (std::ostream &s, const Eigen::Transform< _Scalar, _Dim, _Mode, _Options > &t)

Macro Definition Documentation

◆ EXPECT_EIGEN_EQ

#define EXPECT_EIGEN_EQ ( val1,
val2 )
Value:
EXPECT_PRED_FORMAT2((IsApprox<decltype(val1), decltype(val2)>( \
Eigen::NumTraits<typename std::decay<decltype(val1)>::type::Scalar>::dummy_precision())), \
val1, val2)

Definition at line 74 of file eigen_test_utils.hpp.

◆ EXPECT_EIGEN_NEAR

#define EXPECT_EIGEN_NEAR ( val1,
val2,
prec_ )
Value:
EXPECT_PRED_FORMAT2((IsApprox<decltype(val1), decltype(val2)>(prec_)), val1, val2)

Definition at line 78 of file eigen_test_utils.hpp.

Function Documentation

◆ operator<<()

template<typename _Scalar, int _Dim, int _Mode, int _Options>
std::ostream & operator<< ( std::ostream & s,
const Eigen::Transform< _Scalar, _Dim, _Mode, _Options > & t )

Provide operator<< for Eigen::Transform

Definition at line 45 of file eigen_test_utils.hpp.