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

Add distortion to camera sensors #107

Closed
peci1 opened this issue Mar 10, 2021 · 7 comments
Closed

Add distortion to camera sensors #107

peci1 opened this issue Mar 10, 2021 · 7 comments
Assignees
Labels
close the gap Features from Gazebo-classic enhancement New feature or request 🌱 garden Ignition Garden

Comments

@peci1
Copy link
Contributor

peci1 commented Mar 10, 2021

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.

@peci1 peci1 added the enhancement New feature or request label Mar 10, 2021
@chapulina chapulina added close the gap Features from Gazebo-classic enhancement New feature or request help wanted Extra attention is needed and removed enhancement New feature or request labels Mar 10, 2021
@chapulina
Copy link
Contributor

Here's Gazebo classic's Camera Distortion tutorial as another reference.

@scpeters
Copy link
Member

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?

@iche033
Copy link
Contributor

iche033 commented Aug 12, 2021

I imagine that when porting to ignition, we will similarly put some of that functionality in ign-rendering?

+1

@chapulina chapulina added 🌱 garden Ignition Garden and removed help wanted Extra attention is needed labels Nov 1, 2021
@iche033 iche033 assigned WilliamLewww and unassigned iche033 Nov 16, 2021
@iche033
Copy link
Contributor

iche033 commented Nov 16, 2021

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 ogre directory, see OgreGaussianNoise.cc and OgreGaussianNoise.hh

There is a macro to register the render pass so that it can be created by the RenderPassSystem

@peci1
Copy link
Contributor Author

peci1 commented Jan 31, 2022

gazebosim/gz-rendering#502 has brought the required ign-rendering support.

@iche033
Copy link
Contributor

iche033 commented Mar 1, 2022

#192

@WilliamLewww
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
close the gap Features from Gazebo-classic enhancement New feature or request 🌱 garden Ignition Garden
Projects
None yet
Development

No branches or pull requests

5 participants