Drake
lane_data_test.cc File Reference
Include dependency graph for lane_data_test.cc:

Namespaces

 drake
 
 drake::maliput
 
 drake::maliput::api
 

Macros

#define CHECK_ALL_LANE_POSITION_ACCESSORS(dut, _s, _r, _h)
 
#define CHECK_ALL_GEO_POSITION_ACCESSORS(dut, _x, _y, _z)
 
#define CHECK_ALL_ROTATION_ACCESSORS(dut, _w, _x, _y, _z, _ro, _pi, _ya, _ma)
 

Macro Definition Documentation

#define CHECK_ALL_GEO_POSITION_ACCESSORS (   dut,
  _x,
  _y,
  _z 
)
Value:
do { \
EXPECT_EQ(dut.x(), _x); \
EXPECT_EQ(dut.y(), _y); \
EXPECT_EQ(dut.z(), _z); \
EXPECT_TRUE(CompareMatrices(dut.xyz(), Vector3<double>(_x, _y, _z))); \
} while (0)
::testing::AssertionResult CompareMatrices(const Eigen::MatrixBase< DerivedA > &m1, const Eigen::MatrixBase< DerivedB > &m2, double tolerance=0.0, MatrixCompareType compare_type=MatrixCompareType::absolute)
Compares two matrices to determine whether they are equal to within a certain threshold.
Definition: eigen_matrix_compare.h:32
#define CHECK_ALL_LANE_POSITION_ACCESSORS (   dut,
  _s,
  _r,
  _h 
)
Value:
do { \
EXPECT_EQ(dut.s(), _s); \
EXPECT_EQ(dut.r(), _r); \
EXPECT_EQ(dut.h(), _h); \
EXPECT_TRUE(CompareMatrices(dut.srh(), Vector3<double>(_s, _r, _h))); \
} while (0)
::testing::AssertionResult CompareMatrices(const Eigen::MatrixBase< DerivedA > &m1, const Eigen::MatrixBase< DerivedB > &m2, double tolerance=0.0, MatrixCompareType compare_type=MatrixCompareType::absolute)
Compares two matrices to determine whether they are equal to within a certain threshold.
Definition: eigen_matrix_compare.h:32
#define CHECK_ALL_ROTATION_ACCESSORS (   dut,
  _w,
  _x,
  _y,
  _z,
  _ro,
  _pi,
  _ya,
  _ma 
)
Value:
do { \
EXPECT_TRUE(CompareMatrices(dut.quat().coeffs(), \
Vector4<double>(_x, _y, _z, _w), \
kRotationTolerance)); \
EXPECT_TRUE(CompareMatrices(dut.rpy(), \
Vector3<double>(_ro, _pi, _ya), \
kRotationTolerance)); \
EXPECT_NEAR(dut.roll(), _ro, kRotationTolerance); \
EXPECT_NEAR(dut.pitch(), _pi, kRotationTolerance); \
EXPECT_NEAR(dut.yaw(), _ya, kRotationTolerance); \
EXPECT_TRUE(CompareMatrices(dut.matrix(), _ma, \
kRotationTolerance)); \
} while (0)
::testing::AssertionResult CompareMatrices(const Eigen::MatrixBase< DerivedA > &m1, const Eigen::MatrixBase< DerivedB > &m2, double tolerance=0.0, MatrixCompareType compare_type=MatrixCompareType::absolute)
Compares two matrices to determine whether they are equal to within a certain threshold.
Definition: eigen_matrix_compare.h:32

Variable Documentation

Quaternion<double> nonnormalized_twist_quat_
protected
Matrix3<double> twist_matrix_
protected
double twist_pitch_
protected
Quaternion<double> twist_quat_
protected
double twist_roll_
protected
double twist_yaw_
protected