Ask Your Question

Can the log level of a (python) ROS node be changed dynamically?

asked 2012-10-01 18:25:56 -0500

updated 2014-01-28 17:13:48 -0500

ngrennan gravatar image

I wonder if it is possible (and if not if it makes sense) to change the log level of a python node during runtime.

The node could connect to a special purpose topic where the log level for the node can be announced. This would allow to have a node running without the debug messages being published to /rosout, but if necessary the log level could be switched to debug if the node is not running as expected.

Of course you can always change the init_node line and re-run the node, but in some occasions a more transparent solution might be useful?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-10-02 06:25:22 -0500

joq gravatar image

That would be quite useful, but is not currently supported.

edit flag offensive delete link more

answered 2012-10-26 08:23:26 -0500

130s gravatar image

updated 2012-10-26 08:24:50 -0500

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-10-01 18:25:56 -0500

Seen: 1,349 times

Last updated: Oct 26 '12