Search found 32 matches

by Hao Lee
Tue May 02, 2017 9:24 pm
Forum: OpenSim
Topic: What is getYDot mean?
Replies: 1
Views: 80

What is getYDot mean?

I am really confused about the "getYDot()" command in the state class. I have seen getZdot, getYdot, but since there is no getXdot I suppose this is not just velocity in each direction, after all, it returns Vec3. So what does it suppose to mean?
by Hao Lee
Thu Mar 09, 2017 10:44 pm
Forum: OpenSim
Topic: Getting CoM of body and Ground Reaction force in matlab
Replies: 5
Views: 1144

Re: Getting CoM of body and Ground Reaction force in matlab

I successfully use the getMassCenter now, however, all the data I retrieve is [ 0 0 0]. I wonder does this function only retrieve the CoM in the end-frame (i.e., if I want the CoM in the hand, it will only return me the coordinate of CoM in hand's frame?) Is there any function that I can retrieve th...
by Hao Lee
Thu Feb 16, 2017 10:08 pm
Forum: OpenSim
Topic: Getting CoM of body and Ground Reaction force in matlab
Replies: 5
Views: 1144

Re: Getting CoM of body and Ground Reaction force in matlab

thanks, I believe my problem is solved
However, I wonder how can I turn the result I get, which is Vec3 into numbers?
Is there any function in openSim support that?
by Hao Lee
Sat Feb 11, 2017 10:58 pm
Forum: OpenSim
Topic: Getting CoM of body and Ground Reaction force in matlab
Replies: 5
Views: 1144

Getting CoM of body and Ground Reaction force in matlab

I am currently using matlab to develop the control to my model, however, I faced some difficulties. I try to use pelvis = osimModel.getBodySet().get('Pelvis'); com= pelvis.getMassCenter(); but it turned out that No method 'getMassCenter' with matching signature found for class 'org.opensim.modeling....
by Hao Lee
Mon Feb 06, 2017 12:24 am
Forum: OpenSim
Topic: Plot the contact force?
Replies: 3
Views: 276

Re: Plot the contact force?

Thanks for your helping, but I still don't know how to do so. Do you mean I first run a forward dynamics, and analyze the motion data? Sorry I am new to this software.
by Hao Lee
Sat Feb 04, 2017 9:40 pm
Forum: OpenSim
Topic: Plot the contact force?
Replies: 3
Views: 276

Plot the contact force?

I am currently using opensim in forward dynamics simulation, I add two contact mesh to my robot's feet. Is it possible to plot the contact with respect to time in opensim? I believe I created the contact force correctly, but in the plot window, there is no contact force to choose for y axis.
by Hao Lee
Wed Nov 16, 2016 5:49 pm
Forum: OpenSim
Topic: How to create marker with c++ script?
Replies: 1
Views: 155

How to create marker with c++ script?

This must be a beginner question, but I am confused about how to create marker in opensim with c++. I check the api and there is markerSet and marker class, however, nor of them has initializer such as Marker testMarker = new Marker (name, parentBody, location) Is there any example code that I can f...
by Hao Lee
Mon Nov 14, 2016 11:59 pm
Forum: OpenSim
Topic: Is it possible to have one model following another while doing IK?
Replies: 0
Views: 88

Is it possible to have one model following another while doing IK?

Dear Sir I am trying to build an exoskeleton that follows human's motion. I currently combined 2 models into 1, human and exoskeleton. While the human got motion by doing IK with data from motion capture, I wonder can I write any control method that the exoskeleton will follow this motion, too? Not ...
by Hao Lee
Mon Nov 14, 2016 3:07 pm
Forum: OpenSim
Topic: Weld joint mismatched after combined 2 models
Replies: 2
Views: 155

Re: Weld joint mismatched after combined 2 models

I kind of solve it by instead of adding my exoskeleton's xml code into the gait2392, I add gait2392 into my exoskeleton. Not sure why after that the dismatch problem disappeared.
by Hao Lee
Sun Nov 13, 2016 11:51 pm
Forum: OpenSim
Topic: Weld joint mismatched after combined 2 models
Replies: 2
Views: 155

Weld joint mismatched after combined 2 models

Dear Sir I try to build my exoskeleton in opensim with c++, which looks fine after I compile it. http://imgur.com/a/KD7uC However, after I try to combine it with gait2392, all the weld joint mismatched. http://imgur.com/a/pn7Va As you can see the half circle bar and few segments moved. The way I com...