class documentation

class EnumDataType:

View In Hierarchy

An enumeration DataType to mint into the server, and the values it lists.

Instance Variable name The DataType's browse name, qualified per Component because the server's address space is shared while two Components may hold different value sets for one ROS2 field. The qualifier is generated.
Instance Variable values The ROS2 value of each label, in the order a client should see them. The ROS2 value is kept, not the position, because a constant set need not start at zero or be contiguous.
name: str =

The DataType's browse name, qualified per Component because the server's address space is shared while two Components may hold different value sets for one ROS2 field. The qualifier is generated.

values: tuple[tuple[int, str], ...] =

The ROS2 value of each label, in the order a client should see them. The ROS2 value is kept, not the position, because a constant set need not start at zero or be contiguous.