[garden] Use anti-aliasing value from <anti_aliasing> SDF element#210
[garden] Use anti-aliasing value from <anti_aliasing> SDF element#210iche033 merged 8 commits intogazebosim:mainfrom
Conversation
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
ahcorde
left a comment
There was a problem hiding this comment.
I think you need to change this line
to
ign_find_package(sdformat12 REQUIRED VERSION 12.4)
Codecov Report
@@ Coverage Diff @@
## main #210 +/- ##
=======================================
Coverage 68.73% 68.73%
=======================================
Files 34 34
Lines 3419 3419
=======================================
Hits 2350 2350
Misses 1069 1069
Continue to review full report at Codecov.
|
|
Test failures are irrelevant to changes. |
+1 to @ahcorde 's suggestion. We should bump the required SDF version so that users know they need to upgrade when compiling, as opposed to having a compilation error due to the missing API, and needing to dig to find out what's happening. |
Since it's currently targeting sdformat13, should I bump the minor version? Lines 90 to 92 in 3359a0f to |
libsdformat13 hasn't been released yet, so we don't need to bump the minor. I think this request is out of date since it is targeting garden? |
|
|
||
| // \todo(nkoeng) these parameters via sdf | ||
| this->dataPtr->camera->SetAntiAliasing(2); | ||
| this->dataPtr->camera->SetAntiAliasing(cameraSdf->AntiAliasingValue()); |
There was a problem hiding this comment.
the default value in SDFormat is 4, so this will represent a behavior change
There was a problem hiding this comment.
hmm it may be worth putting a note in the migration guide about this change, otherwise changes look good to me.
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
comment addressed - now targeting garden
🎉 [garden] Use anti-aliasing value from <anti_aliasing> SDF element
Summary
The level of MSAA is hard-coded to 2. This pull request allows users to change the MSAA level with the SDF element
<anti_aliasing>.Checklist
codecheckpassed (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-bymessages.