I would like a specific node in my ROS package to display output at the DEBUG verbosity level, while other nodes to display at the INFO level. I am aware of the rosconsole configuration file, and am able to set verbosity for a package with:
log4j.logger.ros.my_package=DEBUG
However, the following does not work:
log4j.logger.ros.my_package.my_node=DEBUG
The easiest way is running rqt_logger_level GUI. If you have no GUI on robot, you can do that using service :
rosservice call /my_node/set_logger_level "{logger: 'rosout', level: 'debug'}"
Replace my_node
and debug
to specify the node and verbosity level, respectively.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With