Detailed description |
|
Hello,
I am using python wrappers of opensim to build my models, and I have some issues while writing my scripts.
Indeed, I need to create some 'SimTK::Transform' for positioning geometries, and I need a 'SimTK::Rotation' and a 'SimTK::Vec3' to instantiate my class.
The problem is 'SimTK::Rotation' seems not to be available in the wrappers.
By searching in the source file "OpenSim/Wrapping/Python/swig/pyWrapOpenSim.i", it seems that <SWIGSimTK/Rotation.h> and <SWIGSimTK/CoordinateAxis.h> are never included.
If it is not made on purpose, I guess it is sufficient to add in "pyWrapOpenSim.i" something like:
"""
// Rotation
%include <SWIGSimTK/Rotation.h>
namespace SimTK {
%template(Rotation) SimTK::Rotation_<double>;
}
%include <SWIGSimTK/CoordinateAxis.h>
"""
Best regards, |
|