-
Notifications
You must be signed in to change notification settings - Fork 212
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
Map rendering fails #453
Comments
I was just about to file an issue for this. I am not receiving the same OpenGL errors, however the map is not rendered properly. Like your example, the map shows up with proper dimensions however it is all black: After adding the map topic to be visualized a second time (so there are now two duplicate map topics being visualized), the map renders however it is inverted (black should be free space (white), white should be unknown (gray), and gray should be occupied (black)) I checked out the branch before and after PR #394 went in and saw that the map rendered fine, so it appears there is some bug introduced in the changes to upgrade to Ogre 1.12.1 |
This is definitely the upgrade. It's reproducible via the visual test ( Since there were no changes to the map display, this seems to be an Ogre-internal issue or a problem with the shader since the shader doesn't link correctly. Since I proposed the upgrade I'll do a bisect on the Ogre code. |
So I did the bisect as promised. The problem seems to be this commit (very early - it's before 1.11.0 and just after 1.10.12): OGRECave/ogre@17800a4. If you like, you can confirm this yourself by changing the two lines in rviz/rviz_ogre_vendor/CMakeLists.txt Lines 156 to 157 in c28f2c2
to
No other changes are required on Ubuntu (on Windows you'll have to disable the special patch introduced in the upgrade commit) - fortunately the problem occurs in a region where all the new API was already introduced. With this change, the map_display_visual_test runs as it should (and the map display should hopefully function as before), while if I change it to the next commit
the visual test fails with the pattern reported here. I thought it was an upstream bug (reported here: OGRECave/ogre#1252), but it's probably a usage error, so I'll see what we can do. |
I get following compilation errors after making above changes -
|
Ah, that's a missing dependency that was (mistakenly) a required dependency for some time: zzib (libzzib-dev on Ubuntu). I forgot that I had it installed for quite some time. |
@Martin-Idel I tried your fix on my machine today, it is working :) |
@bpwilcox Thanks, then I'm really confident I found the issue and the visual test does what it should! |
RViz is failing to display a map and is spitting out OpenGL errors "GL_INVALID_OPERATION" (see log below). I'm using ROS2 Eloquent master and the latest RViz built from source.
The map is size 567 x 329 and the map data is indeed the correct size for the dimensions.
Notice the map is black in the RViz display:
The text was updated successfully, but these errors were encountered: