-
Notifications
You must be signed in to change notification settings - Fork 87
Best effort QoS messages larger than UCLIENT_UDP_TRANSPORT_MTU not published #394
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
Comments
Here's a simple program that demonstrates what I am talking about: |
Hello @jimmy-mcelwain, DDS-XRCE standard does not define mechanisms for fragmenting XRCE Best Effort payloads. Notice Best Effort XRCE stream does not mean Best Effort DDS Publisher. Using Micro XRCE-DDS Client you can create a DDS Reliable Writer that uses a Best Effort XRCE Stream (client <-> agent communication). Unfortunately in micro-ROS, Best Effort Writer/Readers will use Best Effort XRCE streams and Reliable Writer/Readers will use Reliable XRCE Streams. Check here for reference. If you need to send bigger payload using the micro-ROS API you will need to increase the MTU or use a reliable configuration. If you are using Micro XRCE-DDS API directly, you can create a |
Thank you @pablogs9 for your response.
wouldn't that basically make the whole communication 'chain' best effort?
to make sure we understand you correctly, would that mean the communication between the Agent and the Client would be reliable/using a reliable stream, while between the Agent and other DDS readers best effort reliability would be used? |
Yes
That's it. In general, the Client (XRCE or micro-ROS) communicates with the Agent and the Agent communicates with the DDS dataspace. So you have two independent levels of reliability, from client to agent, and from agent to DDS. |
Would you happen to know of any documentation that shows how Client<->Agent and Agent<->DDS 'mapping' or a description of the different options, and how micro-ROS 'maps' ROS 2 QoS profiles to XRCE-DDS? Or is the source of |
Concerning XRCE, in the documentation, you will find how an XRCE-DDS stream can be configured: https://micro-xrce-dds.docs.eprosima.com/en/latest/client.html#streams. There is no "mapping", you just configure an XRCE channel to create and operate DDS entities defined by XML, references or binary. Concerning micro-ROS, it is simple: Best Effort Publisher or Subscribers will use Best Effort XRCE-DDS Streams and Reliable Publisher or Subscribers will use Reliable XRCE-DDS Streams. This is not configurable and its defined in the |
I understand. I was mostly thinking of what the 'matrix' of possible combinations (ie: XRCE-DDS vs ROS 2/DDS) would look like, and what the resulting 'final' QoS of the full chain would look like. Edit: oh and apologies for the noise. This seems like it should've been an RTFM ("message size sent or received by a best-effort stream must be less or equal than the MTU defined in the transport layer"). |
I guess that the full chain will only be affected by reliability.
No worries |
I am using the Micro-XRCE-DDS-Client with micro-ros using UDP, and I have been running into a problem where I am trying to publish a message of type
joint_state
usingrmw_qos_profile_sensor_data
, which uses best effort reliability.I am able to publish without a problem if my message size is under the
UCLIENT_UDP_TRANSPORT_MTU
, but if my message exceeds that size, then it does not publish.It does, however, publish correctly if I change the QoS profile to something with reliable reliability, such as rmw_qos_profile_default, or if I increase the
UCLIENT_UDP_TRANSPORT_MTU
to be larger than the message.Unless I misunderstand something or something is wrong in my configuration, it seems to me like the serialization/deserialization is not working properly for messages with best-effort reliability.
The text was updated successfully, but these errors were encountered: