I downloaded the software and tried running the Crane2D example on matlab. This works well out of the box, but as soon as we convery double to floats (in grampc_init.h) I get NaNs.. Has anyone else faced this issue?
I am in the process of debugging this myself, but if someone else can help in the meantime, that would be appreciated!!
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if you change the datatype in grampc_init.h, you need to recompile both the example and the whole toolbox. For example, if you use the matlab interface, the command [vec,grampc] = startMPC(200,2); should work after changing the datatype.
Best regards
Tobias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I downloaded the software and tried running the Crane2D example on matlab. This works well out of the box, but as soon as we convery double to floats (in grampc_init.h) I get NaNs.. Has anyone else faced this issue?
I am in the process of debugging this myself, but if someone else can help in the meantime, that would be appreciated!!
Thanks
Hello botNet,
if you change the datatype in grampc_init.h, you need to recompile both the example and the whole toolbox. For example, if you use the matlab interface, the command [vec,grampc] = startMPC(200,2); should work after changing the datatype.
Best regards
Tobias
Hello Mr Englert
Thanks for the quick reply. Remcompiling does seem to work.
Thanks again.