From 09019d277993a4d2b9a2d48ea99110c27b8e70a6 Mon Sep 17 00:00:00 2001 From: Dongya Jiang <1983534+patrickKXMD@users.noreply.github.com> Date: Tue, 31 Oct 2023 22:36:18 +0800 Subject: [PATCH] [moveit_py] add missing constructor of CollisionResult (#2500) Signed-off-by: Dongya Jiang Co-authored-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.