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

Unable to rotate markers in MapViz #770

Open
ALCarroll24 opened this issue Dec 6, 2022 · 1 comment
Open

Unable to rotate markers in MapViz #770

ALCarroll24 opened this issue Dec 6, 2022 · 1 comment

Comments

@ALCarroll24
Copy link

Hi,

I am trying to display a covariance ellipse within MapViz. Because I did not find any native functionality within MapViz for this, I am trying to draw a covariance ellipse using Markers.

This approach works fine to create a viewable ellipse. However, rotating the ellipse seems to do nothing and thus I can't fully display covariance.

I have tried viewing the same marker messages within RVIZ, where rotation and stretching the ellipse seems to work fine.

Are marker rotations not implemented in MapViz and if not are there are any other approaches I can take for viewing covariance.

Thanks

@malban
Copy link
Contributor

malban commented Dec 6, 2022

Are marker rotations not implemented in MapViz and if not are there are any other approaches I can take for viewing covariance.

It looks like the orientation isn't taken into account when drawing the ellipse for a cylinder marker: https://github.com/swri-robotics/mapviz/blob/master/mapviz_plugins/src/marker_plugin.cpp#L566-L575, which seems like an oversight.

The odometry plugin can draw the position covariance for an odometry message.

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

2 participants