@@ -46,8 +46,24 @@ namespace simple_mpc
4646 " updateInternalData" , static_cast <void (RobotDataHandler::*)(const ConstVectorRef &, const bool )>(
4747 &RobotDataHandler::updateInternalData))
4848 .def (" updateJacobiansMassMatrix" , &RobotDataHandler::updateJacobiansMassMatrix)
49- // .def("getRefFootPose", &RobotDataHandler::getRefFootPose, bp::return_internal_reference<>())
50- // .def("getFootPose", &RobotDataHandler::getFootPose, bp::return_internal_reference<>())
49+ .def (
50+ " getRefFootPose" ,
51+ static_cast <const pinocchio::SE3 & (RobotDataHandler::*)(size_t ) const >(&RobotDataHandler::getRefFootPose),
52+ bp::return_internal_reference<>())
53+ .def (
54+ " getRefFootPoseByName" ,
55+ static_cast <const pinocchio::SE3 & (RobotDataHandler::*)(const std::string &) const >(
56+ &RobotDataHandler::getRefFootPose),
57+ bp::return_internal_reference<>())
58+ .def (
59+ " getFootPose" ,
60+ static_cast <const pinocchio::SE3 & (RobotDataHandler::*)(size_t ) const >(&RobotDataHandler::getFootPose),
61+ bp::return_internal_reference<>())
62+ .def (
63+ " getFootPoseByName" ,
64+ static_cast <const pinocchio::SE3 & (RobotDataHandler::*)(const std::string &) const >(
65+ &RobotDataHandler::getFootPose),
66+ bp::return_internal_reference<>())
5167 .def (" getBaseFramePose" , &RobotDataHandler::getBaseFramePose, bp::return_internal_reference<>())
5268 .def (" getModelHandler" , &RobotDataHandler::getModelHandler, bp::return_internal_reference<>())
5369 .def (" getData" , &RobotDataHandler::getData, bp::return_internal_reference<>())
0 commit comments