Skip to content

Commit ad2deeb

Browse files
committed
add bindings for eigen/map conversion functions
1 parent 8b68dee commit ad2deeb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

python/pyxbot2_interface.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ PYBIND11_MODULE(pyxbot2_interface, m) {
8787
&XBotInterface::getQIndexFromQName)
8888
.def("getVIndexFromVName",
8989
&XBotInterface::getVIndexFromVName)
90+
.def("qToMap",
91+
py::overload_cast<VecConstRef>(&XBotInterface::qToMap, py::const_))
92+
.def("vToMap",
93+
py::overload_cast<VecConstRef>(&XBotInterface::vToMap, py::const_))
94+
.def("mapToQ",
95+
py::overload_cast<const JointNameMap&>(&XBotInterface::mapToQ, py::const_))
96+
.def("mapToV",
97+
py::overload_cast<const JointNameMap&>(&XBotInterface::mapToV, py::const_))
9098
.def("getJointLimits",
9199
py::overload_cast<>(&XBotInterface::getJointLimits, py::const_))
92100
.def("getVelocityLimits",

0 commit comments

Comments
 (0)