ros-drivers / transport_drivers

A set of ROS2 drivers for transport-layer protocols.
Apache License 2.0
93 stars 56 forks source link

Fix udp_msgs conversion #90

Closed pawelir closed 1 year ago

pawelir commented 1 year ago

PR motivation

During the conversion from and to udp_msgs, output containers are resized incorrectly. They are currently resized to the size of the input container in bytes not the number of the input container's elements number. This results in losing data during conversion or the creation of oversized containers.

PR description

This pull request fixes the udp_msgs conversion. The output container is resized to be compliant with the input container in size.

PR modifications