-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add distortion to camera sensors #107
Comments
Here's Gazebo classic's Camera Distortion tutorial as another reference. |
much of the implementation of camera distortion in gazebo classic is in the rendering library: I imagine that when porting to ignition, we will similarly put some of that functionality in ign-rendering? |
+1 |
We can start by porting Gazebo classic's Distortion class over to the ogre 1.x implementation in ign-rendering. In ign-rendering, we can apply distortion to cameras using a similar approach as applying noise. The idea is to apply distortion as a render pass, see example for applying noise. We'll need the add the abstract / base Distortion classes, see GaussianNoisePass.hh and BaseGaussianNoisePass.hh. Then put the actual ogre 1.x implementation in There is a macro to register the render pass so that it can be created by the RenderPassSystem |
gazebosim/gz-rendering#502 has brought the required ign-rendering support. |
Closed with the following merges: |
Desired behavior
SDF tags
<distortion>
in camera sensors should be respected.Alternatives considered
Implementation suggestion
As of now, they are silently ignored. I think until distortion is supported, it might be valuable to at least issue a warning that the distortion is not taken into account. It is then also wrong to publish the distortion read from SDF as camera info, as the actual distortion is zero.
Additional context
This should also appear in the comparison chart between Gazebo Classic and Ignition Gazebo.
The text was updated successfully, but these errors were encountered: