Subscribing to /rosout topic
Is there a way I can write a node to subscribe the log messages from the /rosout topic and save in a HTML file?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Is there a way I can write a node to subscribe the log messages from the /rosout topic and save in a HTML file?
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.
Asked: 2017-07-18 10:39:54 -0600
Seen: 1,066 times
Last updated: Jul 21 '17