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

Minor changes to aikido::io::loadSkeletonFromURDF. #401

Merged
merged 3 commits into from
May 9, 2018

Conversation

brianhou
Copy link
Contributor

@brianhou brianhou commented May 8, 2018

  • Changed API to take in a DART Uri rather than string. (Strings can be automatically converted to Uris.)
  • Only try to convert to a FreeJoint if a transform has been provided. (We might want to load Skeletons with fixed joints, but wouldn't set a transform in this case.)

Before creating a pull request

  • Document new methods and classes
  • Format code with make format

Before merging a pull request

  • Set version target by selecting a milestone on the right side
  • Summarize this change in CHANGELOG.md
  • Add unit test(s) for this change

Only try to convert to a FreeJoint if the provided transform is not
Identity.
@brianhou brianhou added this to the Aikido 0.3.0 milestone May 8, 2018
@brianhou brianhou requested review from jslee02 and Ponzel May 8, 2018 22:08
Ponzel
Ponzel previously approved these changes May 8, 2018
@codecov
Copy link

codecov bot commented May 8, 2018

Codecov Report

Merging #401 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #401      +/-   ##
==========================================
- Coverage   80.94%   80.93%   -0.02%     
==========================================
  Files         203      203              
  Lines        5774     5775       +1     
==========================================
  Hits         4674     4674              
- Misses       1100     1101       +1
Impacted Files Coverage Δ
src/io/util.cpp 0% <0%> (ø) ⬆️

@jslee02
Copy link
Member

jslee02 commented May 8, 2018

Only try to convert to a FreeJoint if a transform has been provided. (We might want to load Skeletons with fixed joints, but wouldn't set a transform in this case.)

How about we print a warning in that case? One might pass non-identity transform for fixed joint expecting transformed root body, which is not the case here.

@Ponzel
Copy link

Ponzel commented May 8, 2018

If someone passes a non-identity transform for a fixed joint, it throws an error already, doesn't it?

@jslee02
Copy link
Member

jslee02 commented May 8, 2018

@Tonkel Ah, that's true.

jslee02
jslee02 previously approved these changes May 8, 2018
@brianhou brianhou dismissed stale reviews from jslee02 and Ponzel via 29bc5c9 May 9, 2018 01:00
Copy link
Member

@jslee02 jslee02 left a comment

Choose a reason for hiding this comment

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

Looks good to go!

@brianhou brianhou merged commit e16754d into master May 9, 2018
@brianhou brianhou deleted the enhancement/brianhou/loadSkeletonFromURDF branch May 9, 2018 02:36
gilwoolee pushed a commit that referenced this pull request Jan 21, 2019
* Take DART Uri in loadSkeletonFromURDF.

Only try to convert to a FreeJoint if the provided transform is not
Identity.

* Update CHANGELOG.md.

* Add tests for loadSkeletonFromURDF.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants