ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

For anybody stumbling upon this page, if you just want to set verbosity of packages as soon as they are launched by launchfiles, the easiest way is:

  1. to export ROSCONSOLE_CONFIG_FILE="/path/to/my/config/rosconsole.config"
  2. edit, for example with vi /path/to/my/config/rosconsole.config adding these lines:

    log4j.logger.ros=INFO log4j.logger.ros.roscpp.superdebug=WARN log4j.logger.ros.my_package_name=DEBUG

  3. launch your launchfile in the same shell.

The package name must be the one who corresponds to <node pkg="my_package_name" ...&gt;="" line="" in="" the="" launchfile.<="" p="">

For anybody stumbling upon this page, if you just want to set verbosity of packages as soon as they are launched by launchfiles, the easiest way is:

  1. to export ROSCONSOLE_CONFIG_FILE="/path/to/my/config/rosconsole.config"
  2. edit, for example with vi /path/to/my/config/rosconsole.config adding these lines:

log4j.logger.ros=INFO

log4j.logger.ros.roscpp.superdebug=WARN

log4j.logger.ros.my_package_name=DEBUG

log4j.logger.ros=INFO log4j.logger.ros.roscpp.superdebug=WARN log4j.logger.ros.my_package_name=DEBUG

  • 3. launch your launchfile in the same shell.

  • The package name must be the one who corresponds to <node pkg="my_package_name" ...&gt;="" line="" in="" the="" launchfile.<="" p=""> ...> line in the launchfile.