Skip to content

Commit

Permalink
Add log when failed
Browse files Browse the repository at this point in the history
Signed-off-by: mini-1235 <[email protected]>
  • Loading branch information
mini-1235 committed Jan 29, 2025
1 parent 8a08da5 commit c97b8e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nav2_rviz_plugins/src/selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void
Selector::loadPlugins()
{
load_plugins_thread_ = std::thread([this]() {
rclcpp::Rate rate(0.1);
rclcpp::Rate rate(0.2);
while (rclcpp::ok() && !plugins_loaded_) {
RCLCPP_INFO(client_node_->get_logger(), "Trying to load plugins...");
nav2_rviz_plugins::pluginLoader(
Expand All @@ -172,6 +172,8 @@ Selector::loadPlugins()
progress_checker_->count() > 0)
{
plugins_loaded_ = true;
} else {
RCLCPP_INFO(client_node_->get_logger(), "Failed to load plugins. Retrying...");
}
rate.sleep();
}
Expand Down

0 comments on commit c97b8e0

Please sign in to comment.