Skip to content

Commit

Permalink
Upgrading the heuristic for detecting feet on uploaded OpenSim models
Browse files Browse the repository at this point in the history
  • Loading branch information
keenon committed Jul 13, 2022
1 parent ea5399e commit 6397871
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.10
0.8.11
5 changes: 4 additions & 1 deletion dart/biomechanics/OpenSimParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,10 @@ void OpenSimParser::saveOsimInverseDynamicsForcesXMLFile(
for (int i = 0; i < skel->getNumBodyNodes(); i++)
{
std::string bodyName = skel->getBodyNode(i)->getName();
if (bodyName.find("calcn") != std::string::npos)
if (bodyName.find("calcn") != std::string::npos
|| bodyName.find("Foot") != std::string::npos
|| bodyName.find("foot") != std::string::npos
|| bodyName.find("talus") != std::string::npos)
{
footBodyNames.push_back(bodyName);
}
Expand Down

0 comments on commit 6397871

Please sign in to comment.