diff --git a/controller_interface/src/controller_interface_base.cpp b/controller_interface/src/controller_interface_base.cpp index 93f41f4f84..03d45fa384 100644 --- a/controller_interface/src/controller_interface_base.cpp +++ b/controller_interface/src/controller_interface_base.cpp @@ -126,7 +126,7 @@ const rclcpp_lifecycle::State & ControllerInterfaceBase::configure() if (is_async_) { const int thread_priority = - get_node()->get_parameter("thread_priority").as_int(); + static_cast(get_node()->get_parameter("thread_priority").as_int()); RCLCPP_INFO( get_node()->get_logger(), "Starting async handler with scheduler priority: %d", thread_priority);