From 5467a4651d11ee06263709b9d734e92c5d4e159c Mon Sep 17 00:00:00 2001 From: romi2002 Date: Fri, 28 Apr 2023 23:13:03 +0000 Subject: [PATCH 1/2] Fixed for ros2 --- CMakeLists.txt | 2 +- pybind11 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b28a2a4..2c446d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ FetchContent_MakeAvailable(googletest) find_package (Eigen3 3.3 REQUIRED NO_MODULE) set(PYBIND11_FINDPYTHON ON) -#find_package (Python3 COMPONENTS Interpreter Development) +find_package (Python3 COMPONENTS Interpreter Development) add_subdirectory(pybind11) set(CMAKE_CXX_STANDARD 17) diff --git a/pybind11 b/pybind11 index 0bd8896..ed466da 160000 --- a/pybind11 +++ b/pybind11 @@ -1 +1 @@ -Subproject commit 0bd8896a4010f2d91b2340570c24fa08606ec406 +Subproject commit ed466da571fbc1d711351eb818e4bf82adb99eca From f80e1a4163c2a70d9dbd908d704ee883b5e2db9c Mon Sep 17 00:00:00 2001 From: romi2002 Date: Mon, 8 May 2023 11:02:25 -0600 Subject: [PATCH 2/2] Added debug data to aitsmc --- python/python_bindings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/python_bindings.cpp b/python/python_bindings.cpp index 7c4c5ef..acf2859 100644 --- a/python/python_bindings.cpp +++ b/python/python_bindings.cpp @@ -177,5 +177,6 @@ PYBIND11_MODULE(usv_libs_py, m){ py::class_(controller, "AITSMC") .def(py::init()) .def("defaultParams", &AITSMC::defaultParams) - .def("update", &AITSMC::update); + .def("update", &AITSMC::update) + .def("getDebugData", &AITSMC::getDebugData); } \ No newline at end of file