0
$\begingroup$

I use ros2_control with my own hardware interface. In this interface, I log some stuff in DEBUG. I would like to set log level to DEBUG in my launch file so that I can see these logs.

In other words, how can I set it for a controller launched using the spawner executable from controller_manager package ?

Thanks in advance for your answer.

$\endgroup$

1 Answer 1

0
$\begingroup$

Have you tried using the --ros-args --log-level DEBUG when you start the Controller Manager node? If you are using a launch file, it would mean that you would need to add arguments=['--ros-args', '--log-level', 'DEBUG'] to the Controller Manager Node. This should enable the Controller Manager node to log in DEBUG mode.

$\endgroup$
1
  • 1
    $\begingroup$ Indeed, that's correct !! Just found it by myself and was editing my post. Thanks a lot for your answer. $\endgroup$ Sep 27, 2023 at 14:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.