Skip to content

Commit e203c3e

Browse files
committedFeb 28, 2024·
fix: ci check
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
1 parent 6093266 commit e203c3e

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed
 

‎evaluator/perception_online_evaluator/include/perception_online_evaluator/perception_online_evaluator_node.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class PerceptionOnlineEvaluatorNode : public rclcpp::Node
5050
{
5151
public:
5252
explicit PerceptionOnlineEvaluatorNode(const rclcpp::NodeOptions & node_options);
53-
~PerceptionOnlineEvaluatorNode(){};
53+
~PerceptionOnlineEvaluatorNode() {}
5454

5555
/**
5656
* @brief callback on receiving a dynamic objects array

‎evaluator/perception_online_evaluator/test/test_perception_online_evaluator_node.cpp

+11-10
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "ament_index_cpp/get_package_share_directory.hpp"
16-
#include "gtest/gtest.h"
1715
#include "rclcpp/rclcpp.hpp"
1816
#include "rclcpp/time.hpp"
1917

@@ -61,7 +59,7 @@ class EvalTest : public ::testing::Test
6159
{"--ros-args", "--params-file",
6260
share_dir + "/param/perception_online_evaluator.defaults.yaml"});
6361
options.append_parameter_override("prediction_time_horizons", std::vector<double>{5.0});
64-
options.append_parameter_override("smoothing_window_size", int(11));
62+
options.append_parameter_override("smoothing_window_size", 11);
6563

6664
dummy_node = std::make_shared<rclcpp::Node>("perception_online_evaluator_test", options);
6765
eval_node = std::make_shared<EvalNode>(options);
@@ -418,15 +416,15 @@ TEST_F(EvalTest, testYawDeviation_oscillation_rotate)
418416
if (time == time_delay_) {
419417
objects = rotateObjects(makeDeviatedStraightPredictedObjects(time, 0), yaw);
420418
} else {
421-
objects =
422-
rotateObjects(makeDeviatedStraightPredictedObjects(time, deviation * sign), 2 * M_PI * std::rand());
419+
objects = rotateObjects(
420+
makeDeviatedStraightPredictedObjects(time, deviation * sign), 2 * M_PI * std::rand());
423421
sign *= -1.0;
424422
}
425423
publishObjects(objects);
426424
}
427425

428-
const auto last_objects =
429-
rotateObjects(makeDeviatedStraightPredictedObjects(time_delay_ * 2, deviation), 2 * M_PI * std::rand());
426+
const auto last_objects = rotateObjects(
427+
makeDeviatedStraightPredictedObjects(time_delay_ * 2, deviation), 2 * M_PI * std::rand());
430428
EXPECT_NEAR(publishObjectsAndGetMetric(last_objects), yaw, epsilon);
431429
}
432430

@@ -442,14 +440,17 @@ TEST_F(EvalTest, testYawDeviation_distortion_rotate)
442440
if (time == time_delay_) {
443441
objects = rotateObjects(makeDeviatedStraightPredictedObjects(time, deviation), yaw);
444442
} else if (time == time_delay_ + time_step_) {
445-
objects = rotateObjects(makeDeviatedStraightPredictedObjects(time, -deviation), 2 * M_PI * std::rand());
443+
objects = rotateObjects(
444+
makeDeviatedStraightPredictedObjects(time, -deviation), 2 * M_PI * std::rand());
446445
} else {
447-
objects = rotateObjects(makeDeviatedStraightPredictedObjects(time, 0), 2 * M_PI * std::rand());
446+
objects =
447+
rotateObjects(makeDeviatedStraightPredictedObjects(time, 0), 2 * M_PI * std::rand());
448448
}
449449
publishObjects(objects);
450450
}
451451

452-
const auto last_objects = rotateObjects(makeDeviatedStraightPredictedObjects(time_delay_ * 2, deviation), 2 * M_PI * std::rand());
452+
const auto last_objects = rotateObjects(
453+
makeDeviatedStraightPredictedObjects(time_delay_ * 2, deviation), 2 * M_PI * std::rand());
453454
EXPECT_NEAR(publishObjectsAndGetMetric(last_objects), yaw, epsilon);
454455
}
455456

‎launch/tier4_perception_launch/launch/perception.launch.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,6 @@
250250

251251
<!-- perception evaluator -->
252252
<group>
253-
<include file="$(find-pkg-share perception_online_evaluator)/launch/perception_online_sevaluator.launch.xml"/>
253+
<include file="$(find-pkg-share perception_online_evaluator)/launch/perception_online_evaluator.launch.xml"/>
254254
</group>
255255
</launch>

0 commit comments

Comments
 (0)
Please sign in to comment.