Hi, does anybody know if the bodydrag example has been updated to work with OpenSim 4.2? I've been trying to get it to work but no luck so far. I would also appreciate any suggestions on how to adapt it to work on the latest release if it hasn't been done.
Thanks.
Bodydrag example in Opensim 4.2
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Bodydrag example in Opensim 4.2
Hello,
The BodyDrag example is distributed as a plugin and is built as a part of the routinely run test suite so should always be up-to-date.
Please provide details regarding how you're trying to use it and any issues/problems you're running into so that we can help you out and/or improve the documentation if needed.
Best regards,
-Ayman
The BodyDrag example is distributed as a plugin and is built as a part of the routinely run test suite so should always be up-to-date.
Please provide details regarding how you're trying to use it and any issues/problems you're running into so that we can help you out and/or improve the documentation if needed.
Best regards,
-Ayman
- Ali Adil Lashari
- Posts: 5
- Joined: Tue May 18, 2021 7:12 am
Re: Bodydrag example in Opensim 4.2
Hi,
Thank you for the reply. I'm new at working with OpenSim so I had some trouble with compiling the plugin to run with 4.2. I managed to get that to work over the weekend and the plugin loads successfully. However, when trying to load the .osim models included to test the plugin, I get a popup that the model has inconsistencies and that i should "update any motion files generated in versions prior to 4.0". When I try to do this using updatePre40KinematicsFilesFor40MotionType() I get the following error:
" NameError : name 'updatePre40KinematicsFilesFor40MotionType' is not defined."
Right now I'm just trying to get the plugin to work with the included example files. I also tried testing the plugin through the command prompt using the following command:
"forward -L BodyDrag -S forward.xml"
but the resultant output files do not match the expected results at all. Could you please suggest what could be wrong?
Thanks,
-Ali
Thank you for the reply. I'm new at working with OpenSim so I had some trouble with compiling the plugin to run with 4.2. I managed to get that to work over the weekend and the plugin loads successfully. However, when trying to load the .osim models included to test the plugin, I get a popup that the model has inconsistencies and that i should "update any motion files generated in versions prior to 4.0". When I try to do this using updatePre40KinematicsFilesFor40MotionType() I get the following error:
" NameError : name 'updatePre40KinematicsFilesFor40MotionType' is not defined."
Right now I'm just trying to get the plugin to work with the included example files. I also tried testing the plugin through the command prompt using the following command:
"forward -L BodyDrag -S forward.xml"
but the resultant output files do not match the expected results at all. Could you please suggest what could be wrong?
Thanks,
-Ali
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Bodydrag example in Opensim 4.2
Hi Ali,
Great that you got the BodyDrag plugin working/loading.
The warning message you get about the .osim file having inconsistencies is totally unrelated to the plugin building/loading process. Not sure what model you're trying to use (it would be specified near the top of the forward.xml file) or how you obtained it. If it was provided by us, please let us know where you got it so we can updated it in future versions. If you have a custom model that you want to update/upgrade from pre 4.0 format, please start a new message/thread so the forum topic/title is more helpful to forum users.
Best regards,
-Ayman
Great that you got the BodyDrag plugin working/loading.
The warning message you get about the .osim file having inconsistencies is totally unrelated to the plugin building/loading process. Not sure what model you're trying to use (it would be specified near the top of the forward.xml file) or how you obtained it. If it was provided by us, please let us know where you got it so we can updated it in future versions. If you have a custom model that you want to update/upgrade from pre 4.0 format, please start a new message/thread so the forum topic/title is more helpful to forum users.
Best regards,
-Ayman
- Ali Adil Lashari
- Posts: 5
- Joined: Tue May 18, 2021 7:12 am
Re: Bodydrag example in Opensim 4.2
Hi Ayman,
Thank you for your reply. I was trying to load the "ThreeMasses.osim" model included in the following directory:
<Documents\OpenSim\4.2\Code\CPP\Plugins\BodyDragExample\TestPlugin\Example1_ThreeMasses>
this is the same model that is referred to in the forward.xml file.
Thank you,
-Ali
Thank you for your reply. I was trying to load the "ThreeMasses.osim" model included in the following directory:
<Documents\OpenSim\4.2\Code\CPP\Plugins\BodyDragExample\TestPlugin\Example1_ThreeMasses>
this is the same model that is referred to in the forward.xml file.
Thank you,
-Ali
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Bodydrag example in Opensim 4.2
Thank you,
The model is out of date so we'll update it next release, in the meantime you can just save the model in the most recent version (after you open it) and you'll not see the warning when you open the model later. The expectedResults folder has not been updated as well so we'll need to update it along with the model.
Thanks for reporting,
-Ayman
The model is out of date so we'll update it next release, in the meantime you can just save the model in the most recent version (after you open it) and you'll not see the warning when you open the model later. The expectedResults folder has not been updated as well so we'll need to update it along with the model.
Thanks for reporting,
-Ayman