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

Ambiguous overload on MetaSkeleton::getLinearJacobianDeriv #626

Closed
mkoval opened this issue Mar 7, 2016 · 2 comments
Closed

Ambiguous overload on MetaSkeleton::getLinearJacobianDeriv #626

mkoval opened this issue Mar 7, 2016 · 2 comments
Milestone

Comments

@mkoval
Copy link
Collaborator

mkoval commented Mar 7, 2016

Both of these overloads match getLinearJacobianDeriv(const JacobianNode*):

  virtual math::LinearJacobian getLinearJacobianDeriv(
      const JacobianNode* _node,
      const Frame* _inCoordinatesOf = Frame::World()) const = 0;

  virtual math::LinearJacobian getLinearJacobianDeriv(
      const JacobianNode* _node,
      const Eigen::Vector3d& _localOffset = Eigen::Vector3d::Zero(),
      const Frame* _inCoordinatesOf = Frame::World()) const = 0;

Trying to call this overload produces a compile-time error. I suggest removing the default value on _inCoordinatesOf in the first overload to remove the ambiguity.

@mxgrey
Copy link
Member

mxgrey commented Mar 7, 2016

Thanks for reporting this. I disagree with your suggested fix, though. The better fix would be to remove the default argument for _localOffset, because the version that does not take in a local offset (the first one) is more efficient, so we should default to that one whenever possible.

I'm going to patch this up with a regression test right now.

mxgrey added a commit that referenced this issue Mar 7, 2016
jslee02 added a commit that referenced this issue Mar 7, 2016
@jslee02 jslee02 added this to the DART 6.0.0 milestone Mar 7, 2016
@jslee02
Copy link
Member

jslee02 commented Mar 7, 2016

I believe this is addressed by #628 .

@jslee02 jslee02 closed this as completed Mar 7, 2016
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

No branches or pull requests

3 participants