Velocity vectors

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Misha Patel
Posts: 17
Joined: Mon Jun 05, 2017 2:07 am

Velocity vectors

Post by Misha Patel » Wed Jul 05, 2017 7:18 am

If I have a model and it is moving, is there any way to see the vector or velocity at a point on that model?

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Velocity vectors

Post by jimmy d » Wed Jul 05, 2017 11:03 am

You can run a point kinematics analysis;
http://simtk-confluence.stanford.edu:80 ... m+Workflow

There is a point kinematics tutorial that you can run through;
http://simtk-confluence.stanford.edu:80 ... cs+Example

User avatar
Misha Patel
Posts: 17
Joined: Mon Jun 05, 2017 2:07 am

Re: Velocity vectors

Post by Misha Patel » Fri Jul 14, 2017 8:11 am

Thanks for the link to the tutorial.

Is there any more explanation on how to actually do point kinematics... the download file only seems to contain models and motions but not really an explanation of what to do

User avatar
Thomas Uchida
Posts: 1804
Joined: Wed May 16, 2012 11:40 am

Re: Velocity vectors

Post by Thomas Uchida » Fri Jul 14, 2017 9:23 am

Is there any more explanation on how to actually do point kinematics... the download file only seems to contain models and motions but not really an explanation of what to do
It works like the other analyses. I suggest looking through the documentation on Confluence (http://simtk-confluence.stanford.edu:80 ... h+Analyses) and trying it on a simple model first.

User avatar
Misha Patel
Posts: 17
Joined: Mon Jun 05, 2017 2:07 am

Re: Velocity vectors

Post by Misha Patel » Mon Jul 17, 2017 6:41 am

Thanks, the link was very useful.
When it comes to the 'input' section of the analyze tool, what does the 'control' file do?

User avatar
Thomas Uchida
Posts: 1804
Joined: Wed May 16, 2012 11:40 am

Re: Velocity vectors

Post by Thomas Uchida » Mon Jul 17, 2017 1:40 pm

When it comes to the 'input' section of the analyze tool, what does the 'control' file do?
Please read the documentation. See, in particular, the controls section on the "Getting Started with Analyses" page (http://simtk-confluence.stanford.edu:80 ... h+Analyses).

User avatar
Misha Patel
Posts: 17
Joined: Mon Jun 05, 2017 2:07 am

Re: Velocity vectors

Post by Misha Patel » Wed Jul 19, 2017 4:26 am

So is it necessary to have controls or can you do point kinematics without it?

User avatar
Thomas Uchida
Posts: 1804
Joined: Wed May 16, 2012 11:40 am

Re: Velocity vectors

Post by Thomas Uchida » Wed Jul 19, 2017 11:07 am

So is it necessary to have controls or can you do point kinematics without it?
From the "How to Use the Analysis Tool" page (http://simtk-confluence.stanford.edu:80 ... lysis+Tool): "If you are running an analysis on an existing simulation, you will most often specify a set of controls and states output by that simulation." For what simulation results are you running an analysis?

User avatar
Misha Patel
Posts: 17
Joined: Mon Jun 05, 2017 2:07 am

Re: Velocity vectors

Post by Misha Patel » Thu Jul 20, 2017 12:33 am

I am trying to run the point kinematics on the 'leg6dof9musc.osim' model... I have loaded a motion and so I have selected loaded motion.

But I am unsure what file to load for the controls, I seem to be getting all 0's when I don't have a control file.\

When I copy this example and use all the same files I still don't get non-0 results:

http://simtk-confluence.stanford.edu:80 ... lysis+Tool

I'm using a code in MATLAB to process the data.

User avatar
Thomas Uchida
Posts: 1804
Joined: Wed May 16, 2012 11:40 am

Re: Velocity vectors

Post by Thomas Uchida » Thu Jul 20, 2017 1:04 am

I am trying to run the point kinematics on the 'leg6dof9musc.osim' model... I have loaded a motion and so I have selected loaded motion. But I am unsure what file to load for the controls, I seem to be getting all 0's when I don't have a control file.\
Thank you for the explanation. The zeros have nothing to do with whether you have provided a controls file. I suspect the issue is that you have not properly configured the PointKinematics analysis. Here is an example:
- open leg6dof9musc.osim
- load Swing\leg69_IK_swing.mot
- select Analyze… from the Tools menu
- in the Analyses tab, click Add and select PointKinematics
- select PointKinematics (the item that now appears at the top of the list)
- click the Edit button at the bottom of the window
- beside "body_name", double-click "ground", type "toes_r", and press <Enter>
- beside "relative_to_body_name", double-click "none", type "ground", and press <Enter>
- click OK and then Run

POST REPLY