-
Notifications
You must be signed in to change notification settings - Fork 48
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
Added Reset Simulation #345
Conversation
I guess you want to merge the modification in the |
Modifying this thrift file is unfortunately extremely tricky, because we have multiple copies of this file disseminated across several repository, see for example robotology/wb-toolbox@af1fa41 . I guess @diegoferigo and @S-Dafarra are the maintainers of the repositories affected by this. Before merging this modification, we should make sure that the client generated with the old version of the thrift file are still compatible with the server exposed by the new version of the thrift. The clean solution is probably to avoid this duplication. This involves either:
|
@triccyx I remember a discussion with @francesco-romano (previous WB-Toolbox maintainer) about removing that thrift-related sources as soon as YARP would have installed them in the system. I'd go as well in this direction rather than storing it into |
Cross ref robotology/wb-toolbox#62 |
What is the best way to resolve the problem? Without this merge the tests won't work |
I'd like to see this thrift to end into yarp. Without spending too much time to figure out if it is or isn't good enough, since it seems already sufficiently generic, why not opening a PR and ask for its inclusion? It might be a quick process. @traversaro |
I agree with @diegoferigo . |
I think we need to discuss this... At the moment I wouldn't know
I suggest to merge this PR and to have a meeting about this after YARP 3 release |
Ok for Add ClockServer thrift file #1724, but this doesn't solve the problem. |
If clients with the old interface are still able to call the methods in the new interface (I think should be the case, is anyone is able to check this?), I don't think it would be too problematic to merge this PR. However, I think the current method added is a bit misleading, as it is called |
Any news/solutions regarding this pull request? |
Can you address my comments from the 4th of June?
|
Ok I change the method name to ResetSimulation as it resets both state and time. |
ping |
Ok for me, but I would prefer if @diegoferigo could check this as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small leftover comment.
Co-Authored-By: triccyx <[email protected]>
@diegoferigo friendly ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not very familiar with gazebo classic plugins. This PR looks good to me, but I have few questions that do not block merging:
- Does this PR break the compatibility with the current version of wb-toolbox? I mean, I can update the thrift there, but would users that have an old version of wb-toolbox and the new version of gazebo-yarp-plugins (or the other way around) face any incompatibilities? Since this PR edits methods in a thrift service and these methods are not called, I do not think so. Can you confirm this?
- Just a curiosity. Would the signal to reset the world be propagated to all the other plugins? E.g. if there are controllers, their state should be reset too (I think yes, just checking).
Btw, I am still looking for storing all these thrift files somewhere else, in a centralized place in order to avoid to keep vendoring these files in other projects.
Exactly. As you can check in the generated code for the server https://github.com/robotology/gazebo-yarp-plugins/pull/345/files#diff-9e60d5f99e3cf3eb4705af443b70c244R395 , nothing in the code changes for methods different from
Plugins can handle the reset even by attaching a callback to the
I agree (remainder of YARP issue: robotology/yarp#1724). |
Ack. I'll keep in mind to update the wb-toolbox thrift in any case 👍 |
Added to clock gazebo plugin the possibility to reset simulation via rpc call