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

How to plot a message bool in a bag file?

asked 2019-05-12 16:49:37 -0500

PaulBouchier gravatar image

updated 2019-05-12 17:51:47 -0500

A lot of times there's a bool in a message which qualifies analog data in the message; e.g. nav_data_valid or is_stopped, and which needs to be viewed to understand node behavior. I know I can look at these values in rqt_bag by viewing the raw message, but that doesn't readily show 1-cycle blips in these booleans, or put them in the context of related variables like speed. rqt_bag and bag-tools/plot.py don't allow plotting bools.

I have to imagine this is a common use case - how do people handle it? Thanks for any suggestions.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-05-12 19:17:16 -0500

PaulBouchier gravatar image

Found that bag-tools/plot.py does actually plot bools as value 0 or 1 for False or True.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-05-12 16:49:37 -0500

Seen: 160 times

Last updated: May 12 '19