ros-drivers / transport_drivers

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

serial receive data only 1 byte instead of a list of byte #94

Open TZECHIN6 opened 1 year ago

TZECHIN6 commented 1 year ago

When receiving the serial data back... the data is present in a single byte by byte.. not in a list of bytes. for example [ 01 10 00 02], will show as 01, 10, 00, 02 (break into 4 messages with only one byte in the data field). I am not sure if it is normal behaviour or not...

For sending, as I pack the payload as a list first, when echoing the /serial_write, the data field shows all the bytes in a list.

How can I also achieve this on the receiving side? otherwise, it is pretty hard to determine the feedback signal