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 -0500
Seen: 981 times
Last updated: Jul 21 '17
Subscribing to topic throw compilation error
how is a rosconsole message making it to /rosout?
joint_states_aggregator and joint_state_publisher
what does a topic get when 2 nodes publish to it?
Compile error: ‘Init’ is not a member of ‘ros’
Multiple nodes and nodelets in a single process
Kill a Respawning Node (with pkill?)
Why are my rostests giving me a std::bad_alloc error?
Sending data stream in sync with video
Is it necessary to using Callback function when I subscribe?