Title: Issues Reading Movella Sensor Data in OpenSim
Posted: Thu Sep 12, 2024 2:00 pm
Hello everyone,
I'm trying to read data from the Movella sensor in OpenSim, but I've encountered an error that I can't resolve. When I run the following code, I receive the following error message:
Copiar
Index(['PacketCounter', 'SampleTimeFine', 'Acc_X', 'Acc_Y', 'Acc_Z', 'Gyr_X',
'Gyr_Y', 'Gyr_Z', 'Quat_W', 'Quat_X', 'Quat_Y', 'Quat_Z'],
dtype='object')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-35-a8123a3131fa> in <cell line: 11>()
18 # Create a RowVectorQuaternion and set the quaternion at position 0
19 row_vector = osim.RowVectorQuaternion(1)
---> 20 row_vector.set(0, quaternion)
21
22 # Append the time and row_vector to the TimeSeriesTableQuaternion
The traceback indicates that the RowVectorQuaternion object does not have a method named set. It's possible that this method was removed or renamed in a newer version of the OpenSim library, or there might be a typo in the method name.
Has anyone encountered a similar issue or know how I might resolve this? I appreciate any help or suggestions you can offer.
Thank you!
I'm trying to read data from the Movella sensor in OpenSim, but I've encountered an error that I can't resolve. When I run the following code, I receive the following error message:
Copiar
Index(['PacketCounter', 'SampleTimeFine', 'Acc_X', 'Acc_Y', 'Acc_Z', 'Gyr_X',
'Gyr_Y', 'Gyr_Z', 'Quat_W', 'Quat_X', 'Quat_Y', 'Quat_Z'],
dtype='object')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-35-a8123a3131fa> in <cell line: 11>()
18 # Create a RowVectorQuaternion and set the quaternion at position 0
19 row_vector = osim.RowVectorQuaternion(1)
---> 20 row_vector.set(0, quaternion)
21
22 # Append the time and row_vector to the TimeSeriesTableQuaternion
The traceback indicates that the RowVectorQuaternion object does not have a method named set. It's possible that this method was removed or renamed in a newer version of the OpenSim library, or there might be a typo in the method name.
Has anyone encountered a similar issue or know how I might resolve this? I appreciate any help or suggestions you can offer.
Thank you!