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!
PointActuator functionality
- Carmichael Ong
- Posts: 380
- Joined: Fri Feb 24, 2012 11:50 am
Re: PointActuator functionality
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.