Skip to content

Commit

Permalink
Fix: deprecation from realtime_tools
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar-sanjeeev committed Dec 21, 2024
1 parent 5c5a171 commit 84ea285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller_manager/src/ros2_control_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ int main(int argc, char ** argv)
}
const bool has_realtime = realtime_tools::has_realtime_kernel();
const bool lock_memory = cm->get_parameter_or<bool>("lock_memory", has_realtime);
std::string message;
if (lock_memory && !realtime_tools::lock_memory(message))
auto [success, message] = realtime_tools::lock_memory();
if (lock_memory && !success)
{
RCLCPP_WARN(cm->get_logger(), "Unable to lock the memory : '%s'", message.c_str());
}
Expand Down

0 comments on commit 84ea285

Please sign in to comment.