pymoveit2.utils module

pymoveit2.utils.enum_to_str(enum_class: Type, value: int) str

Converts a ROS2 enum value to its string name.

Args:

enum_class: The ROS2 message class containing the enum constants. value: The integer value of the enum.

Returns:

str: The name of the enum constant, or the value with “UNKNOWN NAME” if not found.