Public Member Functions | Public Attributes | Static Public Attributes | Properties | Private Member Functions | Private Attributes
rqt_bag.bag_timeline.BagTimeline Class Reference
Inheritance diagram for rqt_bag.bag_timeline.BagTimeline:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def add_bag
def add_listener
def add_view
 Views / listeners.
def copy_region_to_bag
def get_context
def get_datatype
def get_entries
def get_entries_with_bags
def get_entry
def get_entry_after
def get_next_message_time
def handle_close
def has_listeners
def is_publishing
 Publishing.
def navigate_end
def navigate_fastforward
def navigate_play
def navigate_rewind
def navigate_start
def navigate_stop
def on_idle
 Playing.
def on_mouse_down
 Mouse events.
def on_mouse_move
def on_mouse_up
def on_mousewheel
def read_message
def record_bag
 Recording.
def remove_listener
def remove_view
def reset_zoom
def set_publishing_state
def start_background_task
 Copy messages to...
def start_publishing
def step_fixed
def step_next_message
def stop_background_task
def stop_publishing
def toggle_play
def toggle_play_all
def toggle_recording
def translate_timeline_left
def translate_timeline_right
def zoom_in
def zoom_out

Public Attributes

 background_progress
 background_task
 background_task_cancel
 desired_playhead
 last_frame
 last_playhead
 popups
 stick_to_end
 wrap

Static Public Attributes

tuple status_bar_changed_signal = Signal()

Properties

 play_all = property(_get_play_all, _set_play_all)
 play_speed = property(_get_play_speed, _set_play_speed)

Private Member Functions

def _create_player
def _export_region
def _get_end_stamp
def _get_play_all
def _get_play_speed
 Playhead.
def _get_start_stamp
def _get_topics
def _get_topics_by_datatype
def _message_recorded
def _run_export_region
def _set_play_all
def _set_play_speed
def _step_playhead

Private Attributes

 _bag_lock
 _bags
 _context
 _export_thread
 _listeners
 _max_play_speed
 _message_listener_threads
 _message_loaders
 _messages
 _messages_cvs
 _min_play_speed
 _play_all
 _play_speed
 _play_timer
 _player
 _playhead_lock
 _playhead_positions
 _playhead_positions_cvs
 _recorder
 _timeline_frame
 _views

Detailed Description

BagTimeline contains bag files, all information required to display the bag data visualization on the screen
Also handles events

Definition at line 52 of file bag_timeline.py.


Constructor & Destructor Documentation

def rqt_bag.bag_timeline.BagTimeline.__init__ (   self,
  context 
)
:param context: plugin context hook to enable adding rqt_bag plugin widgets as ROS_GUI snapin panes, ''PluginContext''

Definition at line 59 of file bag_timeline.py.


Member Function Documentation

Definition at line 484 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline._export_region (   self,
  path,
  topics,
  start_stamp,
  end_stamp 
) [private]
Starts a thread to save the current selection to a new bag file
:param path: filesystem path to write to, ''str''
:param topics: topics to write to the file, ''list(str)''
:param start_stamp: start of area to save, ''rospy.Time''
:param end_stamp: end of area to save, ''rospy.Time''

Definition at line 349 of file bag_timeline.py.

:return: last stamp in the bags, ''rospy.Time''

Definition at line 179 of file bag_timeline.py.

Definition at line 504 of file bag_timeline.py.

Playhead.

Definition at line 715 of file bag_timeline.py.

:return: first stamp in the bags, ''rospy.Time''

Definition at line 167 of file bag_timeline.py.

:return: sorted list of topic names, ''list(str)''

Definition at line 191 of file bag_timeline.py.

:return: dict of list of topics for each datatype, ''dict(datatype:list(topic))''

Definition at line 202 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline._message_recorded (   self,
  topic,
  msg,
  t 
) [private]

Definition at line 641 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline._run_export_region (   self,
  export_bag,
  topics,
  start_stamp,
  end_stamp,
  bag_entries 
) [private]
Threaded function that saves the current selection to a new bag file
:param export_bag: bagfile to write to, ''rosbag.bag''
:param topics: topics to write to the file, ''list(str)''
:param start_stamp: start of area to save, ''rospy.Time''
:param end_stamp: end of area to save, ''rospy.Time''

Definition at line 383 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline._set_play_all (   self,
  play_all 
) [private]

Definition at line 507 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline._set_play_speed (   self,
  play_speed 
) [private]

Definition at line 720 of file bag_timeline.py.

moves the playhead to the next position based on the desired position

Definition at line 527 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.add_bag (   self,
  bag 
)
creates an indexing thread for each new topic in the bag
fixes the boarders and notifies the indexing thread to index the new items bags
:param bag: ros bag file, ''rosbag.bag''

