From dee73b2ddefd365fe173a83c48bcf8625684b349 Mon Sep 17 00:00:00 2001 From: VideoSystemsTech <61198558+VideoSystemsTech@users.noreply.github.com> Date: Tue, 16 May 2023 14:32:17 +0200 Subject: [PATCH] Expose argument of PipelinePlanner's constructor to Python (#462) --- core/python/bindings/src/solvers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/python/bindings/src/solvers.cpp b/core/python/bindings/src/solvers.cpp index e56c03eb..a1d3b405 100644 --- a/core/python/bindings/src/solvers.cpp +++ b/core/python/bindings/src/solvers.cpp @@ -39,6 +39,7 @@ #include namespace py = pybind11; +using namespace py::literals; using namespace moveit::task_constructor; using namespace moveit::task_constructor::solvers; @@ -79,7 +80,7 @@ void export_solvers(py::module& m) { .property("goal_orientation_tolerance", "float: Tolerance for reaching orientation goals") .property("display_motion_plans", "bool: Publish generated solutions via a topic") .property("publish_planning_requests", "bool: Publish motion planning requests via a topic") - .def(py::init<>()); + .def(py::init(), "pipeline"_a = std::string("ompl")); properties::class_( m, "JointInterpolationPlanner",