rqt_robot_monitor.timeline_view module

class rqt_robot_monitor.timeline_view.TimelineView(*args: Any, **kwargs: Any)

Bases: QGraphicsView

This class draws a graphical representation of a timeline.

This is ONLY the bar and colored boxes.

When you instantiate this class, do NOT forget to call set_init_data to set necessary data.

mouseMoveEvent(event)
mousePressEvent(event)
mouseReleaseEvent(event)
paused

alias of bool

pos_from_x(x)

Get the index in the timeline from the mouse click position

Parameters:

x – Position relative to self widget.

Returns:

Index

position_changed

alias of int

set_levels(levels)
set_marker_pos(xpos)

Set marker position from index

Parameters:

xpos – Marker index