Skip to content

console::CallbackEcho

More...

Inherits from object

Public Functions

Name
def init(self self, topic topic)
def callback(self self, data data, topic topic, current_time current_time =None)

Public Attributes

Name
topic
count
prefix
suffix
done
str_fn
first
last_msg_eval
last_topic

Detailed Description

class console::CallbackEcho;
Callback instance that can print callback data in a variety of
formats. Used for all variants of rostopic echo

Public Functions Documentation

function init

def __init__(
    self self,
    topic topic
)
:param plot: if ``True``, echo in plotting-friendly format, ``bool``
:param filter_fn: function that evaluates to ``True`` if message is to be echo'd, ``fn(topic, msg)``
:param echo_all_topics: (optional) if ``True``, echo all messages in bag, ``bool``
:param offset_time: (optional) if ``True``, display time as offset from current time, ``bool``
:param count: number of messages to echo, ``None`` for infinite, ``int``
:param field_filter_fn: filter the fields that are strified for Messages, ``fn(Message)->iter(str)``

function callback

def callback(
    self self,
    data data,
    topic topic,
    current_time current_time =None
)
Callback to pass to rospy.Subscriber or to call
manually. rospy.Subscriber constructor must also pass in the
topic name as an additional arg
:param data: Message
:param topic: topic name, ``str``
:param current_time: override calculation of current time, :class:`genpy.Time`

Public Attributes Documentation

variable topic

topic;

variable count

count;

variable prefix

prefix;

variable suffix

suffix;

variable done

done;

variable str_fn

str_fn;

variable first

first;

variable last_msg_eval

last_msg_eval;

variable last_topic

last_topic;

Updated on 2024-03-07 at 10:30:48 +0000


Last update: March 7, 2024