Add sdf -> usd light functionality to usd component#818
Conversation
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## sdf12 #818 +/- ##
=======================================
Coverage 90.70% 90.70%
=======================================
Files 78 78
Lines 12438 12438
=======================================
Hits 11282 11282
Misses 1156 1156 Continue to review full report at Codecov.
|
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
96caa08 to
16e0789
Compare
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
ahcorde
left a comment
There was a problem hiding this comment.
LGTM, I'm not going to merge this PR yet, I'm waiting to get a review in the targeted branch
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
…ity attr Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
cea02cc to
d14dc37
Compare
|
I've updated this PR to match the USD component files that currently exist in the |
|
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 |
Signed-off-by: Ashton Larkin 42042756+adlarkin@users.noreply.github.com
🎉 New feature
Summary
This builds on top of #817 to add light converting functionality from SDF to USD.
There are a few things that may need to be addressed, but they aren't blocking the core functionality (I left some TODO notes in the code to highlight things we might want to address). I think we can start to review this PR now, and then re-visit the TODOs later when time permits to add enhanced functionality. Perhaps we should create an issue that lists what enhanced functionality is missing from the USD -> SDF creator?
I also think we can close #796 because the only test in that PR is for lights, which has been moved to this PR (we will need to address #796 (review), which is also a potential issue with the tests that are written in #817).
Test it
You can run the unit test that has been added in this PR (
Light_Sdf2Usd_TEST), or you can try converting https://github.com/ignitionrobotics/ign-gazebo/blob/ign-gazebo6/examples/worlds/lights.sdf to a USD file with thesdf2usdexecutable that's generated in #817 (this assumes you have PXR installed and have built theusdcomponent of sdformat).If you want to see how the light intensities look in isaac sim, you'll need to add an object to the
lights.sdffile above in order to have the lights reflect off of something. You can add the following code tousd/src/World.cc, which adds a ground plane to the world: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.