Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More verbose output when failing to plot with a given config #16

Open
skohlbr opened this issue Jan 17, 2017 · 1 comment
Open

More verbose output when failing to plot with a given config #16

skohlbr opened this issue Jan 17, 2017 · 1 comment

Comments

@skohlbr
Copy link

skohlbr commented Jan 17, 2017

I made multiple configs for plotting and mainly want to use those with the "Import from bag file" functionality. This works well most of the time, but sometimes it just doesn't work and "nothing happens". The same happens to a lesser extend when playing back bag files. Some plotting configs work, some do not and it is completely unclear what the reasons could be. The existing verbose output option does not provide any useful information.

I'm currently using rqt_multiplot cloned from source (master) in my indigo setup.

Here is an example bag file.

If I clear my config, then select argo_tracker_joint_trajectory_controller_state.xml and import the bag file I get a plot and the following on the terminal:

[ INFO] [1484693965.379257674, 1484649926.288922911]: Loaded configuration from [file:///home/kohlbrecher/argo2/src/hector_rqt_multiplot_config/config/argo_tracker_joint_trajectory_controller_state.xml]
[ INFO] [1484693976.333224726, 1484649926.288922911]: Read bag from [file:///media/kohlbrecher/data/argo_log/driving_test_paul/2017-01-17-23-48-52.bag]

If I clear my config, then select pdout.xml and import the bag file I get no plot and the following on the terminal:

[ INFO] [1484693997.489607086, 1484649926.288922911]: Loaded configuration from [file:///home/kohlbrecher/argo2/src/hector_rqt_multiplot_config/config/pdout.xml]
[ INFO] [1484694009.362378172, 1484649926.288922911]: Read bag from [file:///media/kohlbrecher/data/argo_log/driving_test_paul/2017-01-17-23-48-52.bag]

Any hints and improvements indicating to the user what is going wrong are appreciated :)

@skohlbr
Copy link
Author

skohlbr commented Jan 19, 2017

Ok I found the problem: For some reason, the <field> tag for my x axes were empty. After fixing that up by copying the name as for the y axis, all my configs I fixed this way started working again.

See for instance these two changesets:

I only found this by accident, so the original point still stands: There should be more verbose output to make things like this much easier to find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant