Skip to content

Commit

Permalink
forgot to run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Nachtigall committed Apr 19, 2024
1 parent a6a4d5d commit baa48e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,20 @@ TestControllerFailedActivate::on_configure(const rclcpp_lifecycle::State & /*pre
return rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn::SUCCESS;
}


rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
TestControllerFailedActivate::on_activate(const rclcpp_lifecycle::State & /*previous_state&*/)
{
//Simply simulate a controller that can not be activated
// Simply simulate a controller that can not be activated
return rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn::FAILURE;
}


rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
TestControllerFailedActivate::on_cleanup(const rclcpp_lifecycle::State & /*previous_state*/)
{
return rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn::SUCCESS;
}

} // namespace test_controller_with_interfaces
} // namespace test_controller_failed_activate

#include "pluginlib/class_list_macros.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,11 @@ class TestControllerFailedActivate : public controller_interface::ControllerInte
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_activate(
const rclcpp_lifecycle::State & previous_state) override;


CONTROLLER_MANAGER_PUBLIC
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_cleanup(
const rclcpp_lifecycle::State & previous_state) override;
};

} // namespace test_controller_with_interfaces
} // namespace test_controller_failed_activate

#endif // TEST_CONTROLLER_WITH_INTERFACES__TEST_CONTROLLER_WITH_INTERFACES_HPP_

0 comments on commit baa48e8

Please sign in to comment.