Closed Ganimed closed 7 years ago
Before I forget, I have two files adapted to the new structure. One as an example and the other for time-benchmarking. They are stored under +WBM/test and +WBM/examples. The speed of the classes depends on the CPU of the computer and from the used Matlab-version. I optimized what I could. But since Matlab is a script-language, I want to note, that the parser needs always a bit more time for interpreting a class-structure than a single function file. So for time-critical computations it is better to use the methods of Naveen.
To see how the new WBM-package is structured, there is a folder called UML. There you will find a PDF-file with an UML diagram.
I think this whole issue needs to be tracked from here : https://github.com/robotology/mex-wholebodymodel/pull/62
:+1:
Hi all,
I want to announce that the new WBM-Class branch is ready for merging into the master. This new wrapper-structure can be considered as the next generation for the mex-WBM.
What is new there:
What is still missing:
(Both will be done after Christmas.)
To check:
One open bug:
There is still one bug during the initialization process, which I'm not able to remove in Linux. This error happens also in the Matlab-files of Naveen. Im using Linux Mint 17.3 Rosa and I tested it under Matlab R2014b and R2015b. I get the same error in both versions. I don't know if the error is also under MacOS and MS-Windows. We have to check it. The error happens when
wbm_modelInitialise();
is called in the optimized mode. If no name is set then the function should normally read the default robot name from environment variableYARP_ROBOT_NAME
. But it doesn't do it under Linux and I get the following error message:I have also checked my configuration and the environment variables under
~/.profile
. I have everything set what was given in the install instruction. Do I still miss something?Here is the excerpt of my configuration in .profile:
In my repository I have made a temporary file under matlab-src/tests, called _timeTest2.m, to reproduce the error without changing other files. There I have deactivated the normal method
wbm_modelInitialise('icubGazeboSim');
and replaced it withwbm_modelInitialise();
. Please feel free to test it also under your OS, to see if you are getting the same error as me. Thanks.P.S. By the way, if we don't see us, I wish you a merry Christmas and a Happy New Year!