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

How do you create a log of published messages?

asked 2020-02-02 12:13:52 -0500

hannah1 gravatar image

updated 2020-02-02 13:01:37 -0500

I'm completely new to robotics and software as a hobby. I've got my robot up and running and I'm trying to create a log file for specific messages in "create_autonomy".

I'm hoping to log this once a minute in the terminal window or a .txt file

  • hour:minute:second battery/charge (95%)
  • hour:minute:second joint_states (forward, 1.5 mph)

Any ELI5 help would be awesome, I'm not sure where to start

This video ends at what I'm trying to do https://www.youtube.com/watch?v=T4KRg...

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-02-02 15:42:20 -0500

You could either simply modify the driver to log that information with a ROS_LOG_THROTTLE set at 1 second when you publish that information or create another ROS node to subscribe to that information with the same log.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-02-02 12:13:00 -0500

Seen: 125 times

Last updated: Feb 02 '20