PointActuator functionality

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
David Alexander Basabe
Posts: 6
Joined: Wed May 03, 2023 7:42 am

PointActuator functionality

Post by David Alexander Basabe » Tue Aug 29, 2023 10:21 am

Hello!

I want to add a point actuator through MATLAB to my model to test its effect on the dynamics of the model. When I do it as follows, the Actuator never applies any force according to the ForceReporter in the Analyze Tool. For context, I have done Inverse Kinematics using Motion Capture Data, and would like to test the difference of forces certain muscles produce with/without the point actuator. What could be missing?

example_force_heel = PointActuator('heel');
example_force_heel.set_body('heel');
example_force_heel.set_force_is_global(true);
example_force_heel.set_optimal_force(point_actuator_force);
example_force_heel.set_point_is_global(false);
example_force_heel.set_point(Vec3(0, 0.0982711, 0.158335));
example_force_heel.set_direction(Vec3(0, 1, 0));
example_force_heel.set_appliesForce(example_force_heel_activation);

model.addForce(example_force_heel);

Thank you for your help!

User avatar
Carmichael Ong
Posts: 380
Joined: Fri Feb 24, 2012 11:50 am

Re: PointActuator functionality

Post by Carmichael Ong » Wed Aug 30, 2023 1:39 pm

Since this is an actuator, a controller is still needed to pass in a control signal to generate force. You can look at some of the classes that derive from Controller, and in particular PrescribedController may be helpful.

POST REPLY