Classes | |
class | CallbackEcho |
class | ROSTopicException |
class | ROSTopicIOException |
Functions | |
def | _check_master |
def | _get_topic_type |
def | _master_get_topic_types |
def | _rostopic_cmd_echo |
COMMAND PROCESSING #####################################################################. | |
def | _rostopic_echo |
def | _sleep |
def | add_topic_listener |
def | cogni_topic_echo |
def | create_field_filter |
def | get_topic_class |
def | get_topic_type |
def | is_interruption_request |
def | msgevalgen |
def | update_topics |
Variables | |
dictionary | _active_listeners = {} |
dictionary | _subscribers = {} |
string | NAME = 'rostopic' |
def ros_topic_listener._check_master | ( | ) | [private] |
Make sure that master is available :raises: :exc:`ROSTopicException` If unable to successfully communicate with master
Definition at line 77 of file ros_topic_listener.py.
def ros_topic_listener._get_topic_type | ( | topic | ) | [private] |
subroutine for getting the topic type :returns: topic type, real topic name and fn to evaluate the message instance if the topic points to a field within a topic, e.g. /rosout/msg, ``(str, str, fn)``
Definition at line 118 of file ros_topic_listener.py.
def ros_topic_listener._master_get_topic_types | ( | master | ) | [private] |
Definition at line 87 of file ros_topic_listener.py.
def ros_topic_listener._rostopic_cmd_echo | ( | argv | ) | [private] |
COMMAND PROCESSING #####################################################################.
Definition at line 395 of file ros_topic_listener.py.
def ros_topic_listener._rostopic_echo | ( | topic, | |
callback_echo, | |||
bag_file = None , |
|||
echo_all_topics = False |
|||
) | [private] |
Print new messages on topic to screen. :param topic: topic name, ``str`` :param bag_file: name of bag file to echo messages from or ``None``, ``str``
Definition at line 331 of file ros_topic_listener.py.
def ros_topic_listener._sleep | ( | duration | ) | [private] |
Definition at line 96 of file ros_topic_listener.py.
def ros_topic_listener.add_topic_listener | ( | topic | ) |
Definition at line 568 of file ros_topic_listener.py.
def ros_topic_listener.cogni_topic_echo | ( | topic, | |
callback_echo | |||
) |
Print new messages on topic to screen. :param topic: topic name, ``str`` :param bag_file: name of bag file to echo messages from or ``None``, ``str``
Definition at line 490 of file ros_topic_listener.py.
def ros_topic_listener.create_field_filter | ( | echo_nostr, | |
echo_noarr | |||
) |
Definition at line 476 of file ros_topic_listener.py.
def ros_topic_listener.get_topic_class | ( | topic, | |
blocking = False |
|||
) |
Get the topic message class :returns: message class for topic, real topic name, and function for evaluating message objects into the subtopic (or ``None``). ``(Message, str, str)`` :raises: :exc:`ROSTopicException` If topic type cannot be determined or loaded
Definition at line 169 of file ros_topic_listener.py.
def ros_topic_listener.get_topic_type | ( | topic, | |
blocking = False |
|||
) |
Get the topic type. :param topic: topic name, ``str`` :param blocking: (default False) block until topic becomes available, ``bool`` :returns: topic type, real topic name and fn to evaluate the message instance if the topic points to a field within a topic, e.g. /rosout/msg. fn is None otherwise. ``(str, str, fn)`` :raises: :exc:`ROSTopicException` If master cannot be contacted
Definition at line 145 of file ros_topic_listener.py.
Definition at line 573 of file ros_topic_listener.py.
def ros_topic_listener.msgevalgen | ( | pattern | ) |
Generates a function that returns the relevant field (aka 'subtopic') of a Message object :param pattern: subtopic, e.g. /x. Must have a leading '/' if specified, ``str`` :returns: function that converts a message into the desired value, ``fn(Message) -> value``
Definition at line 101 of file ros_topic_listener.py.
def ros_topic_listener.update_topics | ( | ) |
Definition at line 549 of file ros_topic_listener.py.
dictionary ros_topic_listener::_active_listeners = {} |
Definition at line 546 of file ros_topic_listener.py.
dictionary ros_topic_listener::_subscribers = {} |
Definition at line 547 of file ros_topic_listener.py.
string ros_topic_listener::NAME = 'rostopic' |
Definition at line 43 of file ros_topic_listener.py.