Ask Your Question

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/ 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

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

PaulBouchier gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 89 times

Last updated: May 12 '19