RobotWebTools / rosbridge_suite

Server Implementations of the rosbridge v2 Protocol
https://robotwebtools.github.io
BSD 3-Clause "New" or "Revised" License
866 stars 506 forks source link

fix list field bug #912

Closed tilt-silvie closed 4 months ago

tilt-silvie commented 4 months ago

Public API Changes None

Description The issue was with the array's rostype being in a format like <float, 1>, which includes a number after the type separated by a comma. When this is passed to _from_list_inst(), it returns a rostype like float, 1, which does not qualify as a primitive type in the _from_list_inst() and _from_inst() methods.

As a solution, I added a patch in the _from_list_inst() method that treats the string before the comma as the rostype.

Relavant to: https://github.com/RobotWebTools/rosbridge_suite/issues/910

tilt-silvie commented 4 months ago

duplicated https://github.com/RobotWebTools/rosbridge_suite/pull/840