-
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
Distortion Camera Sensor #192
Distortion Camera Sensor #192
Conversation
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
CI is failing with the following:
The DistortionPass.hh file was introduced recently to ign-rendering6. |
since this is targeting fortress, we will need a release of gazebosim/gz-rendering@ignition-rendering6_6.1.0...ign-rendering6 Edit: I can assist with the prerelease if needed |
That would be great if you could help with the prerelease. I'm not too sure how to go about doing that. |
here's the prerelease version bump and changelog pull request: gazebosim/gz-rendering#548 |
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
8e8cd50
to
65e9243
Compare
I just made the 6.2.0~pre1 prerelease: https://build.osrfoundation.org/job/ign-rendering6-debbuilder/525/ you should update |
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Testing gazebosim/gz-sensors#192 Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Testing gazebosim/gz-sensors#192 Signed-off-by: Steve Peters <scpeters@openrobotics.org>
in order to use the prerelease only in a branch, you need to create a special branch in the gzdev repository that configures the that the GitHub action is currently running |
Codecov Report
@@ Coverage Diff @@
## ign-sensors6 #192 +/- ##
================================================
- Coverage 76.58% 73.06% -3.52%
================================================
Files 29 33 +4
Lines 2925 3067 +142
================================================
+ Hits 2240 2241 +1
- Misses 685 826 +141
Continue to review full report at Codecov.
|
it looks like the Ubuntu build is passing in the Github action workflow and the homebrew builds is passing as well, though there are no tests of distortion in this pull request |
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
src/ImageDistortion.cc
Outdated
{ | ||
if (_sensorType == "camera" || _sensorType == "depth" || | ||
_sensorType == "multicamera" || _sensorType == "wideanglecamera" || | ||
_sensorType == "thermal_camera" || _sensorType == "rgbd_camera") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know the distortion render pass in ign-rendering would work with all these sensors? Maybe we should just limit it to the ones that we know are working for now
src/Distortion.cc
Outdated
{ | ||
if (_sensorType == "camera" || _sensorType == "depth" || | ||
_sensorType == "multicamera" || _sensorType == "wideanglecamera" || | ||
_sensorType == "thermal_camera" || _sensorType == "rgbd_camera") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question as ImageDistortionFactory, maybe we should limit image distortion to sensors that we know are working
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-ignition-releases-2022-04-13-fortress-edifice/1367/1 |
🎉 Distortion Camera Sensor
Summary
Camera distortion has already been implemented in ign-rendering, but in order to use it with ign-gazebo, it must be implemented within ign-sensors.
Distortion is implemented with abstraction (just like how noise is implemented) in the case that different distortion models are to be implemented. The abstract implementation in ign-sensors would reduce future work for adding additional distortions.
Comments with the
TODO
tag have been added in areas where additional work is required in other repositories to maintain the abstraction. For example, sdf::Distortion does not exist so sdf::Camera is being used instead with it's distortion element that is hard-coded with the Brown's distortion model coefficients.Tasks required to enable distortion abstraction
Test it
Requires the branch: https://github.com/WilliamLewww/ign-gazebo/tree/wlew/distortion_test
ign gazebo ign-gazebo/test/worlds/camera_distortion.sdf
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.