Closed ruimscarvalho98 closed 2 years ago
Is this issue still valid? Maybe https://github.com/eProsima/Micro-XRCE-DDS-Agent/pull/262 is related.
@ruimscarvalho98 can you give us an update?
Maybe eProsima/Micro-XRCE-DDS-Agent#262 is related.
Hey @pablogs9, I am a bit busy this week but I'll try to test this when I find some time and give you an update on it
Closing due to inactivity, reopen if needed.
Unexpected behaviour using different QoS settings
Steps to reproduce the issue
I have pushed the necessary files to this temporary repo.
ros2 run micro_ros_agent micro_ros_agent serial --dev /tmp/ttyS10 --baudrate 115200 -v6
im using tmp to avoid needing sudoros2 run csv_creator latency_test --ros-args -p num_samples:=100 -p num_bytes:=256 -p frequency:=1 -p id:=2 -p filename:="random_name"
or use the automated script with variable number of bytes.Expected behavior
The latency using both profiles should be similar or slightly lower in one of them (probably lower in best effort) and increases with the number of packets sent (CRTP uses 31 bytes of payload per packet and has an overhead due to the XRCE serial framing)
Actual behavior
The latency with RELIABLE QoS increases with the payload as expected but the BEST_EFFORT results are random, with significantly higher latency ~110ms vs ~25ms for 8B payload using USB with no clear change with respect to payload size and with significant message loss (i suspect the crazyflie receives but doesnt send back the pong)
Additional information
I also think the timeout to read from serial should be lower as the 200ms that are used are significantly higher than the RTT of the radio link which takes around 7ms meaning it is better to send more packets than wait for sufficient data from the serial stream.