Ask Your Question
6

set log level in launch file

asked 2014-11-21 09:24:25 -0600

galou gravatar image

Is there a way to set the log level for a node in a launch file?

I would find this practical.

Cheers, Gaël

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
5

answered 2015-02-13 05:39:26 -0600

galou gravatar image

Self answer: http://wiki.ros.org/rosconsole#Config...

The feature is not launch-file specific and works by setting an environment variable to a configuration file.

edit flag offensive delete link more

Comments

Please mark your answer as correct.

BennyRe gravatar imageBennyRe ( 2015-02-16 04:37:28 -0600 )edit

Actually, my own answer seems to work only for roscpp node.

galou gravatar imagegalou ( 2015-09-11 06:45:13 -0600 )edit
-1

answered 2019-03-07 00:21:23 -0600

Markus gravatar image

Well I just tried it in kinetik like this:

<group if="$(arg use_DEBUG_OUTPUT)" >
         <node pkg="rosservice" type="rosservice" name="set_logger_level" args="call /tf_mapping_node/set_logger_level '{logger: 'rosout', level: 'ERROR'}'"/>
</group>

But it somehow failes for me....

edit flag offensive delete link more

Comments

1

Please don't answer a question just saying it doesn't work. Moreover the previous answer isn't even related to yours.

You would have more chances of being answered by asking a new question since the original question is very old.

Delb gravatar imageDelb ( 2019-03-07 01:19:22 -0600 )edit

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-11-21 09:24:25 -0600

Seen: 10,520 times

Last updated: Mar 07 '19