Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes
starmac_tools.load_bag.BagLoader Class Reference

List of all members.

Public Member Functions

def __init__
def get_topics
def load_mat
def save_mat

Public Attributes

 b
 filename
 start_stamp
 topic_msg_counts
 verbose

Static Public Attributes

string PICKLED_EXT = '.sbag.gz'

Private Member Functions

def _cellarray_to_dict
def _dict_to_cellarray
def _load
def _load_pickled
def _load_process_topic
def _new_data
def _save_pickled
def _strlist_to_cellarray
def _sub_load_init_array

Private Attributes

 _data
 _dict_names
 _ros_types

Detailed Description

Definition at line 61 of file load_bag.py.


Constructor & Destructor Documentation

def starmac_tools.load_bag.BagLoader.__init__ (   self,
  filename = None,
  verbose = False,
  skip_images = True 
)

Definition at line 96 of file load_bag.py.


Member Function Documentation

def starmac_tools.load_bag.BagLoader._cellarray_to_dict (   self,
  c 
) [private]
Helper function for load_mat

Definition at line 344 of file load_bag.py.

def starmac_tools.load_bag.BagLoader._dict_to_cellarray (   self,
  d 
) [private]
Helper function for save_mat

Definition at line 333 of file load_bag.py.

def starmac_tools.load_bag.BagLoader._load (   self,
  filename 
) [private]

Definition at line 144 of file load_bag.py.

def starmac_tools.load_bag.BagLoader._load_pickled (   self,
  filename 
) [private]
Load a pickled and gzipped representation of the data. Unfortunately this seems to run very slowly..

Definition at line 126 of file load_bag.py.

def starmac_tools.load_bag.BagLoader._load_process_topic (   self,
  topic 
) [private]

Definition at line 189 of file load_bag.py.

def starmac_tools.load_bag.BagLoader._new_data (   self,
  name,
  init_data,
  ros_type = None 
) [private]
Initiaize a spot in self._data for the given name (topic+field), with 

Definition at line 180 of file load_bag.py.

def starmac_tools.load_bag.BagLoader._save_pickled (   self,
  filename 
) [private]
Save a pickled and gzipped representation of the loaded data. Unfortunately this seems to run very slowly..

Definition at line 108 of file load_bag.py.

def starmac_tools.load_bag.BagLoader._strlist_to_cellarray (   self,
  sl 
) [private]
Helper function for save_mat

Definition at line 357 of file load_bag.py.

def starmac_tools.load_bag.BagLoader._sub_load_init_array (   self,
  i,
  depth,
  base,
  msg,
  time,
  N,
  get_header = False 
) [private]

Definition at line 215 of file load_bag.py.

Definition at line 367 of file load_bag.py.

def starmac_tools.load_bag.BagLoader.load_mat (   self,
  mat_filename 
)
Load data from a MATLAB (version 5) .mat file

Definition at line 315 of file load_bag.py.

def starmac_tools.load_bag.BagLoader.save_mat (   self,
  mat_filename 
)
Save data to a MATLAB (version 5) .mat file. Note that not all data can be saved in this format; basically only
fields that are primitive types or arrays of primitive types (besides strings) are saved.

Definition at line 285 of file load_bag.py.


Member Data Documentation

Definition at line 96 of file load_bag.py.

Definition at line 96 of file load_bag.py.

Definition at line 96 of file load_bag.py.

Definition at line 144 of file load_bag.py.

Definition at line 96 of file load_bag.py.

string starmac_tools::load_bag.BagLoader::PICKLED_EXT = '.sbag.gz' [static]

Definition at line 62 of file load_bag.py.

Definition at line 128 of file load_bag.py.

Definition at line 128 of file load_bag.py.

Definition at line 96 of file load_bag.py.


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


starmac_tools
Author(s): bouffard
autogenerated on Sun Jan 5 2014 11:38:35