Skip to content

Commit

Permalink
Merge pull request #1037 from robotology/swig/blf_simplification
Browse files Browse the repository at this point in the history
Enable implicit conversion and change KinDynComputations holder in the iDynTree bindings
  • Loading branch information
traversaro authored Dec 13, 2022
2 parents 2f296ae + 9be0778 commit d0e04fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added the possibility to set the alpha channel while loading a model in the meshcat visualizer (https://github.com/robotology/idyntree/pull/1033).
- Add the possibility to pass the list containing the mesh path while building the model (https://github.com/robotology/idyntree/pull/1036).
- Enable implicit conversion and change KinDynComputations holder in the iDynTree bindings (https://github.com/robotology/idyntree/pull/1037).

## [7.0.0] - 2022-08-31

Expand Down
11 changes: 11 additions & 0 deletions bindings/iDynTree.i
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@

/* File : iDynTree.i */
%module iDynTree
#ifdef SWIGPYTHON
%implicitconv;
#endif

%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 @@ -298,6 +306,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 d0e04fb

Please sign in to comment.