Skip to content

Commit

Permalink
fix test bug
Browse files Browse the repository at this point in the history
Signed-off-by: xtk8532704 <1041084556@qq.com>
  • Loading branch information
xtk8532704 committed Jan 22, 2025
1 parent 87ed95a commit cb6aa2a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ class EvalTest : public ::testing::Test
rclcpp::init(0, nullptr);

rclcpp::NodeOptions options;
const auto share_dir =
ament_index_cpp::get_package_share_directory("autoware_control_evaluator");
options.arguments({"--ros-args", "-p", "output_metrics:=false"});
const auto autoware_test_utils_dir =
ament_index_cpp::get_package_share_directory("autoware_test_utils");
options.arguments(
{"--ros-args", "-p", "output_metrics:=false", "--params-file",
autoware_test_utils_dir + "/config/test_vehicle_info.param.yaml"});

dummy_node = std::make_shared<rclcpp::Node>("control_evaluator_test_node");
dummy_node = std::make_shared<rclcpp::Node>("control_evaluator_test_node", options);
eval_node = std::make_shared<EvalNode>(options);
// Enable all logging in the node
auto ret = rcutils_logging_set_logger_level(
Expand Down

0 comments on commit cb6aa2a

Please sign in to comment.