Skip to content

Commit

Permalink
Enable std::shared_ptr holder only for python bindigs
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi committed Dec 13, 2022
1 parent c9e5095 commit e74239d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bindings/iDynTree.i
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

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

// std::shared_ptr holder is currently supported only for python bindings
#ifdef SWIGPYTHON
%include "std_shared_ptr.i"
#endif

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

// High level interfaces
#ifdef SWIGPYTHON
%shared_ptr(iDynTree::KinDynComputations)
#endif
%include "iDynTree/KinDynComputations.h"

#ifdef SWIGMATLAB
Expand Down

0 comments on commit e74239d

Please sign in to comment.