Skip to content

Commit

Permalink
Fix API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Jun 5, 2024
1 parent c0153c2 commit 2376540
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions pid_controller/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

<test_depend>ament_cmake_gmock</test_depend>
<test_depend>controller_manager</test_depend>
<test_depend>hardware_interface_testing</test_depend>
<test_depend>ros2_control_test_assets</test_depend>

<export>
Expand Down
4 changes: 3 additions & 1 deletion pid_controller/test/test_pid_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ class PidControllerFixture : public ::testing::Test
protected:
void SetUpController(const std::string controller_name = "test_pid_controller")
{
ASSERT_EQ(controller_->init(controller_name, "", 0), controller_interface::return_type::OK);
ASSERT_EQ(
controller_->init(controller_name, "", rclcpp::NodeOptions()),
controller_interface::return_type::OK);

std::vector<hardware_interface::LoanedCommandInterface> command_ifs;
command_itfs_.reserve(dof_names_.size());
Expand Down

0 comments on commit 2376540

Please sign in to comment.