From c3e4ddf0cd130060393b41ed70ea219beb544a42 Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Wed, 17 Jul 2024 16:33:08 +0200 Subject: [PATCH] add new API naming changes --- .../src/controller_interface_base.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/controller_interface/src/controller_interface_base.cpp b/controller_interface/src/controller_interface_base.cpp index a3fec674fe..b373edc98b 100644 --- a/controller_interface/src/controller_interface_base.cpp +++ b/controller_interface/src/controller_interface_base.cpp @@ -90,10 +90,9 @@ const rclcpp_lifecycle::State & ControllerInterfaceBase::configure() if (is_async_) { async_handler_ = std::make_unique>(); - async_handler_->init( - std::bind( - &ControllerInterfaceBase::update, this, std::placeholders::_1, std::placeholders::_2)); - async_handler_->start_async_update_thread(); + async_handler_->init(std::bind( + &ControllerInterfaceBase::update, this, std::placeholders::_1, std::placeholders::_2)); + async_handler_->start_thread(); } return get_node()->configure(); @@ -123,7 +122,7 @@ std::pair ControllerInterfaceBase::trigger_update( { if (is_async()) { - return async_handler_->trigger_async_update(time, period); + return async_handler_->trigger_async_callback(time, period); } else { @@ -159,7 +158,7 @@ void ControllerInterfaceBase::stop_async_update_cycle() { if (is_async() && async_handler_ && async_handler_->is_running()) { - async_handler_->stop_async_update(); + async_handler_->stop_thread(); } } } // namespace controller_interface