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

Add Metaskeleton::cloneMetaSkeleton() #1201

Merged
merged 13 commits into from
Dec 17, 2018
Merged

Add Metaskeleton::cloneMetaSkeleton() #1201

merged 13 commits into from
Dec 17, 2018

Conversation

jslee02
Copy link
Member

@jslee02 jslee02 commented Dec 6, 2018

This PR introduces clone functions to MetaSkeleton classes. It basically clones necessary Skeletons are held by a MetaSkeleton as needed.

The clone function name of MetaSkeleton is cloneMetaSkeleton() to avoid the name conflict with Skeleton::clone().


Before creating a pull request

  • Document new methods and classes
  • Format new code files using clang-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

@jslee02 jslee02 added this to the DART 6.7.0 milestone Dec 6, 2018
@jslee02 jslee02 requested a review from mxgrey December 6, 2018 23:17
mxgrey
mxgrey previously approved these changes Dec 10, 2018
Copy link
Member

@mxgrey mxgrey left a comment

Choose a reason for hiding this comment

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

LGTM 👍

I just left one very minor nitpick about a comment that I think might be out of date.

const std::string& cloneName) const = 0;
// TODO: In DART7, rename this to clone() and change the current
// Skeleton::clone() to override it. Then consider adding
// Skeleton::cloneSkeleton().
Copy link
Member

Choose a reason for hiding this comment

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

Super nitpick: We don't need to consider adding Skeleont::cloneSkeleton(), because it's already been added.

@codecov
Copy link

codecov bot commented Dec 16, 2018

Codecov Report

Merging #1201 into release-6.7 will increase coverage by 0.06%.
The diff coverage is 63.22%.

@@               Coverage Diff               @@
##           release-6.7    #1201      +/-   ##
===============================================
+ Coverage        56.59%   56.65%   +0.06%     
===============================================
  Files              346      346              
  Lines            25658    25812     +154     
===============================================
+ Hits             14520    14625     +105     
- Misses           11138    11187      +49
Impacted Files Coverage Δ
dart/dynamics/MetaSkeleton.hpp 100% <ø> (ø) ⬆️
dart/dynamics/Branch.hpp 100% <ø> (ø) ⬆️
dart/dynamics/Linkage.hpp 100% <ø> (ø) ⬆️
dart/dynamics/Chain.hpp 100% <ø> (ø) ⬆️
dart/dynamics/Group.hpp 100% <ø> (ø) ⬆️
dart/dynamics/Skeleton.hpp 83.33% <ø> (ø) ⬆️
dart/dynamics/MetaSkeleton.cpp 46.13% <100%> (+0.29%) ⬆️
dart/simulation/World.cpp 72.79% <100%> (ø) ⬆️
dart/dynamics/Skeleton.cpp 66.08% <42.85%> (-0.23%) ⬇️
dart/dynamics/Chain.cpp 66.66% <54.34%> (+0.62%) ⬆️
... and 7 more

@jslee02 jslee02 merged commit 4359052 into release-6.7 Dec 17, 2018
@jslee02 jslee02 deleted the metaskeleton_clone branch December 17, 2018 08:04
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.

2 participants