OpenSim IMUInverseKinematicsTool with IMU data
Posted: Wed Oct 07, 2020 11:09 am
Dear all,
Unfortunately, I receive an error when calling the function opensim.IMUInverseKinematicsTool().set_base_imu_label() and opensim.IMUInverseKinematicsTool().set_base_heading_axis() similar to the used settings when calibrating the OpenSim Model in Python by the use of the opensim.imuPlacer.set_base_imu_label() opensim.IMUInverseKinematicsTool().set_base_heading_axis().
The error:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/ajrleenen/PycharmProjects/opensim/import2opensim.py", line 149, in <module>
imuIK.set_base_imu_label(baseIMUName)
File "/Users/ajrleenen/PycharmProjects/opensim/venv/lib/python3.7/site-packages/opensim-4.1-py3.7.egg/opensim/simulation.py", line 72229, in <lambda>
__getattr__ = lambda self, name: _swig_getattr(self, IMUInverseKinematicsTool, name)
File "/Users/ajrleenen/PycharmProjects/opensim/venv/lib/python3.7/site-packages/opensim-4.1-py3.7.egg/opensim/simulation.py", line 80, in _swig_getattr
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
AttributeError: 'IMUInverseKinematicsTool' object has no attribute 'set_base_imu_label'
I have had a meeting with Ajay Seth, but unfortunately these functions are not available anymore in OpenSim 4.1, but I do need these for the orientation tracking in OpenSense.
Cheers! Ton
Unfortunately, I receive an error when calling the function opensim.IMUInverseKinematicsTool().set_base_imu_label() and opensim.IMUInverseKinematicsTool().set_base_heading_axis() similar to the used settings when calibrating the OpenSim Model in Python by the use of the opensim.imuPlacer.set_base_imu_label() opensim.IMUInverseKinematicsTool().set_base_heading_axis().
The error:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/ajrleenen/PycharmProjects/opensim/import2opensim.py", line 149, in <module>
imuIK.set_base_imu_label(baseIMUName)
File "/Users/ajrleenen/PycharmProjects/opensim/venv/lib/python3.7/site-packages/opensim-4.1-py3.7.egg/opensim/simulation.py", line 72229, in <lambda>
__getattr__ = lambda self, name: _swig_getattr(self, IMUInverseKinematicsTool, name)
File "/Users/ajrleenen/PycharmProjects/opensim/venv/lib/python3.7/site-packages/opensim-4.1-py3.7.egg/opensim/simulation.py", line 80, in _swig_getattr
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
AttributeError: 'IMUInverseKinematicsTool' object has no attribute 'set_base_imu_label'
I have had a meeting with Ajay Seth, but unfortunately these functions are not available anymore in OpenSim 4.1, but I do need these for the orientation tracking in OpenSense.
Cheers! Ton