Functions | |
def | get_field_type |
def | get_slot_type |
def | get_type_class |
def | is_slot_numeric |
def rqt_py_common.topic_helpers.get_field_type | ( | topic_name | ) |
Get the Python type of a specific field in the given registered topic. If the field is an array, the type of the array's values are returned and the is_array flag is set to True. This is a static type check, so it works for unpublished topics and with empty arrays. :param topic_name: name of field of a registered topic, ``str``, i.e. '/rosout/file' :returns: field_type, is_array
Definition at line 47 of file topic_helpers.py.
def rqt_py_common.topic_helpers.get_slot_type | ( | message_class, | |
slot_path | |||
) |
Get the Python type of a specific slot in the given message class. If the field is an array, the type of the array's values are returned and the is_array flag is set to True. This is a static type check, so it works for unpublished topics and with empty arrays. :param message_class: message class type, ``type``, usually inherits from genpy.message.Message :param slot_path: path to the slot inside the message class, ``str``, i.e. 'header/seq' :returns: field_type, is_array
Definition at line 71 of file topic_helpers.py.
def rqt_py_common.topic_helpers.get_type_class | ( | type_name | ) |
Definition at line 36 of file topic_helpers.py.
def rqt_py_common.topic_helpers.is_slot_numeric | ( | topic_name | ) |
Check is a slot in the given topic is numeric, or an array of numeric values. This is a static type check, so it works for unpublished topics and with empty arrays. :param topic_name: name of field of a registered topic, ``str``, i.e. '/rosout/file' :returns: is_numeric, is_array, description
Definition at line 99 of file topic_helpers.py.