-
Notifications
You must be signed in to change notification settings - Fork 10
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
[T256] Stream pose data as numerical value #7
Comments
Hi @HosameldinMohamed ! For me is ok if
is added and is not replacing the MAS interfaces implementation cc @randaz81 |
Yes, the |
Ok cool, so feel free to proceed with the PR 👍🏻 |
As @randaz81 noted in the PR comment, this may not be the most elegant solution, as the A better solution could be to have some mechanism in YARP to automatically publish MAS selected sensors on vectors (see robotology/yarp#1693) or to modify software to read structured data (see robotology/wb-toolbox#116 for WB-Toolbox, not sure if there is any plan for doing something similar at yarpscope level). However, this addition is not invasive, so I think we can adopt it until there is a better alternative. |
I created a port monitor to support your use case: robotology/yarp#2610 NB: I used RPY angles instead of quaternions. Please tell me if quaternions are mandatory for you. |
Thanks @randaz81! I am trying to test it but I am not able to do it. I installed After launching this device:
I put
But I am getting an error.
Yes, it would be very nice if we can receive the quaternions. |
Can you report the error you get? If you compiled YARP manually, did you enabled the |
I double-checked, it's enabled. @traversaro My mistake is that I didn't create the input port After I did it I got when running the connect command mentioned above:
But then in the terminal of the input port I got this:
I am not sure if the |
Perhaps you need also to enable the option |
Thanks @traversaro, I wasn't aware of that. Now it works fine OK. Probably I am missing some basic knowledge of YARP ports. But with what I did in #7 (comment), the |
In general in YARP ports are bi-directional entities, unless you specify them as input or output ports in the code. The
|
@traversaro Yes, I did the same. I could see the The problem is how to use the WB-Toolbox Simulink block
|
The
To be able to use portmonitor with the |
Actually this is already tracked in robotology/wb-toolbox#42, no need to open a new issue. |
Hi @traversaro @randaz81, how do you think we can proceed with this? |
Hi! This issue is probably outdated! For us, our use has changed (the need to stream the values as a vectored port). We were using Simulink and WBT but not at the moment! |
Ok, at this point I think we can close the issue if there is no use case from you, thanks! |
I am using the device to stream the T265 pose and I wanted to stream the data in Simulink using WB Toolbox.
The issue is that I had to launch the device as
multipleanalogsensorsserver
and can't be read directly using WBToolbox currently robotology/wb-toolbox#116.So I modified it slightly to publish the data as
analogServer
by implementing theIAnalogSensor
interface. So by runningI am able to read the port easily in Simulink. It publishes the pose as:
I did the modifications in a fork https://github.com/HosameldinMohamed/yarp-device-realsense2/tree/streamSignalPort
Do you think it makes sense to add this feature? Or something similar? Thanks.
The text was updated successfully, but these errors were encountered: