Skip to content

Commit 84cb880

Browse files
committed
Add python binding for ModifyPlanningScene::allowCollisions(std::string, bool)
1 parent 1002d84 commit 84cb880

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/python/bindings/src/stages.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ void export_stages(pybind11::module& m) {
105105
const std::string& attach_link) {
106106
self.attachObjects(elementOrList<std::string>(names), attach_link, false);
107107
}, "Detach multiple objects from a robot link", "names"_a, "attach_link"_a)
108+
.def("allowCollisions", [](ModifyPlanningScene& self, const std::string& object, bool allow) {self.allowCollisions(object, allow);},
109+
"Allow or disable all collisions involving the given object", "object"_a, "enable_collision"_a = true)
108110
.def("allowCollisions", [](ModifyPlanningScene& self,
109111
const py::object& first, const py::object& second, bool enable_collision) {
110112
self.allowCollisions(elementOrList<std::string>(first), elementOrList<std::string>(second), enable_collision);

0 commit comments

Comments
 (0)