-
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 option to remove implicit wrappers in lasersensor, controlboard, depthcamera and multicamera #565
Conversation
@traversaro do you think that it should be added a CI with the flag USE_NEW_WRAPPERS on? |
@traversaro rebased on devel |
Let me know when this is ready for review. |
It is ready |
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 had a leftover comment, sorry for that .
I guess also the docs in https://github.com/robotology/gazebo-yarp-plugins/tree/master/plugins/robotinterface#how-to-specify-existing-yarp-devices-to-which-to-attach on how to specify the YARP device instance name should mention that if |
I recommend to remove plugin |
The |
For now I'm testing with the old r1 model, I can try with iCub but I don't have any running simulator now, I'll check it maybe. Do you have any suggestion? |
The old R1 model seems fine, but are you testing the case in which you are not using |
yes I'll test with yarpmotorgui and yarpview |
Yes, with the new yarp 3.5, this device can be completely removed from the repo. |
Thanks, the PR seems good to go. The only missing pieces are: |
Cool! Can you approve PR #570 that add a deprecation notice for the users on this, so then in the next release we can remove the plugin? |
updated both |
I've tested it on gazebo, yarpmotorgui, yarplaserscannergui and yarpview both with and without the new option and it seems to work fine :) |
plugins/robotinterface/README.md
Outdated
For the `gazebo_yarp_controlboard`, if the `yarpDeviceName` parameter is not specified, for legacy reason the **YARP device instance name** for each created device can also be specified with the `networks` parameter list in the plugin configuration. | ||
|
||
A cmake option (`GAZEBO_YARP_PLUGINS_DISABLE_IMPLICIT_NETWORK_WRAPPERS`) has been added, if this option is enabled then implicit wrappers present in`gazebo_yarp_multicamera`, `gazebo_yarp_lasersensor`, `gazebo_yarp_controlboard` and `gazebo_yarp_depthCamera` are removed, the new way to have them is to attach the new nws to gazebo devices via yarprobotinterface as above. |
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.
It is a bit strange to have a sentence that uses the present perfect in a document that uses the present, don't you find? Did you tried to check if this sentence is coherent with the rest of the document? I think it may be more clear to remove all together the new sentence, and just add a sentence to the previous period, something like:
For the `gazebo_yarp_controlboard`, if the `yarpDeviceName` parameter is not specified, for legacy reason the **YARP device instance name** for each created device can also be specified with the `networks` parameter list in the plugin configuration. | |
A cmake option (`GAZEBO_YARP_PLUGINS_DISABLE_IMPLICIT_NETWORK_WRAPPERS`) has been added, if this option is enabled then implicit wrappers present in`gazebo_yarp_multicamera`, `gazebo_yarp_lasersensor`, `gazebo_yarp_controlboard` and `gazebo_yarp_depthCamera` are removed, the new way to have them is to attach the new nws to gazebo devices via yarprobotinterface as above. | |
If the `GAZEBO_YARP_PLUGINS_DISABLE_IMPLICIT_NETWORK_WRAPPERS` option is set to `OFF` (default value), for the `gazebo_yarp_controlboard` if the `yarpDeviceName` parameter is not specified, for legacy reason the **YARP device instance name** for each created device can also be specified with the `networks` parameter list in the plugin configuration of `yarpDeviceName`. If instead the `GAZEBO_YARP_PLUGINS_DISABLE_IMPLICIT_NETWORK_WRAPPERS` option is set to `ON`, the `gazebo_yarp_controlboard` behaves like the rest of the plugins and requires to take the **YARP device instance name** from the `yarpDeviceName` parameter. |
Great, can you check my last comment on the docs? |
Co-authored-by: Silvio Traversaro <[email protected]>
Thanks @ste93 ! I would Squash and merge, but if you prefer to re-structure your commits please let me know. |
no you can squash the commits |
Thanks @ste93 ! |
based on #564
This PR adds a flag USE_NEW_WRAPPERS that if enable removes all the wrappers from doublelaser, lasersensor, controlboard, depthcamera and multicamera and allows the use of the new nws present in yarp 3.5.
YARP 3.5 is required now as basis