Skip to content

Commit

Permalink
Merge pull request #1169 from robotology/fixfakelinkdocs
Browse files Browse the repository at this point in the history
Uniform documentation of isFakeLink
  • Loading branch information
traversaro committed Apr 2, 2024
2 parents 7e029b9 + 4458dc7 commit 6062870
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/model/src/ModelTransformers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ namespace iDynTree
{

/**
* Check the condition for deciding if a model has a fake base link.
* The three conditions for a base link to be considered "fake" are:
* * if the base link is massless,
* * if the base link has only one child,
* * if the base link is attached to its only child with a fixed joint,
*
* The condition for a link to be classified as "fake link" are:
* * The link has a zero mass.
* * The link is a leaf, i.e. it is connected to only one neighbor.
* * The link is connected to its only neighbor with a fixed joint.
*/
bool isFakeLink(const Model& modelWithFakeLinks, const LinkIndex linkToCheck)
{
Expand Down

0 comments on commit 6062870

Please sign in to comment.