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 to SDF: Added Lights attached to models #903

Merged
merged 150 commits into from
Apr 19, 2022

Conversation

ahcorde
Copy link
Collaborator

@ahcorde ahcorde commented Mar 22, 2022

🎉 New feature

Summary

USD to SDF: Added Lights attached to models

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 30 commits March 9, 2022 13:22
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
@ahcorde ahcorde marked this pull request as ready for review April 13, 2022 17:10
@ahcorde ahcorde requested review from azeey and scpeters as code owners April 13, 2022 17:10
adlarkin and others added 5 commits April 13, 2022 12:19
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Alejandro Hernández <[email protected]>
Signed-off-by: Alejandro Hernández <[email protected]>
Base automatically changed from ahcorde/usd_to_sdf_sensors to sdf12 April 14, 2022 10:52
@codecov-commenter
Copy link

codecov-commenter commented Apr 14, 2022

Codecov Report

Merging #903 (ab60b1a) into sdf12 (ee762e8) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            sdf12     #903   +/-   ##
=======================================
  Coverage   65.38%   65.38%           
=======================================
  Files           2        2           
  Lines          26       26           
=======================================
  Hits           17       17           
  Misses          9        9           

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 ee762e8...ab60b1a. Read the comment docs.

Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Copy link
Contributor

@adlarkin adlarkin left a comment

Choose a reason for hiding this comment

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

@ahcorde I added some tests in 7a4ce0a and found that I had to make the following changes in order for the tests to pass (fixes were made in 72a9eec):

  • when searching for a link in the model, this should be done with ignition::common::basename(linkName), not linkName
  • before searching if modelPtr has a link named ignition::common::basename(linkName), we need to make sure the light prim actually has a model ancestor. Otherwise, modelPtr and linkName contain data relevant to a previously parsed model that doesn't contain this light, and so this light should be attached to the world.

I also ran the usd2sdf converter on the test/usd/upAxisZ.usda file and examined the output.sdf file, and it seems correct to me. However, before I merge this, would you mind taking one last look at it to make sure I didn't break anything on other files you've been testing?

@ahcorde ahcorde merged commit 2247225 into sdf12 Apr 19, 2022
@ahcorde ahcorde deleted the ahcorde/usd_to_sdf_link_lights branch April 19, 2022 07:44
chapulina added a commit that referenced this pull request May 9, 2022
* USD to SDF: Added Lights attached to models (#903)

Signed-off-by: ahcorde <[email protected]>
Co-authored-by: Ashton Larkin <[email protected]>

* USD to SDF: Added diff drive plugin (#904)

Signed-off-by: ahcorde <[email protected]>
Co-authored-by: Ashton Larkin <[email protected]>

* USD to SDF: some fixes (#991)

Signed-off-by: ahcorde <[email protected]>

* Added equality operators to Plugin (#912)

* Added convenience constructor to plugin

Signed-off-by: Nate Koenig <[email protected]>

* Added equality operators to Plugin

Signed-off-by: Nate Koenig <[email protected]>

* Remove common dependency

Signed-off-by: Nate Koenig <[email protected]>

* Fixed test

Signed-off-by: Nate Koenig <[email protected]>

Co-authored-by: Nate Koenig <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
Co-authored-by: Louise Poubel <[email protected]>

Co-authored-by: Alejandro Hernández Cordero <[email protected]>
Co-authored-by: Ashton Larkin <[email protected]>
Co-authored-by: Nate Koenig <[email protected]>
Co-authored-by: Nate Koenig <[email protected]>
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.

3 participants