Search found 32 matches

by Hao Lee
Sun May 07, 2023 6:22 pm
Forum: OpenSim
Topic: Cannot solve BodyKinematics if I replace one ball joint with free joint
Replies: 1
Views: 394

Cannot solve BodyKinematics if I replace one ball joint with free joint

Hi all I am trying to solve the position and velocity of each body in my model from the inverse kinematic data I got. While opensim can solve IK easily, if I use the IK results to run the Analyze tool to get BodyKinematics, it crashes. After digging into the problem, I found if I just replace the "f...
by Hao Lee
Fri Mar 03, 2023 10:52 pm
Forum: OpenSim
Topic: Static TRC works on IK but cannot scale model
Replies: 0
Views: 227

Static TRC works on IK but cannot scale model

I am currently working on scaling model with static motion capture data. The model I am using is human_only.osim However, opensim seems cannot load the trc file correctly, it basically shows the marker data cannot be found. https://imgur.com/rQ2zibl Yet, the same trc file static_capture.trc.txt can ...
by Hao Lee
Sun Feb 05, 2023 5:41 pm
Forum: OpenSim
Topic: Cannot visualize ground reaction force
Replies: 2
Views: 648

Re: Cannot visualize ground reaction force

That is the issue!!!! Thank you. I wonder if it is possible to signify the unit's restriction in the documentation. Units are S.I. units (second, meters, Newtons, ...) Angles are in degrees. Are these headers interpretable to OpenSim? Like in trc files, it seems OpenSim can load the unit "mm". If no...
by Hao Lee
Sat Feb 04, 2023 1:57 am
Forum: OpenSim
Topic: Cannot visualize ground reaction force
Replies: 2
Views: 648

Cannot visualize ground reaction force

Dear all I am currently working visualizing the ground reaction force with the inverse kinematic data I collected from a vicon motion capture system. While the inverse kinematic result seems fair, I cannot associate the ground reaction force with it. To be more precise, the software does not error o...
by Hao Lee
Sun Jan 15, 2023 7:26 pm
Forum: OpenSim
Topic: Parallel/Symmetric mechanism in opensim?
Replies: 0
Views: 223

Parallel/Symmetric mechanism in opensim?

Hi community I am trying to build a model with symmetric mechanisms. However, I wonder if opensim can solve the inverse kinematic, or even the inverse dynamics. The model is created with the model "gait2392_simbody_scaled.osim" and the following script: import opensim as osim import sys # sys.path.a...
by Hao Lee
Sun Jan 15, 2023 2:57 am
Forum: OpenSim
Topic: Retrieve joint from model in python
Replies: 1
Views: 285

Retrieve joint from model in python

Hi everyone I am kind of new in using OpenSim in python. I wonder how can I get the joint, muscles, etc from an existing model. For instance import opensim as osim model = osim.Model('model_path.osim') Does there exist any function like GetJoint? Currently I found getJointList(), but it only returns...
by Hao Lee
Thu Mar 03, 2022 2:57 pm
Forum: OpenSim
Topic: Cannot perform any tasks on WristModel
Replies: 1
Views: 289

Cannot perform any tasks on WristModel

Hi all I am using the wristModel that comes with opensim. Currently, I am doing static optimization by giving some joint trajectories. However, it always stuck and gives me the error code: Loaded model Wrist_Model from file G:\My Drive\Course\Bionics System\Final Project\Model\wrist.osim Storage: re...
by Hao Lee
Thu Jul 13, 2017 10:59 am
Forum: OpenSim
Topic: Free joint makes state.getNY() return extra state!
Replies: 3
Views: 336

Re: Free joint makes state.getNY() return extra state!

Dear Tom I am confused about the 4th component. I understand euler angle will face singularity such as Gimbal lock, and the common way to solve it is changing the order of euler sequence. So what is the 4th coordinate doing here? Does that mean an extra rotation? Like x->y->z->x (which solves Gimbal...
by Hao Lee
Wed Jul 12, 2017 8:26 pm
Forum: OpenSim
Topic: Free joint makes state.getNY() return extra state!
Replies: 3
Views: 336

Free joint makes state.getNY() return extra state!

I am currently modified the model in "DynamicWalkingStarter", I replace the joint between pelvis and floor with a free joint. (original is 2 slider joints, which limits the DOF) The model I modified is this provided in the link below https://drive.google.com/file/d/0B4Av76wR2DjRZ2lGM2Z2OHFkaGs/view?...
by Hao Lee
Tue Jul 11, 2017 5:14 pm
Forum: OpenSim
Topic: Lock coordinate while creating the model
Replies: 11
Views: 1021

Lock coordinate while creating the model

I am modifying the DynamicWalkingStarter to more degree of freedom. I add a FreeJoint in the model, but only want it to have 3 DOF. I try to call the "setLocked" in my matlab code but failed to execute it. Part of code is shown as below (without setLocked since it failed, now I set the range to 0 bu...