Skip to content

Commit

Permalink
fix(lidar_centerpoint): fix constexpr related bugs (#7686)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc authored Jun 25, 2024
1 parent 63e0399 commit d20d901
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions perception/lidar_centerpoint/test/test_postprocess_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ TEST_F(PostprocessKernelTest, SingleDetectionTest)
constexpr float detection_x = 70.f;
constexpr float detection_y = -38.4f;
constexpr float detection_z = 1.0;
constexpr float detection_log_w = std::log(7.0);
constexpr float detection_log_l = std::log(1.0);
constexpr float detection_log_h = std::log(2.0);
const float detection_log_w = std::log(7.0);
const float detection_log_l = std::log(1.0);
const float detection_log_h = std::log(2.0);
constexpr float detection_yaw = M_PI_4;
constexpr float detection_yaw_sin = std::sin(detection_yaw);
constexpr float detection_yaw_cos = std::sin(detection_yaw);
const float detection_yaw_sin = std::sin(detection_yaw);
const float detection_yaw_cos = std::sin(detection_yaw);
constexpr float detection_vel_x = 5.0;
constexpr float detection_vel_y = -5.0;

Expand Down Expand Up @@ -240,9 +240,9 @@ TEST_F(PostprocessKernelTest, CircleNMSTest)
constexpr float detection_x = 70.f;
constexpr float detection_y = -38.4f;
constexpr float detection_z = 1.0;
constexpr float detection_log_w = std::log(7.0);
constexpr float detection_log_l = std::log(1.0);
constexpr float detection_log_h = std::log(2.0);
const float detection_log_w = std::log(7.0);
const float detection_log_l = std::log(1.0);
const float detection_log_h = std::log(2.0);
constexpr float detection_yaw1_sin = 0.0;
constexpr float detection_yaw1_cos = 1.0;
constexpr float detection_yaw2_sin = 1.0;
Expand Down

0 comments on commit d20d901

Please sign in to comment.