Ask Your Question
0

Visualize or plot Float32MultiArray data field

asked 2019-04-25 08:06:23 -0500

marinePhD gravatar image

Similar to this question, is there a way to plot the data field of a Float32MultiArray message type? I'm trying to show the FFT of a signal in real-time and I can't seem to find a straightforward method of implementing the visualization I've tried Plot juggler, rqt_plot amd rqt_multiplot and they don't seem to have the functionality

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-04-25 08:45:21 -0500

mgruhler gravatar image

updated 2019-04-25 08:45:48 -0500

This is due the the *MultiArray data types being quite ambiguous. As you have to / can specify the MultiArrayLayout, you can put rather arbitrary data in there. The docs give an example for encoding an image using this data type. So there is no straightforward way to implement a visualization of this.

Also, all the tools you mention actually work on single value data and plot respective time series. Even though you can configure rqt_multiplot a little bit more, I don't think you are able to do that with this kind of message easily.

You'd have to create your own specific plotting display, I guess.

edit flag offensive delete link more

Comments

This is what I've come across as well. Looks like Ill have to write something it seems. Thanks.

marinePhD gravatar imagemarinePhD ( 2019-04-25 09:28:18 -0500 )edit

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-04-25 08:06:23 -0500

Seen: 58 times

Last updated: Apr 25