-
Notifications
You must be signed in to change notification settings - Fork 100
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
Conversation
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]>
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]>
… ahcorde/usd_to_sdf_transforms
…nto ahcorde/usd_to_sdf_lights
Signed-off-by: ahcorde <[email protected]>
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: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
… ahcorde/usd_to_sdf_transforms
Signed-off-by: ahcorde <[email protected]>
…nto ahcorde/usd_to_sdf_lights
Signed-off-by: ahcorde <[email protected]>
… ahcorde/usd_to_sdf_transforms
…nto ahcorde/usd_to_sdf_lights
Signed-off-by: ahcorde <[email protected]>
… ahcorde/usd_to_sdf_transforms
…nto ahcorde/usd_to_sdf_lights
Signed-off-by: Alejandro Hernández <[email protected]>
Signed-off-by: Alejandro Hernández <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
…ahcorde/usd_to_sdf_sensors
… ahcorde/usd_to_sdf_link_lights
Signed-off-by: Ashton Larkin <[email protected]>
… ahcorde/usd_to_sdf_link_lights
Signed-off-by: Alejandro Hernández <[email protected]>
Signed-off-by: Alejandro Hernández <[email protected]>
… ahcorde/usd_to_sdf_link_lights
Signed-off-by: Ashton Larkin <[email protected]>
Codecov Report
@@ 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.
|
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
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.
@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)
, notlinkName
- before searching if
modelPtr
has a link namedignition::common::basename(linkName)
, we need to make sure the light prim actually has a model ancestor. Otherwise,modelPtr
andlinkName
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?
Signed-off-by: Ashton Larkin <[email protected]>
* 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]>
🎉 New feature
Summary
USD to SDF: Added Lights attached to models
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.