Skip to content

Commit 9f31957

Browse files
author
M. Fatih Cırıt
committed
check filter for varying last_x values to test the CI
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
1 parent cf0f58a commit 9f31957

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

control/vehicle_cmd_gate/test/src/test_filter_in_vehicle_cmd_gate_node.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ class PubSubNode : public rclcpp::Node
8080
[this](const AckermannControlCommand::ConstSharedPtr msg) {
8181
cmd_history_.push_back(msg);
8282
cmd_received_times_.push_back(now());
83+
// check filter for varying last_x values to test the CI
84+
checkFilter(2);
8385
checkFilter(3);
86+
checkFilter(4);
8487
});
8588

8689
rclcpp::QoS qos{1};
@@ -296,6 +299,7 @@ class PubSubNode : public rclcpp::Node
296299
constexpr auto threshold_scale = 1.1;
297300
if (std::abs(lon_vel) > 0.01) {
298301
// Assert over averaged values against limits
302+
PRINT_VALUES(last_x);
299303
ASSERT_LT_NEAR(std::abs(avg_lon_acc), max_lon_acc_lim, threshold_scale);
300304
ASSERT_LT_NEAR(std::abs(avg_lon_jerk), max_lon_jerk_lim, threshold_scale);
301305
ASSERT_LT_NEAR(std::abs(avg_lat_acc), max_lat_acc_lim, threshold_scale);

0 commit comments

Comments
 (0)