Ask Your Question

Visualize or plot Float32MultiArray data field

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

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

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

mgruhler gravatar image

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

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


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 -0600 )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



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

Seen: 76 times

Last updated: Apr 25 '19