Skip to content

Commit

Permalink
Merge pull request #2 from damianliumin/main
Browse files Browse the repository at this point in the history
add python binding for getDependentGenCoordIndices (necessary for SoftMAC)
  • Loading branch information
LapUtopia authored Nov 23, 2023
2 parents c16b7d3 + e37ead6 commit 89c83cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/_nimblephysics/dynamics/BodyNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,11 @@ void BodyNode(py::module& m)
return self->getDependentGenCoordIndex(_arrayIndex);
},
::py::arg("arrayIndex"))
.def(
"getDependentGenCoordIndices",
+[](const dart::dynamics::BodyNode* self) -> const std::vector<std::size_t>& {
return self->getDependentGenCoordIndices();
})
.def(
"getNumDependentDofs",
+[](const dart::dynamics::BodyNode* self) -> std::size_t {
Expand Down

0 comments on commit 89c83cd

Please sign in to comment.