ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There is no native uint8 type in Python. As a result the field type is represented as an int in Python (see the current design document: http://design.ros2.org/articles/generated_interfaces_python.html).

In the future (scheduled for Crystal) sequences of numeric values will be mapped to a more strictly typed numpy type (see the new design document: https://github.com/ros2/design/blob/ff1d1e7c491d3e6ba9189c95c9cbe37745c9fe4e/articles/142_idl.md#type-mapping). This will also improve the memory usage of large lists.