-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-implement the Holder block to make it compatible with code generation and 'treat as atomic unit' #211
Re-implement the Holder block to make it compatible with code generation and 'treat as atomic unit' #211
Conversation
…code generation and 'treat as atomic unit'
…ulator - Restore the link of the 'holder' blocks in the controller model to the WBToolbox (utilities) library -> after the new holder implementation was (robotology/wb-toolbox#211). - Remove the 'holder' block (not required anymore) from the 'utilityBlocks_lib.slx' library.
@nunoguedelha do you think we can wait a few days for this? For some internal projects, #209 may need to have an higher priority and I guess there are incompatibilities between this two PRs. |
Actually I think we can wait a few more days for #209, and in practice it is blocked by robotology/robotology-superbuild#719 . So I think we are good to do on this, not sure if @Giulero is able to quickly check and approve the PR or he is too busy with the experiments (otherwise I can review myself). |
Hi @traversaro , when you say "incompatibilities" you just mean that both PRs are changing the same |
Exactly. |
For the record, in this case the merge should be easy. |
Today I could check the PR, testing some of our simulink models. They have a lot of holder blocks! |
I run a model with the simulink simulator. The controller block (containing some holders) is set as an atomic unit running 10 times slower than the simulink solver. Thanks Nuno! |
@nunoguedelha I think we can merge this, what do you think? Then I would probably need to rebase #209 on top of the new master after this PR is merged, not sure if you have any advice on how to do this. |
Ciao @traversaro , sorry just saw this, had an afternoon a bit problematic. Yes we can merge this now. For rebasing your branch
I guess you main concern was more precisely how to merge the mdl and slx files. It should be trivial since the blocks impacted by the 2 branches are distinct. I only changed the "holder" block in the "utilities".
|
Yes @Giulero , indeed the clock used before this PR was the only thing preventing the "set as atomic unit", not the
But in general I think it's a good practice to avoid |
I'm not authorized to merge this PR. @traversaro I let you do it. I suggest a "Rebase and merge" since there is a single commit in my branch. |
Probably it was an artifact of broken CI. |
Thanks @nunoguedelha ! This is quite interesting (and quite documented it seems: https://www.mathworks.com/help/simulink/ug/resolve-conflicts.html), I will try myself to familiarize with the tooling. fyi @pattacini |
…ulator - Restore the link of the 'holder' blocks in the controller model to the WBToolbox (utilities) library -> after the new holder implementation was (robotology/wb-toolbox#211). - Remove the 'holder' block (not required anymore) from the 'utilityBlocks_lib.slx' library.
As @nunoguedelha was mentioning, this tooling helps quite a lot when the changes impact different parts of the model. When changes impact the same block instead, for example, vsdiff starts quickly becoming difficult to employ, depending on the complexity of the change and/or the impacted block. |
Fixes #205 .