Hey all,
i have a problem about the path file (<controls_file>) for <PrescribedController>. I want to change the file path to relativ path file, so that it can be opened, if i send the model data to somebody without any changes to the file path in the model file. (The path file below is path file to my computer)
I have tried to place the control file (Prescribed_mit_Last_von_1kg.sto) in the same folder of the model file (.osim) and changed the file path on <controls_file> with only the name of the control file (<controls_file>Prescribed_mit_Last_von_1kg.sto</controls_file>), but it can't be opened because of this error below. Can somebody help me with this? It's very important for me to be able to do this.
Best regards
Wahyu
Relativ Path File for "Prescribed_Controller"
- Wahyu Kasendra Sugiarto
- Posts: 8
- Joined: Thu Apr 09, 2020 11:13 am
- Thomas Uchida
- Posts: 1794
- Joined: Wed May 16, 2012 11:40 am
Re: Relativ Path File for "Prescribed_Controller"
I don't have files to reproduce and test, but I think the issue is that the path must be specified relative to OpenSim's working directory, not relative to the directory that contains the model file. The working directory is the directory in which the out.log and err.log files appear.