mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
Add python binding for Task::insert
This commit is contained in:
parent
d1a6916206
commit
1002d84946
@ -440,6 +440,7 @@ void export_core(pybind11::module& m) {
|
|||||||
t.add(it->cast<Stage::pointer>());
|
t.add(it->cast<Stage::pointer>());
|
||||||
},
|
},
|
||||||
"Append stage(s) to the task's top-level container")
|
"Append stage(s) to the task's top-level container")
|
||||||
|
.def("insert", &Task::insert, "stage"_a, "before"_a = -1, "Insert stage before given index")
|
||||||
.def("__len__", [](const Task& t) { t.stages()->numChildren(); })
|
.def("__len__", [](const Task& t) { t.stages()->numChildren(); })
|
||||||
.def(
|
.def(
|
||||||
"__getitem__",
|
"__getitem__",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user