Verified Commit b1bc6cdd authored by Justin Carpentier's avatar Justin Carpentier
Browse files

model: remove deprecated getJointName method

parent 00e5b7c3
...@@ -465,16 +465,6 @@ namespace pinocchio ...@@ -465,16 +465,6 @@ namespace pinocchio
/// \return True if the joint exists in the kinematic tree. /// \return True if the joint exists in the kinematic tree.
/// ///
bool existJointName(const std::string & name) const; bool existJointName(const std::string & name) const;
///
/// \brief Get the name of a joint given by its index.
///
/// \param[in] index Index of the joint.
///
/// \return Name of the joint.
///
PINOCCHIO_DEPRECATED
const std::string & getJointName(const JointIndex index) const;
/// ///
/// \brief Returns the index of a frame given by its name. /// \brief Returns the index of a frame given by its name.
......
...@@ -224,15 +224,6 @@ namespace pinocchio ...@@ -224,15 +224,6 @@ namespace pinocchio
return (names.end() != std::find(names.begin(),names.end(),name)); return (names.end() != std::find(names.begin(),names.end(),name));
} }
template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
inline const std::string &
ModelTpl<Scalar,Options,JointCollectionTpl>::
getJointName(const JointIndex index) const
{
assert( index < (ModelTpl::JointIndex)joints.size() );
return names[index];
}
template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl> template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
inline typename ModelTpl<Scalar,Options,JointCollectionTpl>::FrameIndex inline typename ModelTpl<Scalar,Options,JointCollectionTpl>::FrameIndex
ModelTpl<Scalar,Options,JointCollectionTpl>:: ModelTpl<Scalar,Options,JointCollectionTpl>::
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment