Skip to content

Commit

Permalink
fix topic type name 'byte' to 'octet'
Browse files Browse the repository at this point in the history
Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp>
  • Loading branch information
mitsudome-r committed Mar 9, 2021
1 parent 1a2c386 commit 9c50931
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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"],
Expand All @@ -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"]
Expand Down

0 comments on commit 9c50931

Please sign in to comment.