-
Notifications
You must be signed in to change notification settings - Fork 196
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
Maps thrift idl msg not working properly #2054
Comments
@lrapetti Sorry, just to be sure, this worked before the upgrade to YARP 3.2, right? |
Also, I have the same problem to get the information of data inside the thrift message. |
Even without directly investigating the issue, writing a simple unit test on this in https://github.com/robotology/yarp/blob/master/tests/yarpidl_thrift/demo/main.cpp can be extremely helpful for expert YARP users to debug the issue and ensure no regression in the future. |
@drdanz is there any plan to handle this issue anytime soon? If needed I can help (e.g. what @traversaro suggested if you can give me some hints). This issue is preventing us to upgrade to |
I'm sorry, I'm currently busy with other stuff, therefore I don't think I will be able to look at this before september... Let me know if you decide to try and fix it yourself, and if you need help... |
It would be really useful if you could give me a minimal thrift file to reproduce this issue |
I have developed a minimal example in which I am having problem moving from The example can be found at https://github.com/lrapetti/test_thrift_map with the following content:
What I experience is that in |
Thanks. |
From an initial debugging, the issue seem to be in the receiving part, the transmitted part is correct... |
@lrapetti It should be fixed now, can you please try and report back? |
Done in bfca0db 🎉 |
Both the transmitter/receiver example, and the thrift message mentioned in the first comment seems to be working fine. Thanks a lot @drdanz! |
cc @xEnVrE |
I'm trying to use a thrift message defined using maps (the msg I am using is the following https://github.com/robotology/wearables/blob/feature/ICub-device-impl/msgs/thrift/WearableData.thrift), but I am experiencing the following problem after moving to
YARP 3.2.0
(where a major refactoring of idl thrift was done by @drdanz):I can play the dataset with
yarpdataplayer
and withyarp read ... /portname
I see the message beeing streamed correctly. However, when I try to access the port with a device implementingTypedReaderCallback
(the I am using is: https://github.com/robotology/wearables/tree/feature/ICub-device-impl/devices/IWearRemapper), theonRead()
method is called only once and the content of the message is empty. In fact:onRead()
After talking with @diegoferigo, he pointed out that the problem is analogous to what experienced in #1802, and may be a problem related to the deserialization.
The text was updated successfully, but these errors were encountered: