Skip to content

Commit ea7c00e

Browse files
committed
robot-handler.hpp : fix return type of getReferenceStte()
1 parent 4a69f52 commit ea7c00e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bindings/expose-robot-handler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace simple_mpc
2828
.def("difference", &RobotModelHandler::difference)
2929
.def("shapeState", &RobotModelHandler::shapeState)
3030
.def("getBaseFrameId", &RobotModelHandler::getBaseFrameId)
31-
.def("getReferenceState", &RobotModelHandler::getReferenceState, bp::return_internal_reference<>())
31+
.def("getReferenceState", &RobotModelHandler::getReferenceState)
3232
.def("getFootNb", &RobotModelHandler::getFootNb)
3333
.def("getFeetIds", &RobotModelHandler::getFeetIds, bp::return_internal_reference<>())
3434
.def("getFootName", &RobotModelHandler::getFootName, bp::return_internal_reference<>())

include/simple-mpc/robot-handler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ namespace simple_mpc
124124
Eigen::VectorXd shapeState(const ConstVectorRef & q, const ConstVectorRef & v) const;
125125

126126
// Const getters
127-
const ConstVectorRef & getReferenceState() const
127+
ConstVectorRef getReferenceState() const
128128
{
129129
return reference_state_;
130130
}

0 commit comments

Comments
 (0)