Skip to content

Commit

Permalink
add python binding for getDependentGenCoordIndices
Browse files Browse the repository at this point in the history
  • Loading branch information
damianliumin committed Nov 22, 2023
1 parent c16b7d3 commit e37ead6
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 e37ead6

Please sign in to comment.