ros2 / design

Design documentation for ROS 2.0 effort
http://design.ros2.org/
Apache License 2.0
215 stars 194 forks source link

Map char[N] to str in Python #323

Open danmou opened 2 years ago

danmou commented 2 years ago

The IDL-Python type conversion has various special cases, defined here, such as mapping octet[N] to bytes. However it seems like one obvious special case is missing: char[N] to bytes. A quick test on Galactic shows that this type is currently converted to a NumPy array. Is there any reason for this or is it an oversight?