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

How to list available loggers?

asked 2013-10-07 08:07:12 -0500

I'm using a rosconsole.config file and the ROSCONSOLE_CONFIG_FILE environment variable to specify where it is, but is there any way to get a list of available loggers without having to run rqt_logger_level?

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2013-10-08 18:23:15 -0500

130s gravatar image

I know you want a solution without rqt_logger_level. Although I still refer to it, this answer doesn't depend on it.

Get a list of node names by rosnode list. Then, as in rqt_logger_level.LoggerLevelServiceCaller.send_logger_change_message, you can iteratively call rosservice.get_service_class_by_name to get a corresponding service to the given node name.

HTH.

edit flag offensive delete link more

Comments

That looks great, thanks. The larger fix is probably to develop a curses-based rosconsole client—especially one capable of prepopulating from the roslaunch-logs dir and spitting out a rosconsole.config file which you can then point to from the ROSCONSOLE_CONFIG_FILE env var.

mikepurvis gravatar image mikepurvis  ( 2013-10-11 05:26:31 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-10-07 08:07:12 -0500

Seen: 428 times

Last updated: Oct 08 '13