flexbe_behavior_engine icon indicating copy to clipboard operation
flexbe_behavior_engine copied to clipboard

Live-View of userdata

Open fmauch opened this issue 9 years ago • 5 comments
trafficstars

When reviewing the execution of a larger behaviour it is quite usefull to be able to see the current userdata and it's contents, so it is easier to debug what's currently going on.

While it is already possible to see a state's userdata and it's remapping, the userdata's content is not exposed to the user in the control view.

fmauch avatar Nov 08 '16 16:11 fmauch

Yes, values of userdata are not being displayed. This would potentially require a significant amount of data transmission and userdata can contain arbitrary objects.

However, I agree that it would be very useful in some cases and especially for debugging before deploying a system. I can very well imagine to add something like an on-demand value display to the Runtime Control view of the UI.

Anyone, feel free to post ideas or requests regarding realization so that I can incorporate them.

pschillinger avatar Nov 08 '16 21:11 pschillinger

publishing the userdata to a topic whenever a transition happens would be an option. This can be created only if a subscriber to this topic exists, so the transfer overhead would be optional to the user.

Also, publishing (or showing) a list of userdata keys and then some on-demand display sounds like a good way to go.

fmauch avatar Nov 11 '16 10:11 fmauch

I support on demand only publishing of userdata to a topic, preferably time stamped for data logging.

The question would be how to organize for greatest utility, without incurring significant overhead.
Just logging user data as a char buffer would be simply, but not very useful with rqt_bag or other tools. What python tools could we use to allow us to extract and post process?

Adding structure (e.g. via python pickle) would incur overhead, but at least we could read from bag file and extract data, even if we could not view in rqt_bag.

dcconner avatar Mar 28 '17 19:03 dcconner