Skip to content

Commit

Permalink
fix(autoware_behavior_path_external_request_lane_change_module): fix …
Browse files Browse the repository at this point in the history
…clang-tidy issues

Signed-off-by: Esteve Fernandez <[email protected]>
  • Loading branch information
esteve committed Apr 10, 2024
1 parent 78124a8 commit 2bce890
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
using ::behavior_path_planner::BehaviorPathPlannerNode;
using planning_test_utils::PlanningInterfaceTestManager;

std::shared_ptr<PlanningInterfaceTestManager> generateTestManager()
std::shared_ptr<PlanningInterfaceTestManager> generate_test_manager()
{
auto test_manager = std::make_shared<PlanningInterfaceTestManager>();

Expand All @@ -40,7 +40,7 @@ std::shared_ptr<PlanningInterfaceTestManager> generateTestManager()
return test_manager;
}

std::shared_ptr<BehaviorPathPlannerNode> generateNode()
std::shared_ptr<BehaviorPathPlannerNode> generate_node()
{
auto node_options = rclcpp::NodeOptions{};
const auto planning_test_utils_dir =
Expand Down Expand Up @@ -74,9 +74,9 @@ std::shared_ptr<BehaviorPathPlannerNode> generateNode()
return std::make_shared<BehaviorPathPlannerNode>(node_options);
}

void publishMandatoryTopics(
std::shared_ptr<PlanningInterfaceTestManager> test_manager,
std::shared_ptr<BehaviorPathPlannerNode> test_target_node)
void publish_mandatory_topics(
const std::shared_ptr<PlanningInterfaceTestManager>& test_manager,
const std::shared_ptr<BehaviorPathPlannerNode>& test_target_node)
{
// publish necessary topics from test_manager
test_manager->publishInitialPose(test_target_node, "behavior_path_planner/input/odometry");
Expand All @@ -96,10 +96,10 @@ void publishMandatoryTopics(
TEST(PlanningModuleInterfaceTest, NodeTestWithExceptionRoute)
{
rclcpp::init(0, nullptr);
auto test_manager = generateTestManager();
auto test_target_node = generateNode();
auto test_manager = generate_test_manager();
auto test_target_node = generate_node();

publishMandatoryTopics(test_manager, test_target_node);
publish_mandatory_topics(test_manager, test_target_node);

// test for normal trajectory
ASSERT_NO_THROW_WITH_ERROR_MSG(test_manager->testWithBehaviorNominalRoute(test_target_node));
Expand All @@ -114,9 +114,9 @@ TEST(PlanningModuleInterfaceTest, NodeTestWithOffTrackEgoPose)
{
rclcpp::init(0, nullptr);

auto test_manager = generateTestManager();
auto test_target_node = generateNode();
publishMandatoryTopics(test_manager, test_target_node);
auto test_manager = generate_test_manager();
auto test_target_node = generate_node();
publish_mandatory_topics(test_manager, test_target_node);

// test for normal trajectory
ASSERT_NO_THROW_WITH_ERROR_MSG(test_manager->testWithBehaviorNominalRoute(test_target_node));
Expand Down

0 comments on commit 2bce890

Please sign in to comment.