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

rospy equivalent of ROS_*_NAMED

asked 2017-11-07 16:50:14 -0500

jayess gravatar image

I came across a blog post about modifying the settings for logging. In the post, the ROS_WARN_NAMED function was mentioned. I hadn't seen that before and thought that it would be useful if there's a rospy equivalent. I tried searching for it, but didn't find anything (which makes me believe that this doesn't exist for rospy).

Is there a rospy equivalent of the ROS_*_NAMED family of logging functions? Any release of ROS will do.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-11-08 04:24:22 -0500

gvdhoorn gravatar image

updated 2017-11-08 04:39:33 -0500

There are no convenience wrappers for this afaik (so no rospy.loginfo_named(..) or similar), but rospy does support named loggers since ros/ros_comm#948.

They would be used like so (taken from the unit test):

rospy.loginfo("test child logger 1", logger_name="log1")

Note: this is only available on Lunar and Kinetic (backported in ros/ros_comm#1205) not on Kinetic ("new feature, not backported").

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-11-07 16:50:14 -0500

Seen: 142 times

Last updated: Nov 08 '17