Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
diagnostic_analysis.exporter.LogExporter Class Reference

Converts and processes diagnostics logs to CSV format. More...

Public Member Functions

def __init__ (self, output_dir, logfile)
 
def finish_logfile (self)
 Close logfile, append data to header. More...
 
def get_filename (self, name)
 Return filename of output. More...
 
def process_log (self)
 Use rosrecord to play back bagfile. More...
 
def remove_files (self)
 Removes all output files. More...
 

Public Attributes

 logfile
 
 output_dir
 

Private Member Functions

def _update (self, topic, msg)
 Creates and updates data files with new messages. More...
 

Private Attributes

 _stats
 
 _temp
 

Detailed Description

Converts and processes diagnostics logs to CSV format.

Used by scripts/export_csv.py to convert diagnostics log files to CSV format

Definition at line 47 of file exporter.py.

Constructor & Destructor Documentation

◆ __init__()

def diagnostic_analysis.exporter.LogExporter.__init__ (   self,
  output_dir,
  logfile 
)
Parameters
output_dirstr : Complete path of output dir. If None, uses temp dir
logfilestr : path of logfile

Definition at line 50 of file exporter.py.

Member Function Documentation

◆ _update()

def diagnostic_analysis.exporter.LogExporter._update (   self,
  topic,
  msg 
)
private

Creates and updates data files with new messages.

Definition at line 85 of file exporter.py.

◆ finish_logfile()

def diagnostic_analysis.exporter.LogExporter.finish_logfile (   self)

Close logfile, append data to header.

Definition at line 136 of file exporter.py.

◆ get_filename()

def diagnostic_analysis.exporter.LogExporter.get_filename (   self,
  name 
)

Return filename of output.

Parameters
namestr : DiagnosticStatus name ex: 'Mechanism Control'

Definition at line 73 of file exporter.py.

◆ process_log()

def diagnostic_analysis.exporter.LogExporter.process_log (   self)

Use rosrecord to play back bagfile.

Definition at line 79 of file exporter.py.

◆ remove_files()

def diagnostic_analysis.exporter.LogExporter.remove_files (   self)

Removes all output files.

Removes directory if temp

Definition at line 64 of file exporter.py.

Member Data Documentation

◆ _stats

diagnostic_analysis.exporter.LogExporter._stats
private

Definition at line 52 of file exporter.py.

◆ _temp

diagnostic_analysis.exporter.LogExporter._temp
private

Definition at line 51 of file exporter.py.

◆ logfile

diagnostic_analysis.exporter.LogExporter.logfile

Definition at line 53 of file exporter.py.

◆ output_dir

diagnostic_analysis.exporter.LogExporter.output_dir

Definition at line 55 of file exporter.py.


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


diagnostic_analysis
Author(s): Kevin Watts, Brice Rebsamen , Eric Berger, Kevin Watts
autogenerated on Mon Feb 28 2022 22:18:15