Search found 135 matches

by Hide Kimpara
Mon May 13, 2024 8:30 am
Forum: OpenSim
Topic: getComponentList or getComponentsList
Replies: 2
Views: 605

Re: getComponentList or getComponentsList

Hi, Tom, Thank you for your suggestion and introducing an example to break down the ComponentsList. Now I can pickup the CoordinateActuator as following. comps = model.getComponentsList() for comp in comps: if 'CoordinateActuator' in comp.getClassName(): print(comp.getName()) Best, Hide
by Hide Kimpara
Sat May 11, 2024 9:48 am
Forum: OpenSim
Topic: getComponentList or getComponentsList
Replies: 2
Views: 605

getComponentList or getComponentsList

Dear experts, I have a trouble in calling component name list from Model class with Python and OpenSim 4.5. My osim model has CoordinateActuator under components branch. In Python, Model class indicates method candidates as getComponentsList. So, I tried to write as below: model.getComponentsList('C...
by Hide Kimpara
Wed May 01, 2024 12:07 am
Forum: OpenSim
Topic: Recreate Moco solution from osim, sto files of states and control
Replies: 3
Views: 1262

Re: Recreate Moco solution from osim, sto files of states and control

Thank you, Nick! createFromStatesControlsTables works for me. (I also tried insertStatesTrajectory with MocoTrajectory, but only state labels are registered without matrix part) single_state = osim.TimeSeriesTable('gaitTracking_solution_singleStride_states.sto') single_contl = osim.TimeSeriesTable('...
by Hide Kimpara
Thu Apr 25, 2024 7:01 am
Forum: OpenSim
Topic: Recreate Moco solution from osim, sto files of states and control
Replies: 3
Views: 1262

Recreate Moco solution from osim, sto files of states and control

Dear experts of OpenSim and Moco, I'm learning OpenSim MOCO with the latest OpenSim. I'm interested in predicting gait motions using a osim model with contact bodies. I found an example of 2Dwalking and examing it in Python environment. Then I have a question. This sample creates gaitTrackingSolutio...
by Hide Kimpara
Sun Dec 11, 2022 9:05 pm
Forum: OpenSim
Topic: coordinate systems of IMUDataReporter
Replies: 0
Views: 152

coordinate systems of IMUDataReporter

Hello, I used IMUDataReporter with IMU component objects on an Osim model. Then, I earned three sto outputs as [*_angular_velocity.sto], [*_linear_accelerations.sto], and [*_orientations.sto]. But I realized those sto data are written on the global coordinate systems. Is it possible to generate angu...
by Hide Kimpara
Sat Aug 14, 2021 7:55 am
Forum: OpenSim
Topic: meaning of variable from getLinearAccelerationInGround
Replies: 0
Views: 175

meaning of variable from getLinearAccelerationInGround

Dear Experts, It was long time silence in this forum. I restarted to use the OpenSim in recent. I have a question about "getLinearAccelerationInGround". Body acceleration data are available in Analysis Tool of GUI software. However, in order to simulate outputs of accelerometers on the body during m...
by Hide Kimpara
Tue Aug 03, 2021 1:57 am
Forum: OpenSim
Topic: Adding an accelerometer to the femur
Replies: 7
Views: 852

Re: Adding an accelerometer to the femur

Hello, I'm also seeking a method to obtain accelerometer data from model kinematics. When I use Analysis Tool to get acceleration data of body kinematics, it does not contain gravity acceleration. It is exact 'kinematics' acceleration. Is there any methods to get accelerometer outputs from Analysis ...
by Hide Kimpara
Sat Jun 06, 2020 8:44 am
Forum: OpenSim
Topic: Is GRF-option needed for Analysis tool with CMC state data?
Replies: 1
Views: 265

Is GRF-option needed for Analysis tool with CMC state data?

Hello, I'm wondering to add GRF option on Analysis tool. I proceeded RMA and CMC analysis for some gate analysis with GRF data. During RMA and CMC analysis, I always added GRF data. However, should I add GRF data during Analysis tool? CMC state data was selected as a motion data on Analysis tool. Of...
by Hide Kimpara
Sat Jun 06, 2020 8:37 am
Forum: OpenSim
Topic: Zero-gravity environment in OpenSim
Replies: 2
Views: 274

Re: Zero-gravity environment in OpenSim

Hello Ayman,

Thank you for your suggestion. It works for me!!

Hide
by Hide Kimpara
Mon Jun 01, 2020 8:53 am
Forum: OpenSim
Topic: Zero-gravity environment in OpenSim
Replies: 2
Views: 274

Zero-gravity environment in OpenSim

Hello, I tried to make a zero-gravity environment with OpenSim 4.1. Previously, I set Vec3(0) into osimModel.setGravity(), however, I always received some errors from SimBody. So that, I gave a small gravity such as 0.01 m/s^2 in Y-axis with OpenSim 4.1. However, I received sometimes an error as fol...