Skip to content

Commit fb5b2c8

Browse files
committed
[bindings]: constraint dimension as virtual
1 parent bbd94ea commit fb5b2c8

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

bindings/python/crocoddyl/core/action-base.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ struct ActionModelAbstractVisitor
9797
"number of inequality constraints")
9898
.def("get_ng", &Model::get_ng, &Model::default_get_ng,
9999
"Return the number of inequality constraints.")
100-
.add_property(
101-
"nh", bp::make_function(&Model::get_nh),
102-
bp::make_setter(&Model::nh_, bp::return_internal_reference<>()),
103-
"number of equality constraints")
100+
.add_property("nh", bp::make_function(&Model::get_nh),
101+
"number of equality constraints")
104102
.def("get_nh", &Model::get_nh, &Model::default_get_nh,
105103
"Return the number of equality constraints.")
106104
.add_property("ng_T", bp::make_function(&Model::get_ng_T),

bindings/python/crocoddyl/core/action-base.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,6 @@ class ActionModelAbstractTpl_wrap
176176
return ret;
177177
}
178178
};
179-
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(ActionModel_get_ng_wraps,
180-
ActionModelAbstract::get_ng, 0, 0)
181-
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(ActionModel_get_nh_wraps,
182-
ActionModelAbstract::get_nh, 0, 0)
183-
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(ActionModel_get_ng_T_wraps,
184-
ActionModelAbstract::get_ng_T, 0, 0)
185-
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(ActionModel_get_nh_T_wraps,
186-
ActionModelAbstract::get_nh_T, 0, 0)
187179

188180
} // namespace python
189181
} // namespace crocoddyl

0 commit comments

Comments
 (0)