Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Apr 26, 2024
1 parent df173d8 commit bd24d4c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions diff_drive_controller/test/test_diff_drive_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ TEST_F(TestDiffDriveController, configure_succeeds_when_wheels_are_specified)

TEST_F(TestDiffDriveController, TfPrefixNamespaceParams)
{
std::string odom_id = "odom";
std::string base_link_id = "base_link";
const std::vector<PrefixTestCase> test_cases = {
{"", "", ""},
{"/", "", ""},
Expand All @@ -270,18 +272,15 @@ TEST_F(TestDiffDriveController, TfPrefixNamespaceParams)

for (const auto & test_case : test_cases)
{
std::string odom_id = "odom";
std::string base_link_id = "base_link";

std::vector<rclcpp::Parameter> params =
{
rclcpp::Parameter("tf_frame_prefix", test_case.tf_prefix),
rclcpp::Parameter("odom_frame_id", odom_id),
rclcpp::Parameter("base_frame_id", base_link_id),
}
rclcpp::Parameter("tf_frame_prefix", rclcpp::ParameterValue(test_case.tf_prefix)),
rclcpp::Parameter("odom_frame_id", rclcpp::ParameterValue(odom_id)),
rclcpp::Parameter("base_frame_id", rclcpp::ParameterValue(base_link_id)),
};

ASSERT_EQ(
InitController(parameters = params, ns = test_case.ns),
InitController(left_wheel_names, right_wheel_names, params, test_case.ns),
controller_interface::return_type::OK);

ASSERT_EQ(controller_->on_configure(rclcpp_lifecycle::State()), CallbackReturn::SUCCESS);
Expand Down

0 comments on commit bd24d4c

Please sign in to comment.