Help with Probe for power

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
Frédéric Lamon
Posts: 27
Joined: Wed May 06, 2015 1:01 pm

Help with Probe for power

Post by Frédéric Lamon » Thu Aug 20, 2015 5:55 am

Hello,

I am trying to use Probe in order to get the actuators power as well as the joints power. However the actuatorspowerprobe is giving me incoherent results and the internaljointpowerprobe is not giving any outputs. I do not know what to do to solve this. Has anyone already used probes and could give me some advice on this. It would be very much appreciated.

Cheers,

Frederic

User avatar
Dario Cazzola
Posts: 44
Joined: Mon Jun 03, 2013 8:08 am

Re: Help with Probe for power

Post by Dario Cazzola » Fri Aug 21, 2015 10:40 am

Hi Frederic,

I did use it and it worked for me. Did you check the value of 'initial condition for integration'?

Cheers

Dario

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

Re: Help with Probe for power

Post by jimmy d » Fri Aug 21, 2015 10:46 am

I assume you are using probes with CMC since they won't work with SO.

User avatar
Frédéric Lamon
Posts: 27
Joined: Wed May 06, 2015 1:01 pm

Re: Help with Probe for power

Post by Frédéric Lamon » Fri Aug 21, 2015 11:40 am

Hello Dario and James,

Thanks for your answers. I do not use integrate but only value as I am interested in the power and not the work. As I do not use integrate I don't need to run it through CMC right ? But it is not working. I have put some files here if you have time to have a look at it. Thanks a lot.

Fred
Attachments
Probe.zip
(2.43 MiB) Downloaded 22 times

User avatar
Dario Cazzola
Posts: 44
Joined: Mon Jun 03, 2013 8:08 am

Re: Help with Probe for power

Post by Dario Cazzola » Tue Aug 25, 2015 4:35 am

Hi Fred,

From your probe reporter it seems you calculate the work done (you do use 'integrate') by the actuator (Probe 0), and the actuator force (Probe 2). Probe 1 should calculate the joint internal power, and in your case (knee joint) results 0 ...which seems not to be correct.

I think we need to clarify whether the Joint internal Power is:
-) Joint power computed as the product of net joint torque and corresponding joint angular velocity. This sounds to me as joint EXTERNAL power though.

or

-) The power calculate through the calcPower() function, and therefore representing the dot product of the applied body spatial forces and body spatial velocities, plus the dot product of the applied mobility forces and corresponding mobilities (generalized speeds) u

I have carried out a forward dynamic simulation of a humeral (negative) elevation due to gravity, and plotted the result of a jointinternalpower probe of glenohumeral joint (see attachment). It seems working as the power is increasing linearly as the only force acting on the system is the gravity force.

Any thoughts?

Cheers

Dario
Attachments
humeral_elevation_duetogravity.JPG

User avatar
Frédéric Lamon
Posts: 27
Joined: Wed May 06, 2015 1:01 pm

Re: Help with Probe for power

Post by Frédéric Lamon » Tue Aug 25, 2015 5:09 am

Hello Dario,

Thanks a lot for helping me. So In the files I added before yeah I did let the integrate but it should be changed as value as I do not want to have the work. Sorry about that. If you do,you will see that not all actuators get a power value and I don't understand why, especially some of them are getting too high values as well...

As for the internal power probe, I don't know how it is supposed to be working actually but I would love to be able to get the external joint power and it would be interesting to compare it with the method you described with calcPower function but I don't know how to do that. Would you be able to help me out?

cheers,

Frederic

User avatar
Dario Cazzola
Posts: 44
Joined: Mon Jun 03, 2013 8:08 am

Re: Help with Probe for power

Post by Dario Cazzola » Tue Aug 25, 2015 6:32 am

Hi Fred,

Apparently the JointInternalPower Probe with 'integrate' flagged on, is doingexactly wat calcPower does (Have alook to this: https://simtk.org/forums/viewtopic.php? ... wer#p12932).

However calcPower() can be used if you do use API in C++, as I have not tried yet if it is working with Matlab API.

You can always work out the external power as the product of the joint moment from ID and angular velocity from IK (?).

Also, I'd try to calculate the joint power using a probe when the applied force are all known (e.g. only gravity).

Dario

User avatar
Frédéric Lamon
Posts: 27
Joined: Wed May 06, 2015 1:01 pm

Re: Help with Probe for power

Post by Frédéric Lamon » Thu Aug 27, 2015 3:28 am

Hello Dario,

Jointinternal power doesn't work with my data and I can't figure out why. As working with the API I have never done it and don't really know how to do it. I have already tried to take the IK results and use the derivative and multiply them with ID results but I wanted to use these probes in order to confirm if my results are coherent or not.

But the most important for me would be to get the actuatorpower probe to work because I do not know any other way of getting muscle power. Do you have any idea as to why it is not working properly in my case ?

Thank you again for taking the time to look at this and for your previous suggestions.

Fred

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

Re: Help with Probe for power

Post by jimmy d » Thu Aug 27, 2015 6:37 am

Its not working because the probes use states as inputs. States come from simulations, like CMC, not from static optimization.

User avatar
Frédéric Lamon
Posts: 27
Joined: Wed May 06, 2015 1:01 pm

Re: Help with Probe for power

Post by Frédéric Lamon » Thu Aug 27, 2015 7:05 am

Hello James,

Ok, but even if I use the value and not integrate ?

Cheers,

Fred

POST REPLY