-
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
Add disableImplicitNetworkWrapper to gazebo_yarp_forcetorque, gazebo_yarp_depthcamera, gazebo_yarp_lasersensor, gazebo_yarp_imu and gazebo_yarp_controlboard #586
Conversation
I have just one question, you left the yarp device name in this PR when the if is enabled (configuration via yarprobotinterface) while when is disabled from the compiler the device name is not left. I think it would be better if both maintains the same behavior so there will be no mistake in the future? @traversaro |
Sorry, I am not sure I get what you mean. I guess that you mean that there is a slight different behaviour if |
I just mean in the case
|
I got a little bit lost about these flags, so there is a possibility that I didn't get the purpose of this PR. If so I would change the option name, I think that the the implicit wrapper that is set in the DeviceDriver factory, should be treated separately respect the mandatory wrapper configuration from the ini file. |
Exactly, basically is permitting to disable the implicit wrapper via configuration file on a plugin instance basis, instead of disabling globally it via configuration option at the compile time, to avoid all the problems listed in #585 .
Sure, feel free to propose a better name, thanks!
Not sure I get what you mean by this. |
From my understanding the implicit wrapper is gazebo-yarp-plugins/plugins/forcetorque/src/ForceTorque.cc Lines 57 to 63 in 880af12
If I pass an empty string to the The thing is that if |
I hope to have been clear, because this is not super clear in my mind 😆 |
This is what not we (me and @ste93) have been calling implicit wrapper, so to avoid confusion I propose to call:
Let's try to stick to this nomenclature otherwise it is impossible to discuss. : )
Are you sure? Did you checked this? According to my understanding of YARP API, if GAZEBO_YARP_PLUGINS_DISABLE_IMPLICIT_NETWORK_WRAPPERS = OFF AND disableImplicitNetworkWrapperServer = true no wrapper is opened, but I could be wrong. |
I think the same as @traversaro , as I made the changes when the empty string is passed no wrapper is opened, but it is attached later with yarprobotinterface. |
Mmm actually no, I am sure that I could give it a try or @drdanz @randaz81 can confirm this For the flag name, if I am the only one that thinks that the implicit wrapper is the one not defined in the ini of the device, I can adapt 👍🏻 |
I think I've lost some passages, maybe we can update on teams? |
Actually we have the code, so we can just inspect this! The second argument of To clarify further, in gazebo-yarp-plugins, we could already substitute all the second arguments of |
Recap of meeting with @ste93 and @Nicogene:
|
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.
LGTM!
sorry I've noticed now, there are some problems building the code |
They were thre in devel once I started working, if I rebase they should go away. |
3e6294b
to
f708cd5
Compare
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.
After the last update meeting, it emerged that we need to discuss more about how to handle this, then this PR is blocked for now.
Fyi @randaz81 |
As we had then a meeting that agreed on the step forwards (discussed in #594), I think we can go forward with this PR. |
bcc4b61
to
1f7e81b
Compare
2e6236f
to
16b406d
Compare
I tested this on a iCub-like humanoid robot that already migrated to the new nws/nwc architecture, and it is working fine, I think we can proceed (I also added the changes for do a 4.2.0 release). |
Please ignore the Windows CI failure that will be fixed by #610 . |
fyi @Nicogene |
Fix #585 .
I tested this on a iCub-like humanoid robot that already migrated to the new nws/nwc architecture, and it is working fine.