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

USD -> SDF: Added model tag #876

Merged
merged 84 commits into from
Apr 5, 2022
Merged

USD -> SDF: Added model tag #876

merged 84 commits into from
Apr 5, 2022

Conversation

ahcorde
Copy link
Collaborator

@ahcorde ahcorde commented Mar 10, 2022

Signed-off-by: ahcorde ahcorde@gmail.com

🎉 New feature

Summary

USD -> SDF: Added model tag

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

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.

ahcorde and others added 14 commits March 9, 2022 13:22
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: ahcorde <ahcorde@gmail.com>
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>
Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde added the usd label Mar 10, 2022
@ahcorde ahcorde self-assigned this Mar 10, 2022
Signed-off-by: ahcorde <ahcorde@gmail.com>
adlarkin and others added 3 commits March 10, 2022 19:29
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>
@@ -80,6 +87,25 @@ namespace usd
std::vector<std::string> primPathTokens =
ignition::common::split(primPath, "/");

if (primPathTokens.size() == 1 && !prim.IsA<pxr::UsdGeomCamera>())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is making an assumption on the scene graph of the usd, it wouldn't hold if the usd does not come from isaac sim. We should probably note somewhere that the converter only works for isaac sim usds.

Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
ahcorde and others added 12 commits March 28, 2022 10:34
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: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Mar 31, 2022

Codecov Report

Merging #876 (96b561c) into sdf12 (2669ff5) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 96b561c differs from pull request most recent head b01801f. Consider uploading reports for the commit b01801f to get more accurate results

@@            Coverage Diff             @@
##            sdf12     #876      +/-   ##
==========================================
+ Coverage   87.66%   87.68%   +0.01%     
==========================================
  Files         104      104              
  Lines       15033    15049      +16     
==========================================
+ Hits        13179    13196      +17     
+ Misses       1854     1853       -1     
Impacted Files Coverage Δ
usd/src/usd_parser/USDData.cc 62.28% <ø> (-1.28%) ⬇️
usd/src/usd_parser/USDWorld.cc 86.36% <100.00%> (+4.01%) ⬆️
usd/src/usd_parser/USDTransforms.cc 65.54% <0.00%> (+0.67%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2669ff5...b01801f. Read the comment docs.

Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
Base automatically changed from ahcorde/usd_to_sdf_lights to sdf12 March 31, 2022 20:54
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
@adlarkin
Copy link
Contributor

@ahcorde I made some changes and added tests, would you mind taking a look? Here are the changes I made: https://github.com/ignitionrobotics/sdformat/pull/876/files/af2ce4c6caf2cf1a7cf7be2214de94d4a1d03800..553b93b03bbd482dd0602a2c066547aaee125a0f

usd/src/usd_parser/USDLight_TEST.cc Show resolved Hide resolved
usd/src/usd_parser/USDLight_TEST.cc Show resolved Hide resolved
usd/src/usd_parser/USDWorld.cc Outdated Show resolved Hide resolved
usd/src/usd_parser/USDWorld.cc Outdated Show resolved Hide resolved
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde requested a review from adlarkin April 5, 2022 08:19
@ahcorde ahcorde merged commit 56b0d9c into sdf12 Apr 5, 2022
@ahcorde ahcorde deleted the ahcorde/usd_to_sdf_models branch April 5, 2022 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants