Classes | Macros | Functions
eigen_test_utils.h File Reference
#include <gtest/gtest.h>
#include <sstream>
#include <Eigen/Geometry>
Include dependency graph for eigen_test_utils.h:
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_)   EXPECT_PRED_FORMAT2((IsApprox<decltype(val1), decltype(val2)>(prec_)), val1, val2)
 

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 72 of file eigen_test_utils.h.

◆ EXPECT_EIGEN_NEAR

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

Definition at line 76 of file eigen_test_utils.h.

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 43 of file eigen_test_utils.h.

IsApprox
Definition: eigen_test_utils.h:51


moveit_core
Author(s): Ioan Sucan , Sachin Chitta , Acorn Pooley
autogenerated on Fri May 3 2024 02:28:41