From c22a2f85deb2cfdb0f2ebc4bf8a6c7c4fcebccd9 Mon Sep 17 00:00:00 2001 From: Dongya Jiang Date: Mon, 30 Oct 2023 19:08:30 +0800 Subject: [PATCH] [moveit_py] add missing constructor of CollisionResult Signed-off-by: Dongya Jiang --- .../moveit_core/collision_detection/collision_common.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moveit_py/src/moveit/moveit_core/collision_detection/collision_common.cpp b/moveit_py/src/moveit/moveit_core/collision_detection/collision_common.cpp index 29082f9b3f..6125fa71af 100644 --- a/moveit_py/src/moveit/moveit_core/collision_detection/collision_common.cpp +++ b/moveit_py/src/moveit/moveit_core/collision_detection/collision_common.cpp @@ -103,6 +103,9 @@ void initCollisionResult(py::module& m) py::class_(collision_detection, "CollisionResult", R"( Representation of a collision checking result. )") + + .def(py::init<>()) + .def_readwrite("collision", &collision_detection::CollisionResult::collision, R"( bool: True if collision was found, false otherwise.