Skip to content

Commit

Permalink
disable explicit instantiation of inverse dynamics on autodiffxd. (#5366
Browse files Browse the repository at this point in the history
)

* disable explicit instantiation of inverse dynamics on autodiffxd.

* aljendro said to remove RBT template on autodiff all together because
that was incomplete work, and causes confusion.
  • Loading branch information
siyuanfeng-tri authored and jwnimmer-tri committed Mar 1, 2017
1 parent 83b879e commit f161b1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
15 changes: 0 additions & 15 deletions drake/multibody/rigid_body_tree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3502,16 +3502,6 @@ RigidBodyTree<double>::inverseDynamics<double>(
Eigen::aligned_allocator<pair<RigidBody<double> const* const,
WrenchVector<double>>>> const&,
VectorX<double> const&, bool) const;
template VectorX<AutoDiffXd>
RigidBodyTree<AutoDiffXd>::inverseDynamics<AutoDiffXd>(
KinematicsCache<AutoDiffXd>&,
unordered_map<RigidBody<AutoDiffXd> const*, TwistVector<AutoDiffXd>,
hash<RigidBody<AutoDiffXd> const*>,
equal_to<RigidBody<AutoDiffXd> const*>,
Eigen::aligned_allocator<pair<
RigidBody<AutoDiffXd> const* const,
TwistVector<AutoDiffXd>>>> const&,
VectorX<AutoDiffXd> const&, bool) const;

// Explicit template instantiations for jointLimitConstraints.
template void RigidBodyTree<double>::jointLimitConstraints<
Expand Down Expand Up @@ -3739,10 +3729,6 @@ template KinematicsCache<double>
RigidBodyTree<double>::doKinematics(
Eigen::MatrixBase<Eigen::Map<VectorXd const>> const&,
Eigen::MatrixBase<Eigen::Map<VectorXd const>> const&, bool) const;
template KinematicsCache<AutoDiffXd>
RigidBodyTree<AutoDiffXd>::doKinematics(
Eigen::MatrixBase<VectorX<AutoDiffXd>> const&,
Eigen::MatrixBase<VectorX<AutoDiffXd>> const&, bool) const;

// Explicit template instantiations for parseBodyOrFrameID.
template int RigidBodyTree<double>::parseBodyOrFrameID(
Expand All @@ -3759,4 +3745,3 @@ RigidBodyTree<double>::CreateKinematicsCacheWithType<AutoDiffUpTo73d>() const;

// Explicitly instantiates on the most common scalar types.
template class RigidBodyTree<double>;
template class RigidBodyTree<AutoDiffXd>;
3 changes: 2 additions & 1 deletion drake/systems/controllers/inverse_dynamics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ void InverseDynamics<T>::DoCalcOutput(const Context<T>& context,
}

template class InverseDynamics<double>;
template class InverseDynamics<AutoDiffXd>;
// TODO(siyuan): some linking issue on mac.
// template class InverseDynamics<AutoDiffXd>;

} // namespace systems
} // namespace drake

0 comments on commit f161b1a

Please sign in to comment.