Update rra_actuators.xml file
Posted: Sat Mar 27, 2021 2:18 pm
Dear Experts,
I'm trying to update the "point" location of "FX", "FY", and "FZ" point actuators in rra_actuators.xml file. I did:
or
My problem is that the FX is now an "OpenSim::Force" not an "OpenSim::PointActuator" and I can't get or update "point" location. Is there any solution instead of creating a new actuator file (e.g. createActuatorsFile.m)?
Any help is much appreciated.
Regards,
Mohammadreza
I'm trying to update the "point" location of "FX", "FY", and "FZ" point actuators in rra_actuators.xml file. I did:
Code: Select all
actuators = osim.ForceSet('rra_actuators.xml')
FX = actuators.get('FX')
Code: Select all
n_actuators = actuators.getSize()
actuators_name = list()
for i in range(n_actuators):
actuators_name.append(actuators.get(i).getName())
FX = actuators.get(actuators_name.index('FY'))
Any help is much appreciated.
Regards,
Mohammadreza