External Forces transform during RRA

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Quinten Humphrey
Posts: 36
Joined: Mon Feb 08, 2021 2:36 pm

External Forces transform during RRA

Post by Quinten Humphrey » Fri Aug 06, 2021 2:05 am

Hello, I was wondering if someone could help explain this to me and why it is happening. I haven't found a post yet describing this.

ExternalForce::ground_force
Data source being set to Sub05_Trial06_VR_Box01_grf - Copy.mot
ExternalForce::1_ground_force
Data source being set to Sub05_Trial06_VR_Box01_grf - Copy.mot

ExternalForce::ground_force_transformedP
Data source being set to Sub05_Trial06_VR_Box01_grf - Copy.mot_transformedP
ExternalForce::1_ground_force_transformedP
Data source being set to Sub05_Trial06_VR_Box01_grf - Copy.mot_transformedP

User avatar
John Davis
Posts: 59
Joined: Mon Aug 26, 2019 7:42 am

Re: External Forces transform during RRA

Post by John Davis » Fri Aug 06, 2021 12:31 pm

I believe this message is just telling you that the external loads configuration file is assigning the file name for the data to each separate ExternalForce in the ExternalLoads list. In an external loads config xml, each ExternalForce object has an xml tag data_source_name, and the ExternalLoads object (which is just a list of ExternalForces) has an xml tag datafile. The comments in the default xml templates say that datafile overrides data_source_name, if datafile is specified.

This allows you to set separate files for separate forces, if you want to - maybe if you had one external force that was sampled at a different frequency than another this would be useful. But I think the usual case would be that all external forces would be in the same file, in which case you can leave data_source_name blank, and just specify datafile. So I think the message is telling you that OpenSim is setting data_source_name for each ExternalForce to be the datasource file in the ExternalLoads object, which is (I'm assuming) exactly what you want to happen.

User avatar
Quinten Humphrey
Posts: 36
Joined: Mon Feb 08, 2021 2:36 pm

Re: External Forces transform during RRA

Post by Quinten Humphrey » Mon Aug 09, 2021 8:42 am

But when I look at the transformed files, the grf data is completely different than what I am using.

User avatar
Sanne Vancleef
Posts: 5
Joined: Sun Oct 26, 2014 11:00 am

Re: External Forces transform during RRA

Post by Sanne Vancleef » Thu Nov 04, 2021 12:49 am

Hi Quinten,

How did you solve this? I have the same issue.

Thank you,
Sanne

User avatar
Mohammadreza Rezaie
Posts: 407
Joined: Fri Nov 24, 2017 12:48 am

Re: External Forces transform during RRA

Post by Mohammadreza Rezaie » Mon Nov 08, 2021 3:22 am

Hi,

I had similar issue. OpenSim automatically takes the first line of the MOT file as a name for "Data source". This might be problematic when the name refers to another file path or address (real or imaginary) and in my case, couldn't read the file. You can simply change the first line to something like "GRF" or any file name without extension. If there isn't any problem in reading the file, just ignore the message.

Best,
Mohammadreza

POST REPLY