Skip to content

Commit

Permalink
Fix length-limited list types
Browse files Browse the repository at this point in the history
  • Loading branch information
tilt-silvie committed Mar 11, 2024
1 parent 7d78af1 commit 2be890d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
]
ros_header_types = ["Header", "std_msgs/Header", "roslib/Header"]
ros_binary_types = ["uint8[]", "char[]", "sequence<uint8>", "sequence<char>"]
list_tokens = re.compile("<(.+?)>")
# Remove the list type wrapper, and length specifier, from rostypes i.e. sequence<double, 3>
list_tokens = re.compile("<(.+?)(, \d+)?>")
bounded_array_tokens = re.compile(r"(.+)\[.*\]")
ros_binary_types_list_braces = [
("uint8[]", re.compile(r"uint8\[[^\]]*\]")),
Expand Down

1 comment on commit 2be890d

@teyssieuman
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doed it fix RobotWebTools#899 ?

Please sign in to comment.