Definition at line 132 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.add_listener (   self,
  topic,
  listener 
)

Definition at line 687 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.add_view (   self,
  topic,
  view,
  frame 
)

Views / listeners.

Definition at line 673 of file bag_timeline.py.

Definition at line 345 of file bag_timeline.py.

:returns: the ROS_GUI context, 'PluginContext'

Definition at line 106 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.get_datatype (   self,
  topic 
)
:return: datatype associated with a topic, ''str''
:raises: if there are multiple datatypes assigned to a single topic, ''Exception''

Definition at line 213 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.get_entries (   self,
  topics,
  start_stamp,
  end_stamp 
)
generator function for bag entries
:param topics: list of topics to query, ''list(str)''
:param start_stamp: stamp to start at, ''rospy.Time''
:param end_stamp: stamp to end at, ''rospy,Time''
:returns: entries the bag file, ''msg''

Definition at line 227 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.get_entries_with_bags (   self,
  topic,
  start_stamp,
  end_stamp 
)
generator function for bag entries
:param topics: list of topics to query, ''list(str)''
:param start_stamp: stamp to start at, ''rospy.Time''
:param end_stamp: stamp to end at, ''rospy,Time''
:returns: tuple of (bag, entry) for the entries in the bag file, ''(rosbag.bag, msg)''

Definition at line 253 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.get_entry (   self,
  t,
  topic 
)
Access a bag entry
:param t: time, ''rospy.Time''
:param topic: the topic to be accessed, ''str''
:return: tuple of (bag, entry) corisponding to time t and topic, ''(rosbag.bag, msg)''

Definition at line 283 of file bag_timeline.py.

Access a bag entry
:param t: time, ''rospy.Time''
:return: tuple of (bag, entry) corisponding to time t, ''(rosbag.bag, msg)''

Definition at line 299 of file bag_timeline.py.

:return: time of the next message after the current playhead position,''rospy.Time''

Definition at line 314 of file bag_timeline.py.

Cleans up the timeline, bag and any threads

Definition at line 112 of file bag_timeline.py.

Definition at line 684 of file bag_timeline.py.

Publishing.

Definition at line 467 of file bag_timeline.py.

Definition at line 772 of file bag_timeline.py.

Definition at line 759 of file bag_timeline.py.

Definition at line 743 of file bag_timeline.py.

Definition at line 749 of file bag_timeline.py.

Definition at line 769 of file bag_timeline.py.

Definition at line 746 of file bag_timeline.py.

Playing.

Definition at line 523 of file bag_timeline.py.

Mouse events.

Definition at line 432 of file bag_timeline.py.

Definition at line 443 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.on_mouse_up (   self,
  event 
)

Definition at line 440 of file bag_timeline.py.

Definition at line 446 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.read_message (   self,
  bag,
  position 
)

Definition at line 427 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.record_bag (   self,
  filename,
  all = True,
  topics = [],
  regex = False,
  limit = 0 
)

Recording.

Definition at line 618 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.remove_listener (   self,
  topic,
  listener 
)

Definition at line 698 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.remove_view (   self,
  topic,
  view 
)

Definition at line 677 of file bag_timeline.py.

Definition at line 457 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.set_publishing_state (   self,
  start_publishing 
)

Definition at line 494 of file bag_timeline.py.

def rqt_bag.bag_timeline.BagTimeline.start_background_task (   self,
  background_task 
)

Copy messages to...

Verify that a background task is not currently running before starting a new one
:param background_task: name of the background task, ''str''

Definition at line 329 of file bag_timeline.py.

Definition at line 470 of file bag_timeline.py.

Moves the playhead a fixed distance into the future based on the current play speed

Definition at line 542 of file bag_timeline.py.

Move the playhead to the next message

Definition at line 588 of file bag_timeline.py.

Definition at line 342 of file bag_timeline.py.

Definition at line 477 of file bag_timeline.py.

Definition at line 737 of file bag_timeline.py.

Definition at line 519 of file bag_timeline.py.

Definition at line 636 of file bag_timeline.py.

Definition at line 460 of file bag_timeline.py.

Definition at line 463 of file bag_timeline.py.

Definition at line 451 of file bag_timeline.py.

Definition at line 454 of file bag_timeline.py.


Member Data Documentation

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 355 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 57 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.

Definition at line 61 of file bag_timeline.py.


Property Documentation

Definition at line 517 of file bag_timeline.py.

Definition at line 735 of file bag_timeline.py.


The documentation for this class was generated from the following file:


rqt_bag
Author(s): Aaron Blasdel
autogenerated on Fri Jan 3 2014 11:55:06