Skip to content

Commit

Permalink
add new API naming changes
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Aug 28, 2024
1 parent 23e1b9a commit c3e4ddf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions controller_interface/src/controller_interface_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@ const rclcpp_lifecycle::State & ControllerInterfaceBase::configure()
if (is_async_)
{
async_handler_ = std::make_unique<realtime_tools::AsyncFunctionHandler<return_type>>();
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();
Expand Down Expand Up @@ -123,7 +122,7 @@ std::pair<bool, return_type> ControllerInterfaceBase::trigger_update(
{
if (is_async())
{
return async_handler_->trigger_async_update(time, period);
return async_handler_->trigger_async_callback(time, period);
}
else
{
Expand Down Expand Up @@ -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

0 comments on commit c3e4ddf

Please sign in to comment.