Skip to content

Commit

Permalink
Fix python wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Dec 3, 2023
1 parent 6dd5207 commit 25ee001
Show file tree
Hide file tree
Showing 15 changed files with 813 additions and 1,059 deletions.
3 changes: 2 additions & 1 deletion python/all_mrpt_math1.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#include "src/mrpt/math/CAtan2LookUpTable.cpp"
#include "src/mrpt/math/CMatrixB.cpp"
#include "src/mrpt/math/CMatrixDynamic_2.cpp"
#include "src/mrpt/math/CMatrixDynamic_1.cpp"
#include "src/mrpt/math/CMatrixDynamic.cpp"
#include "src/mrpt/math/CMatrixF.cpp"
#include "src/mrpt/math/CMatrixFixed_1.cpp"
#include "src/mrpt/math/CMatrixFixed_2.cpp"
#include "src/mrpt/math/CMatrixFixed_3.cpp"
#include "src/mrpt/math/CMatrixFixed_4.cpp"
#include "src/mrpt/math/CMatrixFixed.cpp"
#include "src/mrpt/math/MatrixVectorBase.cpp"
#include "src/mrpt/math/CPolygon.cpp"
331 changes: 0 additions & 331 deletions python/patch-003.diff

Large diffs are not rendered by default.

390 changes: 303 additions & 87 deletions python/patch-004.diff

Large diffs are not rendered by default.

64 changes: 6 additions & 58 deletions python/patch-012.diff

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions python/python.conf
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
-class mrpt::math::MatrixBase<double,mrpt::math::CMatrixFixed<double, 7, 7>>
-class mrpt::math::MatrixBase<unsigned char,mrpt::math::CMatrixDynamic<unsigned char>>
-class mrpt::math::MatrixBase<unsigned short,mrpt::math::CMatrixDynamic<unsigned short>>
-class mrpt::math::MatrixBase<mrpt::math::TPoint3D_<float>,mrpt::math::CMatrixDynamic<mrpt::math::TPoint3D_<float> >>
-class mrpt::math::MatrixBase<float,mrpt::math::CMatrixDynamic<float>>
-class mrpt::math::MatrixBase<float,mrpt::math::CMatrixFixed<float, 3, 1>>
-class mrpt::math::MatrixBase<float,mrpt::math::CMatrixFixed<float, 3, 3>>
Expand All @@ -232,6 +233,7 @@
-class mrpt::math::MatrixVectorBase<float,mrpt::math::CMatrixFixed<float, 3, 1>>
-class mrpt::math::MatrixVectorBase<float,mrpt::math::CMatrixFixed<float, 4, 1>>
-class mrpt::math::MatrixVectorBase<unsigned char,mrpt::math::CMatrixDynamic<unsigned char>>
-class mrpt::math::MatrixVectorBase<mrpt::math::TPoint3D_<float>,mrpt::math::CMatrixDynamic<mrpt::math::TPoint3D_<float> >>
-class mrpt::math::MatrixVectorBase<double,mrpt::math::CMatrixFixed<double, 2, 2>>
-class mrpt::math::MatrixVectorBase<double,mrpt::math::CMatrixFixed<double, 7, 7>>
-class mrpt::math::MatrixVectorBase<double,mrpt::math::CMatrixDynamic<double>>
Expand Down
132 changes: 68 additions & 64 deletions python/src/mrpt/math/CMatrixDynamic_1.cpp

Large diffs are not rendered by default.

168 changes: 168 additions & 0 deletions python/src/mrpt/math/CMatrixDynamic_2.cpp

Large diffs are not rendered by default.

128 changes: 63 additions & 65 deletions python/src/mrpt/math/CMatrixFixed.cpp

Large diffs are not rendered by default.

115 changes: 51 additions & 64 deletions python/src/mrpt/math/CMatrixFixed_1.cpp

Large diffs are not rendered by default.

113 changes: 62 additions & 51 deletions python/src/mrpt/math/CMatrixFixed_2.cpp

Large diffs are not rendered by default.

125 changes: 62 additions & 63 deletions python/src/mrpt/math/CMatrixFixed_3.cpp

Large diffs are not rendered by default.

196 changes: 0 additions & 196 deletions python/src/mrpt/math/CMatrixFixed_4.cpp

This file was deleted.

66 changes: 8 additions & 58 deletions python/src/mrpt/math/MatrixVectorBase.cpp

Large diffs are not rendered by default.

