topic_monitor.scripts.topic_monitor module
- class topic_monitor.scripts.topic_monitor.DataReceivingThread(topic_monitor, options)
Bases:
Thread
- run()
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
- stop()
- class topic_monitor.scripts.topic_monitor.MonitoredTopic(topic_id, stale_time, lock)
Bases:
object
Monitor for the statistics and status of a single topic.
- allowed_latency_timer_callback()
- check_status(current_time=1720779613.4925876)
- current_reception_rate(window_size)
- get_data_from_msg(msg)
- increment_expected_value()
- topic_data_callback(msg, logger_=rclpy.logging.get_logger)
- class topic_monitor.scripts.topic_monitor.TopicMonitor(window_size)
Bases:
object
Monitor of a set of topics that match a specified topic name pattern.
- add_monitored_topic(topic_type, topic_name, node, qos_profile, expected_period=1.0, allowed_latency=1.0, stale_time=1.0)
- calculate_statistics()
- check_status()
- get_topic_info(topic_name)
Infer topic info (e.g. QoS reliability) from the topic name.
- get_window_size()
- is_supported_type(type_name)
- output_status()
- update_topic_statuses()
- class topic_monitor.scripts.topic_monitor.TopicMonitorDisplay(topic_monitor, update_period)
Bases:
object
Display of the monitored topic reception rates.
- add_monitored_topic(topic_name)
- make_plot()
- update_display()
- topic_monitor.scripts.topic_monitor.main()
- topic_monitor.scripts.topic_monitor.run_topic_listening(node, topic_monitor, options)
Subscribe to relevant topics and manage the data received from susbcriptions.