PlotJuggler icon indicating copy to clipboard operation
PlotJuggler copied to clipboard

[Feature Request] Make available string fields from ROS topics in function source data

Open alunawat opened this issue 4 years ago • 7 comments

If you can make available string fields in the function source data field, we will be able to manipulate string fields to numeric fields for plotting.

I just want to acknowledge how great this tool is and I've been recommending this to everyone who it is relevant to. Thanks again for developing and maintaining this.

alunawat avatar May 13 '20 21:05 alunawat

I think that can be done, but the Function Editor needs some serious refactoring because I am not 100% happy with its usability for complex cases... like yours.

This change is harder than you may think because right now the string fields are discarded immediately.

Which message are you thinking about? Is it a custom one?

facontidavide avatar May 13 '20 21:05 facontidavide

Yes it is a custom one. I use a string field to encode hex numbers as identifiers for a custom sensor message. It would be awesome if I could convert that using code in the function editor and plot it on PlotJuggler.

alunawat avatar May 14 '20 02:05 alunawat

this requires a lot of changes. I think it is a good feature that may help many users, but it will takes me time to do it

facontidavide avatar May 14 '20 07:05 facontidavide

Hello @alunawat, @facontidavide +1 for this feature. :)

I have a use case where I use a custom message to send some "details" about the system, and I would like to filter which data to plot based on a string field of this message, e.g. if the field contains "gps" them the plotable data would go in the "gps details" custom time series.

Ellon avatar Jul 15 '21 12:07 Ellon

Somehow related to this is my situation: I have a CSV file with fields consisting of strings. I'd like to manipulate these strings (shown under value in the data tree) with custom timeseries and return a number. It seems that strings are not accepted as input in custom timeseries, as even a constant return doesn't produce any output.

maracuya-robotics avatar Dec 17 '21 12:12 maracuya-robotics

+1 for this feature

I have a state machine that publishes the name of the current state. It would be useful to visualise the current state next to a sensor plot to know what the robot is doing at that moment and enable better/easier interpretation of the sensor values

nepfaff avatar Jun 24 '22 17:06 nepfaff

+1 for this feature

same case as @nepfaff

PepMS avatar Dec 20 '22 08:12 PepMS