Search found 32 matches

by ruoshi wen
Sun Sep 17, 2017 6:08 pm
Forum: OpenSim
Topic: which coordinate system is mass_center of body defined in?
Replies: 3
Views: 391

Re: which coordinate system is mass_center of body defined in?

Body's local frame.
How to define Body's local frame?
Thanks.
by ruoshi wen
Fri Sep 15, 2017 2:16 am
Forum: OpenSim
Topic: which coordinate system is mass_center of body defined in?
Replies: 3
Views: 391

which coordinate system is mass_center of body defined in?

Hi, all! I want to know which coordinate system is mass_center defined in. <Body name="r_humerus"> <mass>1.864572</mass> <mass_center> 0 -0.180496 0</mass_center> <inertia_xx>0.01481</inertia_xx> <inertia_yy>0.004551</inertia_yy> <inertia_zz>0.013193</inertia_zz> <inertia_xy>0</inertia_xy> <inertia_...
by ruoshi wen
Mon Aug 21, 2017 2:10 am
Forum: OpenSim
Topic: How to display the path of a customized actuator in the gui?
Replies: 5
Views: 335

Re: How to display the path of a customized actuator in the gui?

I want to create a McKibbenActuator under api 3.3. Do I need to compile and build all the source code of opensim 3.3 after I create the actuator? Or should I add the McKibbenActuator.cpp and McKibbenActuator.h to under the main.cpp that I create to do a simulation?(I want to visualize my model in Op...
by ruoshi wen
Sun Aug 20, 2017 6:20 pm
Forum: OpenSim
Topic: How to display the path of a customized actuator in the gui?
Replies: 5
Views: 335

Re: How to display the path of a customized actuator in the gui?

Thank you so much and your guidance will be a lot of help.
Here's another question.
Is there a default color displaying the path if I don't implement computePathColor()?
by ruoshi wen
Mon Aug 14, 2017 4:44 am
Forum: OpenSim
Topic: How to display the path of a customized actuator in the gui?
Replies: 5
Views: 335

How to display the path of a customized actuator in the gui?

I want to create an actuator of McKibben type and it's similar to the PathActuator. I notice that the muscle path can be displayed in the gui. So I was wondering how to display the path of a customized actuator created by myself. Do I need to write some related code when I create my own actuator or ...
by ruoshi wen
Mon Aug 14, 2017 4:28 am
Forum: Modeling, Evaluation, and Control Optimization of Exosuit with OpenSim
Topic: Can't open the source code
Replies: 0
Views: 1185

Can't open the source code

I was wondering how to open exosuit_models after I download it.
by ruoshi wen
Mon Jul 24, 2017 7:49 pm
Forum: OpenSim
Topic: How to modify the CoordinateSet
Replies: 1
Views: 236

How to modify the CoordinateSet

Hi, all! I am trying to define a custom joint using OpenSim API 3.3 and create a similar arm to Arm26 which is one of your offical models. In the arm26.osim file, no matter how I modify my code, I just can't modify the CoordinateSet. Here's my code. CustomJoint* shoulder = new CustomJoint("r_shoulde...
by ruoshi wen
Mon Jul 24, 2017 6:50 pm
Forum: OpenSim
Topic: How to define the coordinates under TransformAxis?
Replies: 2
Views: 273

Re: How to define the coordinates under TransformAxis?

I just find the answer.

Code: Select all

		OpenSim::SpatialTransform shoulderST;
		shoulderST.updTransformAxis(0).setAxis(Vec3(-0.05889802, 0.0023, 0.99826136));
		shoulderST.updTransformAxis(0).setCoordinateNames(Array<std::string>("r_shoulder_elev", 1));
by ruoshi wen
Mon Jul 24, 2017 6:33 pm
Forum: OpenSim
Topic: How to define the coordinates under TransformAxis?
Replies: 2
Views: 273

How to define the coordinates under TransformAxis?

Hi, all! I am trying to define a custom joint using OpenSim API 3.3 and create a similar arm to Arm26 which is one of your offical models. In the arm26.osim file, I noticed that under TransformAxis, there is something called coordinates. I wonder how to define it using api(I am scripting in C++ to c...
by ruoshi wen
Sun Jul 23, 2017 7:01 am
Forum: OpenSim
Topic: OpenSim3.3 GUI flashed!
Replies: 2
Views: 213

Re: OpenSim3.3 GUI flashed!

The .osim is as follows. <?xml version="1.0" encoding="UTF-8" ?> <OpenSimDocument Version="30000"> <Model name="armSimple"> <credits>Frank Anderson, Peter Loan, Ayman Habib, Ajay Seth, Michael Sherman</credits> <publications>Unassigned</publications> <length_units>meters</length_units> <force_units>...