Skip to content

Commit ad9a8a1

Browse files
committed
[py] Remove binding of deprecated BoxedLcpConstraintSolver constructor
1 parent d2f56b4 commit ad9a8a1

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

dart/constraint/BoxedLcpConstraintSolver.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class BoxedLcpConstraintSolver : public ConstraintSolver
6161
BoxedLcpSolverPtr boxedLcpSolver = nullptr,
6262
BoxedLcpSolverPtr secondaryBoxedLcpSolver = nullptr);
6363

64-
/// Constructos with default primary and secondary LCP solvers, which are
64+
/// Constructs with default primary and secondary LCP solvers, which are
6565
/// Dantzig and PGS, respectively.
6666
BoxedLcpConstraintSolver();
6767

python/dartpy/constraint/BoxedLcpConstraintSolver.cpp

+15-10
Original file line numberDiff line numberDiff line change
@@ -42,26 +42,31 @@ namespace python {
4242
void BoxedLcpConstraintSolver(py::module& m)
4343
{
4444
::py::class_<
45-
dart::constraint::BoxedLcpConstraintSolver,
46-
dart::constraint::ConstraintSolver,
47-
std::shared_ptr<dart::constraint::BoxedLcpConstraintSolver>>(
45+
constraint::BoxedLcpConstraintSolver,
46+
constraint::ConstraintSolver,
47+
std::shared_ptr<constraint::BoxedLcpConstraintSolver>>(
4848
m, "BoxedLcpConstraintSolver")
49-
.def(::py::init<double>(), ::py::arg("timeStep"))
49+
.def(::py::init<>())
5050
.def(
51-
::py::init<double, dart::constraint::BoxedLcpSolverPtr>(),
52-
::py::arg("timeStep"),
51+
::py::init<constraint::BoxedLcpSolverPtr>(),
5352
::py::arg("boxedLcpSolver"))
53+
.def(
54+
::py::init<
55+
constraint::BoxedLcpSolverPtr,
56+
constraint::BoxedLcpSolverPtr>(),
57+
::py::arg("boxedLcpSolver"),
58+
::py::arg("secondaryBoxedLcpSolver"))
5459
.def(
5560
"setBoxedLcpSolver",
56-
+[](dart::constraint::BoxedLcpConstraintSolver* self,
57-
dart::constraint::BoxedLcpSolverPtr lcpSolver) {
61+
+[](constraint::BoxedLcpConstraintSolver* self,
62+
constraint::BoxedLcpSolverPtr lcpSolver) {
5863
self->setBoxedLcpSolver(lcpSolver);
5964
},
6065
::py::arg("lcpSolver"))
6166
.def(
6267
"getBoxedLcpSolver",
63-
+[](const dart::constraint::BoxedLcpConstraintSolver* self)
64-
-> dart::constraint::ConstBoxedLcpSolverPtr {
68+
+[](const constraint::BoxedLcpConstraintSolver* self)
69+
-> constraint::ConstBoxedLcpSolverPtr {
6570
return self->getBoxedLcpSolver();
6671
});
6772
}

0 commit comments

Comments
 (0)