Ask Your Question
9

How can I visualize covariance data using ROS tools?

asked Mar 05 '11

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher flag of Germany
3369 17 50 85
http://www.sim.tu-darmsta...

Are there any best practices for visualizing covariance data as uncertainty ellipses/ellipsoids using ROS tools, especially rviz? There's quite a few applications where this would be desirable (most notably gaussian position estimates of parametric filters).

Of course, one could write a conversion node that gets fed for example with PoseWithCovariance messages and outputs a MarkerArray containing a polygonal representation of the ellipse/ellipsoid, but that is a bit cumbersome IMHO.

Has anybody implemented code for this scenario? Is there anything planned in the short or long term for easing development of such visualizations (I'm thinking of rviz plugins, rviz2 etc here)?

delete close flag offensive retag edit

Comments

My roommate and I recently discussed this in the middle of our latest optimal control and estimation homework. We talked about how to visualize a 3x3 or even a 9x9 covariance matrix. I think an rviz plugin would be the best solution, but I haven't seen or heard of anything so far to do this. William (Mar 05 '11)edit
Generally, the discussion was a deformed sphere for representing 3-dimension position data uncertainty. Representing pointing (roll/pitch/yaw) could then be a color map on the sphere. This only leaves one dimension of uncertainty out. mjcarroll (Mar 05 '11)edit
Indeed, this is also what came to my mind. A 2x2 or 3x3 covariance matrix could be visualized by computing the Eigenvectors and -values and then rotating and scaling a sphere marker accordingly. I did it similar for the 2D case here (non ROS): http://www.youtube.com/watch?v=mbVFB4-vz4MStefan Kohlbrecher (Mar 06 '11)edit
Exactly what we were talking about. Perhaps it is time to add something like this into RVIZ's capabilities. mjcarroll (Mar 06 '11)edit
I did this also in Matlab, with 2D laser data, object separation with gaussian/ellipsoids. szokei (Mar 11 '11)edit

1 Answer

Sort by ยป oldest newest most voted
4

answered Mar 07 '11

joq gravatar image joq
7304 29 68 133
http://www.austinrobot.co...

This is an important feature that rviz does not handle, so I opened ticket #4857 to provide it.

If you are interested in helping to get this done, please add yourself to the CC: list for that ticket.

link delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow
2 followers

subscribe to rss feed

Stats

Asked: Mar 05 '11

Seen: 417 times

Last updated: Mar 07 '11