Skip to content

Commit

Permalink
Change the KinDynComputation holder to std::shared_ptr in swig bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi committed Dec 13, 2022
1 parent b513ebd commit 44f1569
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/iDynTree.i
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

%include "std_string.i"
%include "std_vector.i"
%include "std_shared_ptr.i"

// Wrap the std::vector<std::string> params
%template(StringVector) std::vector<std::string>;
Expand Down Expand Up @@ -300,6 +301,7 @@ namespace std {
%include "iDynTree/InertialParametersSolidShapesHelpers.h"

// High level interfaces
%shared_ptr(iDynTree::KinDynComputations)
%include "iDynTree/KinDynComputations.h"

#ifdef SWIGMATLAB
Expand Down

0 comments on commit 44f1569

Please sign in to comment.