class documentation
class CallbackEcho(object):
Constructor: CallbackEcho(topic, msg_eval, plot, filter_fn, ...)
Callback instance that can print callback data in a variety of formats. Used for all variants of rostopic echo
Method | __init__ |
No summary |
Method | callback |
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, ... |
Method | custom |
Undocumented |
Instance Variable | count |
Undocumented |
Instance Variable | done |
Undocumented |
Instance Variable | echo |
Undocumented |
Instance Variable | field |
Undocumented |
Instance Variable | filter |
Undocumented |
Instance Variable | first |
Undocumented |
Instance Variable | fixed |
Undocumented |
Instance Variable | last |
Undocumented |
Instance Variable | last |
Undocumented |
Instance Variable | max |
Undocumented |
Instance Variable | msg |
Undocumented |
Instance Variable | offset |
Undocumented |
Instance Variable | plot |
Undocumented |
Instance Variable | prefix |
Undocumented |
Instance Variable | sep |
Undocumented |
Instance Variable | str |
Undocumented |
Instance Variable | suffix |
Undocumented |
Instance Variable | topic |
Undocumented |
Instance Variable | value |
Undocumented |
def __init__(self, topic, msg_eval, plot=False, filter_fn=None, echo_clear=False, echo_all_topics=False, offset_time=False, count=None, field_filter_fn=None, fixed_numeric_width=None, value_transform_fn=None):
¶
Parameters | |
topic | Undocumented |
msg | Undocumented |
plot | if True, echo in plotting-friendly format (csv), bool |
filter | function that evaluates to True if message is to be echo'd, fn(topic, msg) |
echo | Undocumented |
echo | (optional) if True, echo all messages in bag, bool |
offset | (optional) if True, display time as offset from current time, bool |
count | number of messages to echo, None for infinite, int |
field | filter the fields that are stringified for Messages, fn(Message)->iter(str) |
fixed | fixed width for numeric values, None for automatic, int |
value | transform the values of Messages, fn(Message)->Message |
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, genpy.Time
def custom_strify_message(self, val, indent='', time_offset=None, current_time=None, field_filter=None, type_information=None, fixed_numeric_width=None, value_transform=None):
¶
Undocumented