Skip to content

Commit

Permalink
progress with bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Apr 27, 2023
1 parent 1c46a33 commit a1b19a9
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 1 deletion.
1 change: 1 addition & 0 deletions libs/opengl/include/mrpt/opengl/CRenderizable.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <mrpt/opengl/DefaultShaders.h>
#include <mrpt/opengl/RenderQueue.h>
#include <mrpt/opengl/Shader.h>
#include <mrpt/opengl/TLightParameters.h>
#include <mrpt/opengl/TRenderMatrices.h>
#include <mrpt/opengl/opengl_fonts.h>
#include <mrpt/opengl/opengl_frwds.h>
Expand Down
10 changes: 10 additions & 0 deletions python/patch-003.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- generated-sources-pybind/mrpt/math/homog_matrices.cpp 2023-04-27 22:16:24.332489327 +0200
+++ generated-sources-pybind/mrpt/math/homog_matrices.cpp.new 2023-04-27 22:20:57.645944731 +0200
@@ -8,6 +8,7 @@
#include <string>
#include <pybind11/stl.h>

+#include <Eigen/Dense>

#ifndef BINDER_PYBIND11_TYPE_CASTER
#define BINDER_PYBIND11_TYPE_CASTER
11 changes: 11 additions & 0 deletions python/patch-004.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- generated-sources-pybind/mrpt/nav/reactive/CLogFileRecord.cpp 2023-04-27 22:22:25.333158055 +0200
+++ generated-sources-pybind/mrpt/nav/reactive/CLogFileRecord.cpp.new.cpp 2023-04-27 22:34:14.515135791 +0200
@@ -23,6 +23,8 @@
#include <string>
#include <pybind11/stl.h>

+#include <mrpt/opengl/CSetOfObjects.h>
+

#ifndef BINDER_PYBIND11_TYPE_CASTER
#define BINDER_PYBIND11_TYPE_CASTER
12 changes: 12 additions & 0 deletions python/patch-005.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- generated-sources-pybind/mrpt/obs/gnss_messages_type_list.cpp 2023-04-27 22:41:46.499949717 +0200
+++ generated-sources-pybind/mrpt/obs/gnss_messages_type_list.new.cpp 2023-04-27 22:41:37.404072257 +0200
@@ -21,6 +21,9 @@
#include <string>
#include <pybind11/stl.h>

+#include <mrpt/obs/gnss_messages.h>
+
+
#ifndef BINDER_PYBIND11_TYPE_CASTER
#define BINDER_PYBIND11_TYPE_CASTER
PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T>)
32 changes: 31 additions & 1 deletion python/python.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
# ---------------------------------------------------------------
# Configuration file for "binder".
# See generate-python.sh script in this same directory
#
# Jose Luis Blanco, 2023
# ---------------------------------------------------------------
#
#
# ---------------------------------------------------------------
# In general, wrap everything in mrpt that is in the includes:
# ---------------------------------------------------------------
+namespace mrpt
# externals:
#
# ---------------------------------------------------------------
# Except externals:
# ---------------------------------------------------------------
-namespace nanoflann
-namespace Eigen
#
# ---------------------------------------------------------------
# Plus STL:
# ---------------------------------------------------------------
+include <pybind11/stl.h>
#
# ---------------------------------------------------------------
# Minimize STL instances:
# ---------------------------------------------------------------
-class _IO_FILE
-class FILE
-class std::any
Expand All @@ -21,8 +40,12 @@
-class std::vector
-class tm
-namespace std::chrono
-class std::basic_istringstream
+class std::vector<std::string>
#
# ---------------------------------------------------------------
# Remove problematic parts:
# ---------------------------------------------------------------
-class mrpt::aligned_allocator_cpp11
-class mrpt::containers::NonCopiableData
-class mrpt::containers::PerThreadDataHolder
Expand Down Expand Up @@ -73,7 +96,14 @@
-namespace mrpt::io::internal
-namespace mrpt::math::internal
-namespace mrpt::opengl::internal
-class mrpt::nav::CAbstractNavigator::TNavigationParams
-function mrpt::obs::CActionCollection::getActionByClass
-class mrpt::opengl::Shader
-class mrpt::opengl::CRenderizable::RenderContext
#
# ---------------------------------------------------------------
# Redundant instantiations
# ---------------------------------------------------------------
-class mrpt::math::MatrixBase<float,mrpt::math::CMatrixDynamic<float>>
-class mrpt::math::MatrixBase<double,mrpt::math::CMatrixDynamic<double>>
-class mrpt::math::MatrixVectorBase<float,mrpt::math::CVectorDynamic<float>>
Expand Down

0 comments on commit a1b19a9

Please sign in to comment.