@@ -82,7 +82,7 @@ struct ControllerPeerInfo
8282 // interfaces, add it as individual group
8383 predecessor_group.insert (p->name );
8484 mutually_exclusive_predecessor_groups.push_back (predecessor_group);
85- RCLCPP_INFO (
85+ RCLCPP_DEBUG (
8686 rclcpp::get_logger (" controller_manager" ),
8787 " Adding predecessor: '%s' as individual group, as all its command interfaces are in "
8888 " the current controller's reference interfaces." ,
@@ -165,7 +165,7 @@ struct ControllerPeerInfo
165165 }
166166 };
167167
168- RCLCPP_INFO (
168+ RCLCPP_DEBUG (
169169 rclcpp::get_logger (" controller_manager" ),
170170 " Generating combinations of predecessors for controller: %s (%s)" ,
171171 predecessor->name .c_str (), name.c_str ());
@@ -174,10 +174,10 @@ struct ControllerPeerInfo
174174 for (const auto & combination : combinations)
175175 {
176176 std::unordered_set<std::string> group (combination.begin (), combination.end ());
177- RCLCPP_INFO (
177+ RCLCPP_DEBUG (
178178 rclcpp::get_logger (" controller_manager" ),
179179 fmt::format (
180- " Adding predecessor group: {} with size: {}" , fmt::join (combination, " , " ),
180+ " Adding predecessor group: [{}] with size: {}" , fmt::join (combination, " , " ),
181181 combination.size ())
182182 .c_str ());
183183 if (!group.empty ())
@@ -220,7 +220,7 @@ struct ControllerPeerInfo
220220 // interfaces, add it as individual group
221221 successor_group.insert (s->name );
222222 mutually_exclusive_successor_groups.push_back (successor_group);
223- RCLCPP_INFO (
223+ RCLCPP_DEBUG (
224224 rclcpp::get_logger (" controller_manager" ),
225225 " Adding successor: '%s' as individual group, as all its command interfaces are in the "
226226 " current controller's reference interfaces." ,
@@ -294,26 +294,26 @@ struct ControllerPeerInfo
294294 current_combination.pop_back ();
295295 }
296296 };
297- RCLCPP_INFO (
297+ RCLCPP_DEBUG (
298298 rclcpp::get_logger (" controller_manager" ),
299299 " Generating combinations of successors for controller: %s" , name.c_str ());
300300 generate_combinations (0 );
301301 // Add the combinations to the mutually exclusive successor groups
302302 for (const auto & combination : combinations)
303303 {
304304 std::unordered_set<std::string> group (combination.begin (), combination.end ());
305- RCLCPP_INFO (
305+ RCLCPP_DEBUG (
306306 rclcpp::get_logger (" controller_manager" ),
307307 fmt::format (
308- " Adding successor group: {} with size: {}" , fmt::join (combination, " , " ),
308+ " Adding successor group: [{}] with size: {}" , fmt::join (combination, " , " ),
309309 combination.size ())
310310 .c_str ());
311311 if (!group.empty ())
312312 {
313313 mutually_exclusive_successor_groups.push_back (group);
314314 }
315315 }
316- RCLCPP_INFO (
316+ RCLCPP_DEBUG (
317317 rclcpp::get_logger (" controller_manager" ),
318318 " Mutually exclusive successor groups for controller: '%s' are: %zu" , name.c_str (),
319319 mutually_exclusive_successor_groups.size ());
@@ -334,7 +334,7 @@ struct ControllerPeerInfo
334334 {
335335 if (ros2_control::has_item (controllers_to_activate, predecessor->name ))
336336 {
337- RCLCPP_INFO (
337+ RCLCPP_DEBUG (
338338 rclcpp::get_logger (" controller_manager" ),
339339 " The predecessor: '%s' is already in the active list." , predecessor->name .c_str ());
340340 ros2_control::add_item (predecessor_in_active_list, predecessor->name );
@@ -354,19 +354,19 @@ struct ControllerPeerInfo
354354 }
355355 });
356356
357- RCLCPP_INFO (
357+ RCLCPP_DEBUG (
358358 rclcpp::get_logger (" controller_manager" ),
359359 " The predecessor command interfaces of the predecessor: '%s' are: %zu" , name.c_str (),
360360 predecessor_command_interfaces_set.size ());
361- RCLCPP_INFO (
361+ RCLCPP_DEBUG (
362362 rclcpp::get_logger (" controller_manager" ),
363363 " The reference interfaces of the controller: '%s' are: %zu" , name.c_str (),
364364 reference_interfaces.size ());
365365 if (
366366 !predecessor_in_active_list.empty () &&
367367 (predecessor_command_interfaces_set.size () != reference_interfaces.size ()))
368368 {
369- RCLCPP_INFO (
369+ RCLCPP_DEBUG (
370370 rclcpp::get_logger (" controller_manager" ),
371371 " The predecessor command interfaces of the predecessor: '%s' are not equal to the "
372372 " reference interfaces of the controller: '%s' : %zu != %zu" ,
@@ -405,21 +405,21 @@ struct ControllerPeerInfo
405405 // check if all the successors reference interfaces are in the current controller's command
406406 // interfaces If they are, add them to the list of controllers to activate
407407
408- RCLCPP_INFO (
408+ RCLCPP_DEBUG (
409409 rclcpp::get_logger (" controller_manager" ),
410410 " The command interfaces of the predecessor: '%s' are: %zu" , name.c_str (),
411411 command_interfaces_set.size ());
412412 for (const auto & command_itf : command_interfaces_set)
413413 {
414- RCLCPP_INFO (
414+ RCLCPP_DEBUG (
415415 rclcpp::get_logger (" controller_manager" ),
416416 " The command interfaces of the predecessor: '%s' are: %s" , name.c_str (),
417417 command_itf.c_str ());
418418 }
419419
420420 for (const auto & reference_itf : successor->reference_interfaces )
421421 {
422- RCLCPP_INFO (
422+ RCLCPP_DEBUG (
423423 rclcpp::get_logger (" controller_manager" ),
424424 " The reference interfaces of the successor: '%s' are: %s" , successor->name .c_str (),
425425 reference_itf.c_str ());
@@ -437,7 +437,7 @@ struct ControllerPeerInfo
437437 all_successor_interfaces_match = true ;
438438 }
439439 });
440- RCLCPP_INFO (
440+ RCLCPP_DEBUG (
441441 rclcpp::get_logger (" controller_manager" ),
442442 " The reference interfaces of the successor: '%s' are within the command interfaces of the "
443443 " predecessor: '%s' : %s" ,
@@ -450,7 +450,7 @@ struct ControllerPeerInfo
450450 }
451451 else
452452 {
453- RCLCPP_INFO (
453+ RCLCPP_WARN (
454454 rclcpp::get_logger (" controller_manager" ),
455455 " Controller %s has a successor %s who has more reference interfaces that use different "
456456 " controllers. This is not supported now." ,
@@ -466,7 +466,7 @@ struct ControllerPeerInfo
466466 {
467467 if (ros2_control::has_item (controllers_to_deactivate, predecessor->name ))
468468 {
469- RCLCPP_INFO (
469+ RCLCPP_DEBUG (
470470 rclcpp::get_logger (" controller_manager" ),
471471 " The predecessor: '%s' is already in the deactivation list." , predecessor->name .c_str ());
472472 continue ;
@@ -489,12 +489,12 @@ struct ControllerPeerInfo
489489 {
490490 if (ros2_control::has_item (controllers_to_deactivate, successor->name ))
491491 {
492- RCLCPP_INFO (
492+ RCLCPP_DEBUG (
493493 rclcpp::get_logger (" controller_manager" ),
494494 " The successor: '%s' is already in the deactivation list." , successor->name .c_str ());
495495 continue ;
496496 }
497- RCLCPP_INFO (
497+ RCLCPP_DEBUG (
498498 rclcpp::get_logger (" controller_manager" ),
499499 fmt::format (
500500 " The controllers to deactivate list is {}" , fmt::join (controllers_to_deactivate, " , " ))
@@ -506,7 +506,7 @@ struct ControllerPeerInfo
506506 [&successor](const std::unordered_set<std::string> & group)
507507 { return group.find (successor->name ) != group.end () && group.size () == 1 ; }))
508508 {
509- RCLCPP_INFO (
509+ RCLCPP_DEBUG (
510510 rclcpp::get_logger (" controller_manager" ),
511511 " The successor: '%s' is in a mutually exclusive group, skipping further deactivation." ,
512512 successor->name .c_str ());
@@ -516,18 +516,11 @@ struct ControllerPeerInfo
516516 if (successor->command_interfaces .empty ())
517517 {
518518 ros2_control::add_item (controllers_to_deactivate, successor->name );
519- RCLCPP_INFO (
519+ RCLCPP_DEBUG (
520520 rclcpp::get_logger (" controller_manager" ),
521521 " Adding successor: '%s' to the deactivation list, as it has no command interfaces." ,
522522 successor->name .c_str ());
523523 }
524- else
525- {
526- RCLCPP_INFO (
527- rclcpp::get_logger (" controller_manager" ),
528- " Controller %s has a successor %s who has command interfaces. This is not supported now." ,
529- name.c_str (), successor->name .c_str ());
530- }
531524 successor->get_controllers_to_deactivate (controllers_to_deactivate);
532525 }
533526 }
@@ -596,7 +589,7 @@ class ControllerChainDependencyGraph
596589
597590 std::vector<std::string> get_dependencies_to_activate (const std::string & controller_name)
598591 {
599- RCLCPP_INFO (
592+ RCLCPP_DEBUG (
600593 rclcpp::get_logger (" controller_manager" ),
601594 " +++++++++++++++++++++++++++++++ Getting dependencies to ACTIVATE "
602595 " +++++++++++++++++++++++++++++++" );
@@ -613,7 +606,7 @@ class ControllerChainDependencyGraph
613606
614607 std::vector<std::string> get_dependencies_to_deactivate (const std::string & controller_name)
615608 {
616- RCLCPP_INFO (
609+ RCLCPP_DEBUG (
617610 rclcpp::get_logger (" controller_manager" ),
618611 " +++++++++++++++++++++++++++++++ Getting dependencies to DEACTIVATE "
619612 " +++++++++++++++++++++++++++++++" );
0 commit comments