Closed mibcat closed 4 years ago
addendum: the observed limitation depends on the number or string array elements (n) and follows the formula: character limit = 40 - (n-1)*4
Tested in the following cases:
array size | character limit |
---|---|
1 | 40 (single string is limited to 40 characters!) |
2 | 36 |
3 | 32 |
4 | 28 |
5 | 24 (not tested explicitly) |
6 | 20 (where the problem started ;-)) |
This issue was caused by a firmware bug of the implemented virtual COM port (CDC) if the USB data size exceeds 128 bytes. After fixing everything is working as expected - sorry for blaming rosserial ;-)
Hi !
I'm trying to read in an array of strings and observed a strange limitation: as soon as the total amount of characters in this array exceeds 20 the getParam() function fails with:
for example this definition in a yaml file which is loaded to the parameter server works:
but adding one character will lead to an error:
It does not matter how the characters are split across the array. Only if the sum exceeds 20 the timeout occurs.
On the other side I'm able to read in a single string of more than 30 characters without a problem - so it should not be a simple buffer size issue.
Thanks for help, Michael.