#include <gtest/gtest.h>
#include <geometry_msgs/msg/point.hpp>
#include <geometry_msgs/msg/vector3.hpp>
Go to the source code of this file.
|
#define | EXPECT_DECIMAL_EQ(DATA0, DATA1, TOLERANCE) EXPECT_TRUE(std::fabs(DATA0 - DATA1) <= std::fabs(TOLERANCE)); |
|
#define | EXPECT_POINT_EQ(DATA0, DATA1) |
|
#define | EXPECT_POINT_EQ_STREAM(DATA0, DATA1, STREAM_MESSAGE) |
|
#define | EXPECT_POINT_NEAR(DATA0, DATA1, EPS) |
|
#define | EXPECT_POINT_NEAR_STREAM(DATA0, DATA1, EPS, STREAM_MESSAGE) |
|
#define | EXPECT_VECTOR3_EQ(DATA0, DATA1) |
|
#define | EXPECT_VECTOR3_NEAR(DATA0, DATA1, EPS) |
|
#define | EXPECT_QUATERNION_EQ(DATA0, DATA1) |
|
#define | EXPECT_QUATERNION_EQ_STREAM(DATA0, DATA1, STREAM_MESSAGE) |
|
#define | EXPECT_QUATERNION_NEAR(DATA0, DATA1, EPS) |
|
#define | EXPECT_POSE_EQ(DATA0, DATA1) |
|
#define | EXPECT_POSE_NEAR(DATA0, DATA1, EPS) |
|
#define | EXPECT_LANELET_POSE_EQ(DATA0, DATA1) |
|
#define | EXPECT_LANELET_POSE_NEAR(DATA0, DATA1, EPS) |
|
#define | EXPECT_TWIST_EQ(DATA0, DATA1) |
|
#define | EXPECT_ACCEL_EQ(DATA0, DATA1) |
|
#define | EXPECT_ACTION_STATUS_EQ(DATA0, DATA1) |
|
#define | EXPECT_DETECTION_SENSOR_CONFIGURATION_EQ(DATA0, DATA1) |
|
#define | EXPECT_DYNAMIC_CONSTRAINTS_EQ(DATA0, DATA1) |
|
#define | EXPECT_LANE_CHANGE_ABSOLUTE_TARGET_EQ(DATA0, DATA1) |
|
#define | EXPECT_LANE_CHANGE_RELATIVE_TARGET_EQ(DATA0, DATA1) |
|
#define | EXPECT_LANE_CHANGE_CONSTRAINT_EQ(DATA0, DATA1) |
|
#define | EXPECT_LANE_CHANGE_PARAMETER_EQ(DATA0, DATA1) |
|
#define | EXPECT_COLOR_RGBA_EQ_STREAM(DATA0, DATA1, STREAM_MESSAGE) |
|
#define | EXPECT_COLOR_RGBA_NEAR_STREAM(DATA0, DATA1, EPS, STREAM_MESSAGE) |
|
◆ EXPECT_ACCEL_EQ
#define EXPECT_ACCEL_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value:
EXPECT_VECTOR3_EQ(DATA0.angular, DATA1.angular);
#define EXPECT_VECTOR3_EQ(DATA0, DATA1)
Definition: expect_eq_macros.hpp:46
◆ EXPECT_ACTION_STATUS_EQ
#define EXPECT_ACTION_STATUS_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value:
EXPECT_TWIST_EQ(DATA0.twist, DATA1.twist); \
EXPECT_STREQ(DATA0.current_action.c_str(), DATA1.current_action.c_str());
#define EXPECT_ACCEL_EQ(DATA0, DATA1)
Definition: expect_eq_macros.hpp:98
◆ EXPECT_COLOR_RGBA_EQ_STREAM
#define EXPECT_COLOR_RGBA_EQ_STREAM |
( |
|
DATA0, |
|
|
|
DATA1, |
|
|
|
STREAM_MESSAGE |
|
) |
| |
Value: EXPECT_DOUBLE_EQ(DATA0.r, DATA1.r) << STREAM_MESSAGE; \
EXPECT_DOUBLE_EQ(DATA0.g, DATA1.g) << STREAM_MESSAGE; \
EXPECT_DOUBLE_EQ(DATA0.b, DATA1.b) << STREAM_MESSAGE; \
EXPECT_DOUBLE_EQ(DATA0.a, DATA1.a) << STREAM_MESSAGE;
◆ EXPECT_COLOR_RGBA_NEAR_STREAM
#define EXPECT_COLOR_RGBA_NEAR_STREAM |
( |
|
DATA0, |
|
|
|
DATA1, |
|
|
|
EPS, |
|
|
|
STREAM_MESSAGE |
|
) |
| |
Value: EXPECT_NEAR(DATA0.r, DATA1.r,
EPS) << STREAM_MESSAGE; \
EXPECT_NEAR(DATA0.g, DATA1.g,
EPS) << STREAM_MESSAGE; \
EXPECT_NEAR(DATA0.b, DATA1.b,
EPS) << STREAM_MESSAGE; \
EXPECT_NEAR(DATA0.a, DATA1.a,
EPS) << STREAM_MESSAGE;
constexpr double EPS
Definition: test_catmull_rom_spline.cpp:24
◆ EXPECT_DECIMAL_EQ
#define EXPECT_DECIMAL_EQ |
( |
|
DATA0, |
|
|
|
DATA1, |
|
|
|
TOLERANCE |
|
) |
| EXPECT_TRUE(std::fabs(DATA0 - DATA1) <= std::fabs(TOLERANCE)); |
◆ EXPECT_DETECTION_SENSOR_CONFIGURATION_EQ
#define EXPECT_DETECTION_SENSOR_CONFIGURATION_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value: EXPECT_STREQ(DATA0.entity().c_str(), DATA1.entity().c_str()); \
EXPECT_STREQ(DATA0.architecture_type().c_str(), DATA1.architecture_type().c_str()); \
EXPECT_DOUBLE_EQ(DATA0.update_duration(), DATA1.update_duration());
◆ EXPECT_DYNAMIC_CONSTRAINTS_EQ
#define EXPECT_DYNAMIC_CONSTRAINTS_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value: EXPECT_EQ(DATA0.max_speed, DATA1.max_speed); \
EXPECT_EQ(DATA0.max_acceleration, DATA1.max_acceleration); \
EXPECT_EQ(DATA0.max_deceleration, DATA1.max_deceleration); \
EXPECT_EQ(DATA0.max_acceleration_rate, DATA1.max_acceleration_rate); \
EXPECT_EQ(DATA0.max_deceleration_rate, DATA1.max_deceleration_rate);
◆ EXPECT_LANE_CHANGE_ABSOLUTE_TARGET_EQ
#define EXPECT_LANE_CHANGE_ABSOLUTE_TARGET_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value: EXPECT_EQ(DATA0.lanelet_id, DATA1.lanelet_id); \
EXPECT_DOUBLE_EQ(DATA0.offset, DATA1.offset);
◆ EXPECT_LANE_CHANGE_CONSTRAINT_EQ
#define EXPECT_LANE_CHANGE_CONSTRAINT_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value: EXPECT_EQ(DATA0.type, DATA1.type); \
EXPECT_DOUBLE_EQ(DATA0.value, DATA1.value); \
EXPECT_EQ(DATA0.policy, DATA1.policy);
◆ EXPECT_LANE_CHANGE_PARAMETER_EQ
#define EXPECT_LANE_CHANGE_PARAMETER_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value:
EXPECT_EQ(DATA0.trajectory_shape, DATA1.trajectory_shape); \
EXPECT_LANE_CHANGE_CONSTRAINT_EQ(DATA0.constraint, DATA1.constraint);
#define EXPECT_LANE_CHANGE_ABSOLUTE_TARGET_EQ(DATA0, DATA1)
Definition: expect_eq_macros.hpp:119
◆ EXPECT_LANE_CHANGE_RELATIVE_TARGET_EQ
#define EXPECT_LANE_CHANGE_RELATIVE_TARGET_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value: EXPECT_EQ(DATA0.entity_name, DATA1.entity_name); \
EXPECT_EQ(DATA0.direction, DATA1.direction); \
EXPECT_EQ(DATA0.shift, DATA1.shift); \
EXPECT_DOUBLE_EQ(DATA0.offset, DATA1.offset);
◆ EXPECT_LANELET_POSE_EQ
#define EXPECT_LANELET_POSE_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value: EXPECT_EQ(DATA0.lanelet_id, DATA1.lanelet_id); \
EXPECT_DOUBLE_EQ(DATA0.s, DATA1.s); \
EXPECT_DOUBLE_EQ(DATA0.offset, DATA1.offset); \
EXPECT_VECTOR3_EQ(DATA0.rpy, DATA1.rpy);
◆ EXPECT_LANELET_POSE_NEAR
#define EXPECT_LANELET_POSE_NEAR |
( |
|
DATA0, |
|
|
|
DATA1, |
|
|
|
EPS |
|
) |
| |
Value: EXPECT_EQ(DATA0.lanelet_id, DATA1.lanelet_id); \
EXPECT_NEAR(DATA0.s, DATA1.s,
EPS); \
EXPECT_NEAR(DATA0.offset, DATA1.offset,
EPS); \
EXPECT_VECTOR3_NEAR(DATA0.rpy, DATA1.rpy,
EPS);
◆ EXPECT_POINT_EQ
#define EXPECT_POINT_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value: EXPECT_DOUBLE_EQ(DATA0.x, DATA1.x); \
EXPECT_DOUBLE_EQ(DATA0.y, DATA1.y); \
EXPECT_DOUBLE_EQ(DATA0.z, DATA1.z);
◆ EXPECT_POINT_EQ_STREAM
#define EXPECT_POINT_EQ_STREAM |
( |
|
DATA0, |
|
|
|
DATA1, |
|
|
|
STREAM_MESSAGE |
|
) |
| |
Value: EXPECT_DOUBLE_EQ(DATA0.x, DATA1.x) << STREAM_MESSAGE; \
EXPECT_DOUBLE_EQ(DATA0.y, DATA1.y) << STREAM_MESSAGE; \
EXPECT_DOUBLE_EQ(DATA0.z, DATA1.z) << STREAM_MESSAGE;
◆ EXPECT_POINT_NEAR
#define EXPECT_POINT_NEAR |
( |
|
DATA0, |
|
|
|
DATA1, |
|
|
|
EPS |
|
) |
| |
Value: EXPECT_NEAR(DATA0.x, DATA1.x,
EPS); \
EXPECT_NEAR(DATA0.y, DATA1.y,
EPS); \
EXPECT_NEAR(DATA0.z, DATA1.z,
EPS);
◆ EXPECT_POINT_NEAR_STREAM
#define EXPECT_POINT_NEAR_STREAM |
( |
|
DATA0, |
|
|
|
DATA1, |
|
|
|
EPS, |
|
|
|
STREAM_MESSAGE |
|
) |
| |
Value: EXPECT_NEAR(DATA0.x, DATA1.x,
EPS) << STREAM_MESSAGE; \
EXPECT_NEAR(DATA0.y, DATA1.y,
EPS) << STREAM_MESSAGE; \
EXPECT_NEAR(DATA0.z, DATA1.z,
EPS) << STREAM_MESSAGE;
◆ EXPECT_POSE_EQ
#define EXPECT_POSE_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value:
EXPECT_QUATERNION_EQ(DATA0.orientation, DATA1.orientation);
#define EXPECT_POINT_EQ(DATA0, DATA1)
Definition: expect_eq_macros.hpp:26
◆ EXPECT_POSE_NEAR
#define EXPECT_POSE_NEAR |
( |
|
DATA0, |
|
|
|
DATA1, |
|
|
|
EPS |
|
) |
| |
Value:
EXPECT_QUATERNION_NEAR(DATA0.orientation, DATA1.orientation,
EPS);
#define EXPECT_POINT_NEAR(DATA0, DATA1, EPS)
Definition: expect_eq_macros.hpp:36
◆ EXPECT_QUATERNION_EQ
#define EXPECT_QUATERNION_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value: EXPECT_DOUBLE_EQ(DATA0.x, DATA1.x); \
EXPECT_DOUBLE_EQ(DATA0.y, DATA1.y); \
EXPECT_DOUBLE_EQ(DATA0.z, DATA1.z); \
EXPECT_DOUBLE_EQ(DATA0.w, DATA1.w);
◆ EXPECT_QUATERNION_EQ_STREAM
#define EXPECT_QUATERNION_EQ_STREAM |
( |
|
DATA0, |
|
|
|
DATA1, |
|
|
|
STREAM_MESSAGE |
|
) |
| |
Value: EXPECT_DOUBLE_EQ(DATA0.x, DATA1.x) << STREAM_MESSAGE; \
EXPECT_DOUBLE_EQ(DATA0.y, DATA1.y) << STREAM_MESSAGE; \
EXPECT_DOUBLE_EQ(DATA0.z, DATA1.z) << STREAM_MESSAGE; \
EXPECT_DOUBLE_EQ(DATA0.w, DATA1.w) << STREAM_MESSAGE;
◆ EXPECT_QUATERNION_NEAR
#define EXPECT_QUATERNION_NEAR |
( |
|
DATA0, |
|
|
|
DATA1, |
|
|
|
EPS |
|
) |
| |
Value: EXPECT_NEAR(DATA0.x, DATA1.x,
EPS); \
EXPECT_NEAR(DATA0.y, DATA1.y,
EPS); \
EXPECT_NEAR(DATA0.z, DATA1.z,
EPS); \
EXPECT_NEAR(DATA0.w, DATA1.w,
EPS);
◆ EXPECT_TWIST_EQ
#define EXPECT_TWIST_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value:
EXPECT_VECTOR3_EQ(DATA0.angular, DATA1.angular);
◆ EXPECT_VECTOR3_EQ
#define EXPECT_VECTOR3_EQ |
( |
|
DATA0, |
|
|
|
DATA1 |
|
) |
| |
Value: EXPECT_DOUBLE_EQ(DATA0.x, DATA1.x); \
EXPECT_DOUBLE_EQ(DATA0.y, DATA1.y); \
EXPECT_DOUBLE_EQ(DATA0.z, DATA1.z);
◆ EXPECT_VECTOR3_NEAR
#define EXPECT_VECTOR3_NEAR |
( |
|
DATA0, |
|
|
|
DATA1, |
|
|
|
EPS |
|
) |
| |
Value: EXPECT_NEAR(DATA0.x, DATA1.x,
EPS); \
EXPECT_NEAR(DATA0.y, DATA1.y,
EPS); \
EXPECT_NEAR(DATA0.z, DATA1.z,
EPS);