How to plot histogram or 1D using a ros node in c++?
I haven't had luck finding an answer to this. I understand there's a somewaht convenient way to plot data in a python written node using matplotlib.
I'm hoping to plot a histogram with a 600 bins, and range 0 to 1.0, by taking an exisiting 600 element array with values between that range.
I've tried digging into rxplot, and matplotlib, and I'm starting to think I'll either have to use a regular c++ plugin or have to end up writing a plotting node in python that subscribes for a topic to get the array data.
I've tried creating a new topic, /array. Where I submit flot32multiarray, float-data-type arrays with 600 elements to plot then in cmd prompt called rosrun rqt_plot /array, or inside, but that doens't seem to work either.
Any tips or advice?