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

Allowing relative paths in URDF #1213

Merged
merged 4 commits into from
Feb 4, 2023
Merged

Conversation

FracturedShader
Copy link
Contributor

🦟 Bug fix

Summary

When parsing a URDF file, the _source parameter is set to "urdf file" which breaks relative path resolution later on. This commit changes the call to sdf::readDoc to use filename as the _source parameter instead.

Additional Information

I came across this issue while testing out a physics plugin I am developing for PhysX 4.1 integration. Searching all repos pulled by colcon reveals no other uses of the phrase "urdf file" as a special case. Testing has revealed no new issues.

@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Merging #1213 (5d05194) into sdf9 (fb69269) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             sdf9    #1213   +/-   ##
=======================================
  Coverage   88.35%   88.35%           
=======================================
  Files          63       63           
  Lines       10093    10093           
=======================================
  Hits         8918     8918           
  Misses       1175     1175           
Impacted Files Coverage Δ
src/parser.cc 79.05% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@azeey
Copy link
Collaborator

azeey commented Dec 16, 2022

Thanks for the contribution. Since this is a small change, would you mind setting the target branch to sdf9 so the bug fix is goies into earlier versions as well?

@FracturedShader FracturedShader changed the base branch from sdf13 to sdf9 December 16, 2022 16:11
@FracturedShader FracturedShader changed the base branch from sdf9 to sdf13 December 16, 2022 16:12
When parsing a URDF file, the `_source` parameter is set to "urdf file" which breaks relative path resolution downstream. This commit changes the call to `sdf::readDoc` to use `filename` as the `_source` parameter instead.

Signed-off-by: Robert Plante <RobertDPlante@gmail.com>
@FracturedShader FracturedShader changed the base branch from sdf13 to sdf9 December 16, 2022 16:24
@FracturedShader
Copy link
Contributor Author

Thanks for the contribution. Since this is a small change, would you mind setting the target branch to sdf9 so the bug fix is goies into earlier versions as well?

No problem. Rebased onto sdf9 and modified the commit to fit.

@azeey azeey added 🏰 citadel Ignition Citadel and removed 🌱 garden Ignition Garden labels Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants