ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

Getting ROS_DEBUG during startup

asked 2019-02-01 12:25:31 -0600

ivaughn gravatar image

Is it possible to set the debug level during node initialization?

I'm trying to debug yet another pluginlib-not-loading bug in rqt, and it'd be awfully handy to see all the ROS_DEBUG statements in pluginlib.

In summary, how can I get ROS Debug output when running: rqt -v --list-plugins --force-discover Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-02-01 13:15:00 -0600

ivaughn gravatar image

Ok, I found an answer. You have to create a temporary logger config file that sets the requested log debug level. Here's an example that sets the default logger:

$ cat tmp.cfg 
log4j.logger.ros=DEBUG

Then you pass that using an environment variable as:

$ ROSCONSOLE_CONFIG_FILE=tmp.cfg rqt --force-discover -v --list-plugins

The logger will load the config file at startup and initialize itself to the config in that file instead of the default level ("warn").

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

Stats

Asked: 2019-02-01 12:25:31 -0600

Seen: 237 times

Last updated: Feb 01 '19