File tree 2 files changed +3
-11
lines changed
localization/localization_util
2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ std_msgs::msg::ColorRGBA exchange_color_crc(double x)
28
28
color.b = 1.0 ;
29
29
color.g = static_cast <float >(std::sin (x * 2.0 * M_PI));
30
30
color.r = 0 ;
31
- } else if (x > 0.25 && x <= 0.5 ) {
31
+ } else if (x <= 0.5 ) {
32
32
color.b = static_cast <float >(std::sin (x * 2 * M_PI));
33
33
color.g = 1.0 ;
34
34
color.r = 0 ;
35
- } else if (x > 0.5 && x <= 0.75 ) {
35
+ } else if (x <= 0.75 ) {
36
36
color.b = 0 ;
37
37
color.g = 1.0 ;
38
38
color.r = static_cast <float >(-std::sin (x * 2.0 * M_PI));
Original file line number Diff line number Diff line change @@ -42,15 +42,7 @@ bool compare_pose(
42
42
pose_a.pose .pose .orientation .w == pose_b.pose .pose .orientation .w ;
43
43
}
44
44
45
- class TestSmartPoseBuffer : public ::testing::Test
46
- {
47
- protected:
48
- void SetUp () override {}
49
-
50
- void TearDown () override {}
51
- };
52
-
53
- TEST_F (TestSmartPoseBuffer, interpolate_pose) // NOLINT
45
+ TEST (TestSmartPoseBuffer, interpolate_pose) // NOLINT
54
46
{
55
47
rclcpp::Logger logger = rclcpp::get_logger (" test_logger" );
56
48
const double pose_timeout_sec = 10.0 ;
You can’t perform that action at this time.
0 commit comments