Skip to content

Commit

Permalink
Merge pull request #649 from dartsim/grey/multidofjointaddon
Browse files Browse the repository at this point in the history
Make a default argument for MultiDofJointAddon
  • Loading branch information
jslee02 committed Mar 29, 2016
2 parents 878d3a4 + 3743eeb commit 836d16f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dart/dynamics/detail/MultiDofJointProperties.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ class MultiDofJointAddon final :
MultiDofJointAddon(const MultiDofJointAddon&) = delete;

MultiDofJointAddon(common::AddonManager* mgr,
const typename MultiDofJointAddon::PropertiesData& properties);
const typename MultiDofJointAddon::PropertiesData& properties =
typename MultiDofJointAddon::PropertiesData());

constexpr static size_t NumDofs = DOF;
using Vector = Eigen::Matrix<double, DOF, 1>;
Expand Down
3 changes: 3 additions & 0 deletions unittests/testAddon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,9 @@ TEST(Addon, Joints)
EXPECT_TRUE(usedSpecializedAddonAccess); usedSpecializedAddonAccess = false;
universal->getUniversalJointAddon();
EXPECT_TRUE(usedSpecializedAddonAccess); usedSpecializedAddonAccess = false;

// Regression test for issue #645
universal->getMultiDofJointAddon(true);
}

TEST(Addon, Duplication)
Expand Down

0 comments on commit 836d16f

Please sign in to comment.