26 changes: 12 additions & 14 deletions python/src/pymrpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,12 @@ void bind_mrpt_obs_CObservationStereoImages(std::function< pybind11::module &(st
void bind_mrpt_vision_CStereoRectifyMap(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_hwdrivers_CDUO3DCamera(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixDynamic(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixDynamic_1(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixFixed(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixFixed_1(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixFixed_2(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixFixed_3(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_MatrixVectorBase(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_MatrixBase(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_math_frwds(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_bayes_CProbabilityParticle_1(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixF(std::function< pybind11::module &(std::string const &namespace_) > &M);
Expand Down Expand Up @@ -230,12 +234,7 @@ void bind_mrpt_kinematics_CKinematicChain(std::function< pybind11::module &(std:
void bind_mrpt_kinematics_CVehicleVelCmd(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_kinematics_CVehicleVelCmd_DiffDriven(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_poses_CPointPDF(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixDynamic_1(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixFixed(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixFixed_1(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixFixed_2(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixFixed_3(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixFixed_4(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_math_CMatrixDynamic_2(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_poses_CPointPDFSOG(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_maps_CBeacon(std::function< pybind11::module &(std::string const &namespace_) > &M);
void bind_mrpt_opengl_COctoMapVoxels(std::function< pybind11::module &(std::string const &namespace_) > &M);
Expand Down Expand Up @@ -608,8 +607,12 @@ PYBIND11_MODULE(pymrpt, root_module) {
bind_mrpt_vision_CStereoRectifyMap(M);
bind_mrpt_hwdrivers_CDUO3DCamera(M);
bind_mrpt_math_CMatrixDynamic(M);
bind_mrpt_math_CMatrixDynamic_1(M);
bind_mrpt_math_CMatrixFixed(M);
bind_mrpt_math_CMatrixFixed_1(M);
bind_mrpt_math_CMatrixFixed_2(M);
bind_mrpt_math_CMatrixFixed_3(M);
bind_mrpt_math_MatrixVectorBase(M);
bind_mrpt_math_MatrixBase(M);
bind_mrpt_math_math_frwds(M);
bind_mrpt_bayes_CProbabilityParticle_1(M);
bind_mrpt_math_CMatrixF(M);
Expand Down Expand Up @@ -661,12 +664,7 @@ PYBIND11_MODULE(pymrpt, root_module) {
bind_mrpt_kinematics_CVehicleVelCmd(M);
bind_mrpt_kinematics_CVehicleVelCmd_DiffDriven(M);
bind_mrpt_poses_CPointPDF(M);
bind_mrpt_math_CMatrixDynamic_1(M);
bind_mrpt_math_CMatrixFixed(M);
bind_mrpt_math_CMatrixFixed_1(M);
bind_mrpt_math_CMatrixFixed_2(M);
bind_mrpt_math_CMatrixFixed_3(M);
bind_mrpt_math_CMatrixFixed_4(M);
bind_mrpt_math_CMatrixDynamic_2(M);
bind_mrpt_poses_CPointPDFSOG(M);
bind_mrpt_maps_CBeacon(M);
bind_mrpt_opengl_COctoMapVoxels(M);
Expand Down
13 changes: 6 additions & 7 deletions python/src/pymrpt.sources
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,12 @@ mrpt/obs/CObservationStereoImages.cpp
mrpt/vision/CStereoRectifyMap.cpp
mrpt/hwdrivers/CDUO3DCamera.cpp
mrpt/math/CMatrixDynamic.cpp
mrpt/math/CMatrixDynamic_1.cpp
mrpt/math/CMatrixFixed.cpp
mrpt/math/CMatrixFixed_1.cpp
mrpt/math/CMatrixFixed_2.cpp
mrpt/math/CMatrixFixed_3.cpp
mrpt/math/MatrixVectorBase.cpp
mrpt/math/MatrixBase.cpp
mrpt/math/math_frwds.cpp
mrpt/bayes/CProbabilityParticle_1.cpp
mrpt/math/CMatrixF.cpp
Expand Down Expand Up @@ -220,12 +224,7 @@ mrpt/kinematics/CKinematicChain.cpp
mrpt/kinematics/CVehicleVelCmd.cpp
mrpt/kinematics/CVehicleVelCmd_DiffDriven.cpp
mrpt/poses/CPointPDF.cpp
mrpt/math/CMatrixDynamic_1.cpp
mrpt/math/CMatrixFixed.cpp
mrpt/math/CMatrixFixed_1.cpp
mrpt/math/CMatrixFixed_2.cpp
mrpt/math/CMatrixFixed_3.cpp
mrpt/math/CMatrixFixed_4.cpp
mrpt/math/CMatrixDynamic_2.cpp
mrpt/poses/CPointPDFSOG.cpp
mrpt/maps/CBeacon.cpp
mrpt/opengl/COctoMapVoxels.cpp
Expand Down

0 comments on commit 25ee001

Please sign in to comment.