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

Subscribing to /rosout topic

asked 2017-07-18 10:39:54 -0500

robo_ninja gravatar image

Is there a way I can write a node to subscribe the log messages from the /rosout topic and save in a HTML file?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-07-21 21:57:44 -0500

Ed Venator gravatar image

That should be pretty easy to do in Python (and only slightly more difficult in C++). For the subscription part, you can start with the subscriber example, but adapt it to subscribe to rosgraph_msgs/Log messages on /rosout_agg instead of std_msgs/String messages on /chatter. There's some more details about rosout on the wiki page. For the file writing part, you can either use an XML or HTML writer in Python (a search engine will turn up many) or use regular file I/O and hand-code the HTML.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-07-18 10:39:54 -0500

Seen: 972 times

Last updated: Jul 21 '17