rmw_fastrtps: Example using QoS from XML file error: Change payload size larger than the history payload size
Bug report
Hi team-
I am unable to override the default QoS which is important to replace best effort publishers with reliable ones, anywhere that ros libraries are using system default QoS, e.g. MoveIt, ros_control…
Perhaps the tutorial is out of date or I am using the wrong one, so I will focus the bug report on the demo nodes, but changing System Default QoS is my actual goal.
FYI, the ability to do this is critical to fixing regressions in our system after changing from cyclone to fastdds, because FastDDS is the only vendor that I see with Best Effort as System Default. (Took me a while to realise this was the culprit).
Thanks in advance!
Required Info:
- Operating System: Ubuntu 20.04
- Installation type: ros:humble docker image
- DDS implementation: FastDDS
- Client library (if applicable): rclcpp, at least
Steps to reproduce issue
Following the tutorial from https://fast-dds.docs.eprosima.com/en/v2.6.7/fastdds/ros2/ros2_configure.html#example inside the latest ros:humble docker image with fastrtps-2.6.7 gives error outputs, and no messages are received. Setting RMW_FASTRTPS_USE_QOS_FROM_XML to 0, they communicate.
root@207a292515dd:/# apt-cache policy ros-humble-fastrtps
ros-humble-fastrtps:
Installed: 2.6.7-1jammy.20240217.034748
Candidate: 2.6.8-1jammy.20240516.165858
Version table:
2.6.8-1jammy.20240516.165858 500
500 http://packages.ros.org/ros2/ubuntu jammy/main amd64 Packages
*** 2.6.7-1jammy.20240217.034748 100
100 /var/lib/dpkg/status
root@207a292515dd:/# source /ros_entrypoint.sh
root@207a292515dd:/# export RMW_IMPLEMENTATION=rmw_fastrtps_cpp
export FASTRTPS_DEFAULT_PROFILES_FILE=~/qos_example.xml
export RMW_FASTRTPS_USE_QOS_FROM_XML=1
ros2 run demo_nodes_cpp talker
2024-06-04 15:47:21.645 [RTPS_READER_HISTORY Error] Change payload size of '60' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.645 [RTPS_READER_HISTORY Error] Change payload size of '84' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.646 [RTPS_READER_HISTORY Error] Change payload size of '132' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.646 [RTPS_READER_HISTORY Error] Change payload size of '180' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.646 [RTPS_READER_HISTORY Error] Change payload size of '228' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.646 [RTPS_READER_HISTORY Error] Change payload size of '276' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.646 [RTPS_READER_HISTORY Error] Change payload size of '324' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.646 [RTPS_READER_HISTORY Error] Change payload size of '372' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.647 [RTPS_READER_HISTORY Error] Change payload size of '396' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.647 [RTPS_READER_HISTORY Error] Change payload size of '420' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.647 [RTPS_READER_HISTORY Error] Change payload size of '152' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.647 [RTPS_READER_HISTORY Error] Change payload size of '144' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.647 [RTPS_READER_HISTORY Error] Change payload size of '136' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.647 [RTPS_READER_HISTORY Error] Change payload size of '152' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:47:21.647 [RTPS_READER_HISTORY Error] Change payload size of '444' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
[INFO] [1717516042.648322757] [talker]: Publishing: 'Hello World: 1'
[INFO] [1717516043.648129469] [talker]: Publishing: 'Hello World: 2'
[INFO] [1717516044.648138200] [talker]: Publishing: 'Hello World: 3'
[INFO] [1717516045.648284646] [talker]: Publishing: 'Hello World: 4'
[INFO] [1717516046.648305890] [talker]: Publishing: 'Hello World: 5'
[INFO] [1717516047.648261385] [talker]: Publishing: 'Hello World: 6'
[INFO] [1717516048.648261728] [talker]: Publishing: 'Hello World: 7'
[INFO] [1717516049.648374561] [talker]: Publishing: 'Hello World: 8'
[INFO] [1717516050.648341978] [talker]: Publishing: 'Hello World: 9'
[INFO] [1717516051.648247708] [talker]: Publishing: 'Hello World: 10'
[INFO] [1717516052.648376908] [talker]: Publishing: 'Hello World: 11'
[INFO] [1717516053.648260889] [talker]: Publishing: 'Hello World: 12'
[INFO] [1717516054.648246948] [talker]: Publishing: 'Hello World: 13'
[INFO] [1717516055.648264282] [talker]: Publishing: 'Hello World: 14'
[INFO] [1717516056.648385399] [talker]: Publishing: 'Hello World: 15'
[INFO] [1717516057.648384829] [talker]: Publishing: 'Hello World: 16'
2024-06-04 15:48:40.571 [RTPS_READER_HISTORY Error] Change payload size of '448' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.261 [RTPS_READER_HISTORY Error] Change payload size of '424' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.262 [RTPS_READER_HISTORY Error] Change payload size of '400' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.262 [RTPS_READER_HISTORY Error] Change payload size of '376' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.263 [RTPS_READER_HISTORY Error] Change payload size of '328' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.263 [RTPS_READER_HISTORY Error] Change payload size of '280' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.264 [RTPS_READER_HISTORY Error] Change payload size of '232' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.264 [RTPS_READER_HISTORY Error] Change payload size of '184' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.264 [RTPS_READER_HISTORY Error] Change payload size of '136' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.265 [RTPS_READER_HISTORY Error] Change payload size of '88' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.265 [RTPS_READER_HISTORY Error] Change payload size of '64' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
[INFO] [1717516138.649314449] [talker]: Publishing: 'Hello World: 17'
[INFO] [1717516139.649315787] [talker]: Publishing: 'Hello World: 18'
[INFO] [1717516140.649333546] [talker]: Publishing: 'Hello World: 19'
[INFO] [1717516141.649328991] [talker]: Publishing: 'Hello World: 20'
[INFO] [1717516142.649359811] [talker]: Publishing: 'Hello World: 21'
[INFO] [1717516143.649368114] [talker]: Publishing: 'Hello World: 22'
^C[INFO] [1717516144.036614326] [rclcpp]: signal_handler(signum=2)
2024-06-04 15:49:04.036 [RTPS_READER_HISTORY Error] Change payload size of '420' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:49:04.037 [RTPS_READER_HISTORY Error] Change payload size of '396' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:49:04.037 [RTPS_READER_HISTORY Error] Change payload size of '372' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:49:04.037 [RTPS_READER_HISTORY Error] Change payload size of '324' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:49:04.038 [RTPS_READER_HISTORY Error] Change payload size of '276' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:49:04.038 [RTPS_READER_HISTORY Error] Change payload size of '228' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:49:04.038 [RTPS_READER_HISTORY Error] Change payload size of '180' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:49:04.038 [RTPS_READER_HISTORY Error] Change payload size of '132' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:49:04.038 [RTPS_READER_HISTORY Error] Change payload size of '84' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:49:04.039 [RTPS_READER_HISTORY Error] Change payload size of '60' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
root@207a292515dd:/# export RMW_FASTRTPS_USE_QOS_FROM_XML=0
root@207a292515dd:/# ros2 run demo_nodes_cpp talker
[INFO] [1717516530.123463862] [talker]: Publishing: 'Hello World: 1'
[INFO] [1717516531.123415707] [talker]: Publishing: 'Hello World: 2'
[INFO] [1717516532.123469195] [talker]: Publishing: 'Hello World: 3'
[INFO] [1717516533.123471950] [talker]: Publishing: 'Hello World: 4'
[INFO] [1717516534.123489810] [talker]: Publishing: 'Hello World: 5'
[INFO] [1717516535.123446846] [talker]: Publishing: 'Hello World: 6'
[INFO] [1717516536.123489267] [talker]: Publishing: 'Hello World: 7'
^C[INFO] [1717516536.850334397] [rclcpp]: signal_handler(signum=2)
root@207a292515dd:/# source /ros_entrypoint.sh
root@207a292515dd:/# export RMW_IMPLEMENTATION=rmw_fastrtps_cpp
export FASTRTPS_DEFAULT_PROFILES_FILE=~/qos_example.xml
export RMW_FASTRTPS_USE_QOS_FROM_XML=1
ros2 run demo_nodes_cpp listener
2024-06-04 15:48:40.489 [RTPS_READER_HISTORY Error] Change payload size of '64' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.490 [RTPS_READER_HISTORY Error] Change payload size of '88' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.490 [RTPS_READER_HISTORY Error] Change payload size of '136' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.490 [RTPS_READER_HISTORY Error] Change payload size of '184' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.490 [RTPS_READER_HISTORY Error] Change payload size of '232' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.491 [RTPS_READER_HISTORY Error] Change payload size of '280' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.491 [RTPS_READER_HISTORY Error] Change payload size of '328' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.491 [RTPS_READER_HISTORY Error] Change payload size of '376' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.491 [RTPS_READER_HISTORY Error] Change payload size of '400' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.491 [RTPS_READER_HISTORY Error] Change payload size of '424' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.492 [RTPS_READER_HISTORY Error] Change payload size of '152' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.492 [RTPS_READER_HISTORY Error] Change payload size of '152' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.492 [RTPS_READER_HISTORY Error] Change payload size of '144' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.492 [RTPS_READER_HISTORY Error] Change payload size of '152' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.492 [RTPS_READER_HISTORY Error] Change payload size of '448' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.642 [RTPS_READER_HISTORY Error] Change payload size of '444' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:40.649 [RTPS_READER_HISTORY Error] Change payload size of '24' bytes is larger than the history payload size of '15' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:41.649 [RTPS_READER_HISTORY Error] Change payload size of '24' bytes is larger than the history payload size of '15' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:42.649 [RTPS_READER_HISTORY Error] Change payload size of '24' bytes is larger than the history payload size of '15' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:43.649 [RTPS_READER_HISTORY Error] Change payload size of '24' bytes is larger than the history payload size of '15' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:44.649 [RTPS_READER_HISTORY Error] Change payload size of '24' bytes is larger than the history payload size of '15' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:45.649 [RTPS_READER_HISTORY Error] Change payload size of '24' bytes is larger than the history payload size of '15' bytes and cannot be resized. -> Function can_change_be_added_nts
^C[INFO] [1717516138.261164378] [rclcpp]: signal_handler(signum=2)
2024-06-04 15:48:58.261 [RTPS_READER_HISTORY Error] Change payload size of '424' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.261 [RTPS_READER_HISTORY Error] Change payload size of '400' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.262 [RTPS_READER_HISTORY Error] Change payload size of '376' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.263 [RTPS_READER_HISTORY Error] Change payload size of '328' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.263 [RTPS_READER_HISTORY Error] Change payload size of '280' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.263 [RTPS_READER_HISTORY Error] Change payload size of '232' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.264 [RTPS_READER_HISTORY Error] Change payload size of '184' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.264 [RTPS_READER_HISTORY Error] Change payload size of '136' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.265 [RTPS_READER_HISTORY Error] Change payload size of '88' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
2024-06-04 15:48:58.265 [RTPS_READER_HISTORY Error] Change payload size of '64' bytes is larger than the history payload size of '35' bytes and cannot be resized. -> Function can_change_be_added_nts
root@207a292515dd:/# export RMW_FASTRTPS_USE_QOS_FROM_XML=0
root@207a292515dd:/# ros2 run demo_nodes_cpp listener
[INFO] [1717516534.233868032] [listener]: I heard: [Hello World: 5]
[INFO] [1717516535.123809770] [listener]: I heard: [Hello World: 6]
[INFO] [1717516536.123939060] [listener]: I heard: [Hello World: 7]
^C[INFO] [1717516536.321974922] [rclcpp]: signal_handler(signum=2)
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 16 (8 by maintainers)
from a quick glimpse it sounds like I’ve missed the distinction between FASTRTPS_DEFAULT_PROFILES_FILE and RMW_FASTRTPS_USE_QOS_FROM_XML - this response looks very helpful, thanks @EduPonz Let me read in detail and get back to you 👍