i have extracted time series excitation data from Excle file. however, when i use the PiecewiseLinearFunction to add the data into BIClongController, there is a Error with PiecewiseLinearFunction.
anyone here give me a help, thank a lot.
filename = Excitation.xlsx;
[data, labels] = xlsread(filename);
time = data(:, 1);
BIClongExc = data(:, 5);
//...
BIClong = Thelen2003Muscle();
//...
BIClongController = PrescribedController();
BIClongController.setName('BIClongController');
BIClongController.addActuator(BIClong);
timeseriesExc = PiecewiseLinearFunction(350,time,TRIlongExc);
BIClongController.prescribeControlForActuator('excitationcontrol',timeseriesExc);
osimModel.addController(BIClongController);
MATLAB Error:
No constructor with matching signatures found 'org.opensim.modeling.PiecewiseLinearFunction';
Error Create_Complex_muscle (368);
timeseriesExc = PiecewiseLinearFunction(350,time,BIClongExc);
Add control signal to muscle controller
- Pengfei Liu
- Posts: 15
- Joined: Tue Sep 20, 2022 8:15 am
- Mohammadreza Rezaie
- Posts: 407
- Joined: Fri Nov 24, 2017 12:48 am
Re: Add control signal to muscle controller
Hi, this example may help: https://github.com/opensim-org/opensim- ... #L210-L223