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

DRC Terrain texture warps when gazebo camera viewpoint changes #242

Closed
osrf-migration opened this issue Nov 20, 2012 · 7 comments
Closed
Labels
all bug Something isn't working major

Comments

@osrf-migration
Copy link

Original report (archived issue) by John Hsu (Bitbucket: hsu, GitHub: hsu).

The original report had attachments: drc1.1_heightmap_stereo_bug.jpg, drc1.1_heightmap_stereo_working_custom_env.jpg


from drcsim #23

@osrf-migration
Copy link
Author

Original comment by Stefan Kohlbrecher (Bitbucket: Stefan_Kohlbrecher).


  • set attachment to "drc1.1_heightmap_stereo_bug.jpg"

Here's the result of stereo_image_proc with DRCSim 1.1.0. As visible, the points for the Turtlebot and Pioneer are at a reasonable distance, while the heightmap terrain points are completely wrong. I strongly suspect that this is related to the strange shader applied to the terrain.

@osrf-migration
Copy link
Author

Original comment by Thomas Koletschka (Bitbucket: thomasko).


Well that's what you would expect, right? The weird shift in the heightmap shader increases the parallax and hence it looks like it's farther away - not just to the human eye. ;)
The same thing will affect you when computing visual odometry because the surface will appear to move faster than it actually does I think.

Just use a simple plane or other mesh with texture attached to it until it's fixed.

@osrf-migration
Copy link
Author

Original comment by Stefan Kohlbrecher (Bitbucket: Stefan_Kohlbrecher).


  • set attachment to "drc1.1_heightmap_stereo_working_custom_env.jpg"

Yes, it's expected, just wanted to provide confirmation. Attached is a screenshot of a custom environment. As expected, stereo works there (ignoring the replacement texture bug (issue #239) for now).

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "new" to "resolved"

Fixed in pull request #156

@osrf-migration
Copy link
Author

Original comment by Thomas Koletschka (Bitbucket: thomasko).


This does not seem to be fixed actually. Using the current gazebo 1.3.0 and drcsim 1.1.0 release you still get very bad distortions: http://youtu.be/n7sWSQ_eyD0

Using the corresponding pull request for drcsim which changes the normal map for the terrain to a flat one also doesn't fix the problem but rather avoids (most of) the symptoms. However even with the flat normal map the terrain still has a more or less small offset in z just that it's constant.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set version to "all"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "resolved" to "closed"

@osrf-migration osrf-migration added major bug Something isn't working all labels Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
all bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant