From 9c509310bcf361fada40ac10eb020a14ab7ca0e3 Mon Sep 17 00:00:00 2001 From: mitsudome-r Date: Tue, 9 Mar 2021 12:30:43 +0900 Subject: [PATCH] fix topic type name 'byte' to 'octet' Signed-off-by: mitsudome-r --- .../src/rosbridge_library/internal/message_conversion.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rosbridge_library/src/rosbridge_library/internal/message_conversion.py b/rosbridge_library/src/rosbridge_library/internal/message_conversion.py index f7c75610c..c5ffb355d 100644 --- a/rosbridge_library/src/rosbridge_library/internal/message_conversion.py +++ b/rosbridge_library/src/rosbridge_library/internal/message_conversion.py @@ -50,7 +50,7 @@ if sys.version_info >= (3, 0): type_map = { "bool": ["bool", "boolean"], - "int": ["int8", "byte", "uint8", "char", + "int": ["int8", "octet", "uint8", "char", "int16", "uint16", "int32", "uint32", "int64", "uint64", "float32", "float64"], "float": ["float32", "float64", "double", "float"], @@ -61,7 +61,7 @@ else: type_map = { "bool": ["bool"], - "int": ["int8", "byte", "uint8", "char", + "int": ["int8", "octet", "uint8", "char", "int16", "uint16", "int32", "uint32", "int64", "uint64", "float32", "float64"], "float": ["float32", "float64"], @@ -74,7 +74,7 @@ list_types = [list, tuple, np.ndarray, array.array] ros_time_types = ["builtin_interfaces/Time", "builtin_interfaces/Duration"] -ros_primitive_types = ["bool", "boolean", "byte", "char", "int8", "uint8", "int16", +ros_primitive_types = ["bool", "boolean", "octet", "char", "int8", "uint8", "int16", "uint16", "int32", "uint32", "int64", "uint64", "float32", "float64", "float", "double", "string"] ros_header_types = ["Header", "std_msgs/Header", "roslib/Header"]