You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
High level: Importing MtbEffector causes calls to dynManager.setState to fail, likely due to a missing %include "swig_eigen.i" line in MtbEffector.i. This occurs whenever MtbEffector is imported, regardless of whether the module itself is called (perhaps another bug).
Low level: Importing MtbEffector seems to override other BSK modules that implement the dynamics engine (dynManager, stateObject, etc). In addition, MtbEffector.i lacks the call to SWIG that results in Eigen functions/datatypes being properly wrapped, leading to errors when MtbEffector is imported into code.
To reproduce
Steps to reproduce the behavior:
Add import MtbEffector to scenarioHohmann.py
Run the scenario normally
See error; described in additional detail in this discussion
Expected behavior
Manually setting states through the dynManager should work in sims that include MtbEffectors
Importing a module that isn't used shouldn't break other modules.
Desktop (please complete the following information):
Adding %include "swig_eigen.i" to MtbEffector.i` resolves this issue.
Someone should look into why the dynamics engine is re-swigged for every individual effector/dynamics related class, and whether this is necessary (lower priority).
The text was updated successfully, but these errors were encountered:
Describe the bug
High level: Importing
MtbEffector
causes calls todynManager.setState
to fail, likely due to a missing%include "swig_eigen.i"
line inMtbEffector.i
. This occurs whenever MtbEffector is imported, regardless of whether the module itself is called (perhaps another bug).Low level: Importing
MtbEffector
seems to override other BSK modules that implement the dynamics engine (dynManager
,stateObject
, etc). In addition,MtbEffector.i
lacks the call to SWIG that results in Eigen functions/datatypes being properly wrapped, leading to errors whenMtbEffector
is imported into code.To reproduce
Steps to reproduce the behavior:
import MtbEffector
toscenarioHohmann.py
Expected behavior
dynManager
should work in sims that includeMtbEffector
sDesktop (please complete the following information):
Additional context
%include "swig_eigen.i" to
MtbEffector.i` resolves this issue.The text was updated successfully, but these errors were encountered: