Skip to content

Commit

Permalink
Minor update in EmptyContact::updateGlobalVertices
Browse files Browse the repository at this point in the history
- Add Doxygen comments
- Avoid "unused parameter" warnings with keeping Doxygen comments
  • Loading branch information
mmurooka committed Apr 13, 2024
1 parent 4c27024 commit 47495cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/ForceColl/Contact.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,11 @@ class EmptyContact : public Contact
return "Empty";
}

/** \brief Do nothing because EmptyContact does not have any vertices. */
inline virtual void updateGlobalVertices(const sva::PTransformd & pose) override {}
/** \brief Update graspMat_ and vertexWithRidgeList_ according to the input pose.
Do nothing because EmptyContact does not have any vertices.
*/
virtual void updateGlobalVertices(const sva::PTransformd & pose) override;
};

/** \brief Surface contact. */
Expand Down
5 changes: 5 additions & 0 deletions src/Contact.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ EmptyContact::EmptyContact(const mc_rtc::Configuration & mcRtcConfig)
{
}

void EmptyContact::updateGlobalVertices(const sva::PTransformd & // pose
)
{
}

void SurfaceContact::loadVerticesMap(const mc_rtc::Configuration & mcRtcConfig)
{
for(const auto & verticesConfig : mcRtcConfig)
Expand Down

0 comments on commit 47495cf

Please sign in to comment.