Search found 8 matches

by Arthur Matta
Wed Mar 22, 2023 2:10 pm
Forum: OpenSim
Topic: How to use TimeSeriesTableQuaternion.appendRow in python?
Replies: 7
Views: 923

Re: How to use TimeSeriesTableQuaternion.appendRow in python?

Hello @Thomas, I've tried your suggestion. Unfortunately, it didn't work :( import opensim as osim qrowvec = osim.RowVectorQuaternion(2) qrowvec.set(0, osim.Quaternion(1,0,0,0)) """ Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'RowVectorQuaternion' object ha...
by Arthur Matta
Wed Mar 22, 2023 2:30 am
Forum: OpenSim
Topic: How to use TimeSeriesTableQuaternion.appendRow in python?
Replies: 7
Views: 923

Re: How to use TimeSeriesTableQuaternion.appendRow in python?

Hello,

any update to my last question?

Best regards,
Arthur Matta
by Arthur Matta
Wed Mar 15, 2023 8:57 am
Forum: OpenSim
Topic: How to use TimeSeriesTableQuaternion.appendRow in python?
Replies: 7
Views: 923

Re: How to use TimeSeriesTableQuaternion.appendRow in python?

Hi, Following-up my last question. When doing qrowvec = osim.RowVectorQuaternion(2) qrowvec[0] = osim.Quaternion(...) I get the following error TypeError: 'RowVectorQuaternion' object does not support item assignment Also, my goal is to simulate an individual movement in real time using data collect...
by Arthur Matta
Thu Mar 09, 2023 8:05 am
Forum: OpenSim
Topic: How to use TimeSeriesTableQuaternion.appendRow in python?
Replies: 7
Views: 923

Re: How to use TimeSeriesTableQuaternion.appendRow in python?

Hi Nicholas,

Thank you, I'll adapt the code and give you some feedback.
by Arthur Matta
Fri Mar 03, 2023 3:59 pm
Forum: OpenSim
Topic: How to use TimeSeriesTableQuaternion.appendRow in python?
Replies: 7
Views: 923

How to use TimeSeriesTableQuaternion.appendRow in python?

Hello, For reference, I'm using Python 3.8 and OpenSim 4.4. Running the following code: import numpy as np import opensim as osim SAMPLE_DATA = np.array( [ [0, 0.9995429673603463, -0.008673246070566128, 0.02895804025163351, -0.0002512127741937707, 0.9988056889348111, 0.009225910844409206, 0.04797793...
by Arthur Matta
Tue Feb 14, 2023 5:10 am
Forum: OpenSim
Topic: Mirroring right arm to the left on scapulothoracic model
Replies: 3
Views: 521

Re: Mirroring right arm to the left on scapulothoracic model

Dear OpenSim community, My team is still facing issues mirroring the right side to the left on the scapulotoracic model. When dealing with flexio and elevation movements, the coordinates show, for the left side, double the value of the right side and inverted sign, respectively, e.g., right shoulder...
by Arthur Matta
Tue Jan 17, 2023 3:19 am
Forum: OpenSim
Topic: Adjust IMU orientation according to anotther IMU as reference
Replies: 1
Views: 354

Adjust IMU orientation according to anotther IMU as reference

Hello, I'm analysing an individual's movement using an upperbody model adapted from the scapulotoracic model. Using Inverse Kinematics everything works fine if the individual moves only the arms and shoulders, however, if the individual moves the torso, by inclining or rotating it, the movements bec...
by Arthur Matta
Tue Oct 04, 2022 9:01 am
Forum: OpenSim
Topic: Mirroring right arm to the left on scapulothoracic model
Replies: 3
Views: 521

Mirroring right arm to the left on scapulothoracic model

Hello, As a brief context, I'm developing an upper body model to record four movements: arm flexion, abduction and rotation, and shoulder elevation. The arms' movements are fine, but the shoulder elevation reports incorrect orientation values for the coordinates. When elevating the shoulder, I expec...