qualification::qual_frame::QualificationFrame Class Reference

Main frame of qualification. More...

Inheritance diagram for qualification::qual_frame::QualificationFrame:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def begin_test
 Called from loader panel.
def cancel
 Records test cancel, shuts down test.
def get_inventory_object
 Loads inventory object, prompts for username/password if needed.
def launch_file
 Uses roslaunch_caller to launch file.
def launch_post_subtest
 Launches post subtest scripts if any, blocks until complete.
def launch_pre_subtest
 Launches pre subtest scripts if any, blocks until complete.
def launch_script
 Uses roslaunch_caller to launch script.
def launches_running
 Checks if we have any launch files running.
def log
 Logs test results in test log, displays to user.
def login_to_invent
 Gets invent login from username/password.
def next_subtest
 Proceed to next subtest if we have one, or finish test.
def on_close
 Stops launches once we close window.
def on_spin
 Spins all launch files once, called by timer.
def prestartup_call
 Launches prestartup script.
def prestartup_done_callback
 Hit from 'prestartup_done' service or timeout.
def prestartup_finished
 Checks result of last prestartup script.
def record_tests
 Launches rosrecord node to record diagnostics for test.
def reset
 Resets the frame to the starting state.
def reset_params
 Resets parameters of qualification node to starting state.
def retry_subtest
 Retries subtest, logs retry results.
def run_prestartup_scripts
 Run any pre_startup scripts synchronously.
def set_top_panel
 Sets top panel of main panel.
def show_plots
 Displays results of qualification subtests.
def show_results
 Shows final results of qualification test.
def shutdown_callback
 Callback for shutdown script.
def shutdown_finished
 Stops shutdown launch, cleans up test.
def start_continuous_testing
def start_qualification
 Launches program for either onboard, component conf or test cart tests.
def start_subtest
 Launches subtest and displays waiting page.
def stop_continuous_testing
def stop_launches
 Stops all running launch files, blocks until complete.
def submit_results
 Submits qualifications results to inventory, emails teams.
def subtest_callback
 Callback for subtest results or for timeout.
def subtest_finished
 Adds subtest results to logs, displays results if needed If pass, starts next script.
def subtest_result
 Records final result of subtest.
def test_cleanup
 Stops all launches, shows results when done.
def test_finished
 Launches shutdown script if we have one.
def test_startup
 Launches startup script (if any) and first subtest.
def verify_submit
 Prompts user if they are sure they want to submit results.

Public Attributes

 options

Private Member Functions

def _handle_continuous_results

Private Attributes

 _cont_frame
 _current_item
 _current_panel
 _current_test
 _invent_client
 _log
 _log_panel
 _plots_panel
 _prestart_timer
 _prestartup_done_srv
 _prestartup_index
 _prestartup_launch
 _record_launch
 _res
 _result_service
 _results
 _root_panel
 _shutdown_done_srv
 _shutdown_launch
 _shutdown_timer
 _spin_timer
 _startup_launch
 _subtest_index
 _subtest_launch
 _subtest_timer
 _tests_start_date
 _top_panel
 _top_sizer
 _waiting_for_submit

Detailed Description

Main frame of qualification.

Loads tests, launches them and records results

Definition at line 285 of file qual_frame.py.


Member Function Documentation

def qualification::qual_frame::QualificationFrame::__init__ (   self,
  parent,
  options 
)

Reimplemented in qualification::component_qual::ComponentQualFrame.

Definition at line 286 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::_handle_continuous_results (   self  )  [private]

Definition at line 902 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::begin_test (   self,
  test,
  qual_item 
)

Called from loader panel.

Todo:
Rename 'begin_test' to something useful at some point

Definition at line 400 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::cancel (   self,
  error = False 
)

Records test cancel, shuts down test.

Definition at line 1038 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::get_inventory_object (   self  ) 

Loads inventory object, prompts for username/password if needed.

Definition at line 958 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::launch_file (   self,
  filename 
)

Uses roslaunch_caller to launch file.

Todo:
Move out of class, don't need class variables
Parameters:
file str : Full path of launch script

Definition at line 695 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::launch_post_subtest (   self  ) 

Launches post subtest scripts if any, blocks until complete.

Definition at line 679 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::launch_pre_subtest (   self  ) 

Launches pre subtest scripts if any, blocks until complete.

Definition at line 665 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::launch_script (   self,
  script 
)

Uses roslaunch_caller to launch script.

Parameters:
script str : XML string to launch

Definition at line 703 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::launches_running (   self  ) 

Checks if we have any launch files running.

Returns:
True if any launch files running

Definition at line 734 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::log (   self,
  msg 
)

Logs test results in test log, displays to user.

Definition at line 349 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::login_to_invent (   self  ) 

Gets invent login from username/password.

Definition at line 927 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::next_subtest (   self  ) 

Proceed to next subtest if we have one, or finish test.

Definition at line 658 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::on_close (   self,
  event 
)

Stops launches once we close window.

Definition at line 1048 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::on_spin (   self,
  event 
)

Spins all launch files once, called by timer.

Definition at line 715 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::prestartup_call (   self  ) 

Launches prestartup script.

Definition at line 466 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::prestartup_done_callback (   self,
  srv 
)

Hit from 'prestartup_done' service or timeout.

Definition at line 501 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::prestartup_finished (   self,
  srv 
)

Checks result of last prestartup script.

Continues with prestartup or runs startup/subtests if OK, fails if error.

Definition at line 507 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::record_tests (   self  ) 

Launches rosrecord node to record diagnostics for test.

Definition at line 436 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::reset (   self  ) 

Resets the frame to the starting state.

Definition at line 368 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::reset_params (   self  ) 

Resets parameters of qualification node to starting state.

Definition at line 386 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::retry_subtest (   self,
  notes 
)

Retries subtest, logs retry results.

Definition at line 652 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::run_prestartup_scripts (   self  ) 

Run any pre_startup scripts synchronously.

Definition at line 449 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::set_top_panel (   self,
  panel 
)

Sets top panel of main panel.

Definition at line 358 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::show_plots (   self,
  sub_result 
)

Displays results of qualification subtests.

Definition at line 630 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::show_results (   self  ) 

Shows final results of qualification test.

Definition at line 909 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::shutdown_callback (   self,
  srv 
)

Callback for shutdown script.

Parameters:
srv qualification/ScriptDoneRequest : Result of shutdown script

Definition at line 840 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::shutdown_finished (   self,
  srv 
)

Stops shutdown launch, cleans up test.

Definition at line 845 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::start_continuous_testing (   self  ) 
Start continuous testing. Runs tests continuous until aborted.

Definition at line 881 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::start_qualification (   self  ) 

Launches program for either onboard, component conf or test cart tests.

Definition at line 419 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::start_subtest (   self,
  index 
)

Launches subtest and displays waiting page.

Parameters:
index int : Index of subtest to launch

Definition at line 559 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::stop_continuous_testing (   self  ) 
Stop continuous testing. 

Definition at line 893 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::stop_launches (   self  ) 

Stops all running launch files, blocks until complete.

Definition at line 744 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::submit_results (   self,
  notes,
  directory 
)

Submits qualifications results to inventory, emails teams.

Uses result.py functions

Definition at line 1005 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::subtest_callback (   self,
  msg 
)

Callback for subtest results or for timeout.

Parameters:
msg qualification/TestResultRequest : Test result processed by analysis

Definition at line 589 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::subtest_finished (   self,
  msg 
)

Adds subtest results to logs, displays results if needed If pass, starts next script.

If fail, shuts down

Parameters:
msg qualification/TestResultRequest : Test result processed by analysis

Definition at line 596 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::subtest_result (   self,
  pass_bool,
  operator_notes = '' 
)

Records final result of subtest.

Parameters:
pass_bool bool : Operator passed or failed subtest
operator_notes str : Notes operator gave about subtest

Definition at line 638 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::test_cleanup (   self  ) 

Stops all launches, shows results when done.

Definition at line 874 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::test_finished (   self  ) 

Launches shutdown script if we have one.

Definition at line 800 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::test_startup (   self  ) 

Launches startup script (if any) and first subtest.

Definition at line 536 of file qual_frame.py.

def qualification::qual_frame::QualificationFrame::verify_submit (   self  ) 

Prompts user if they are sure they want to submit results.

Definition at line 993 of file qual_frame.py.


Member Data Documentation

Definition at line 314 of file qual_frame.py.

Definition at line 408 of file qual_frame.py.

Definition at line 307 of file qual_frame.py.

Todo:
If debug mode, allow proceed with message dialog

Definition at line 332 of file qual_frame.py.

Definition at line 295 of file qual_frame.py.

Definition at line 311 of file qual_frame.py.

Definition at line 310 of file qual_frame.py.

Definition at line 308 of file qual_frame.py.

Definition at line 328 of file qual_frame.py.

Definition at line 292 of file qual_frame.py.

Definition at line 455 of file qual_frame.py.

Definition at line 319 of file qual_frame.py.

Todo:
Use file in qual package as recorder

Definition at line 320 of file qual_frame.py.

Definition at line 299 of file qual_frame.py.

Definition at line 291 of file qual_frame.py.

Definition at line 313 of file qual_frame.py.

Definition at line 302 of file qual_frame.py.

Definition at line 293 of file qual_frame.py.

Definition at line 317 of file qual_frame.py.

Definition at line 330 of file qual_frame.py.

Definition at line 341 of file qual_frame.py.

Definition at line 316 of file qual_frame.py.

Definition at line 381 of file qual_frame.py.

Definition at line 318 of file qual_frame.py.

Definition at line 329 of file qual_frame.py.

Definition at line 426 of file qual_frame.py.

Definition at line 304 of file qual_frame.py.

Definition at line 305 of file qual_frame.py.

Definition at line 337 of file qual_frame.py.

Definition at line 289 of file qual_frame.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables


qualification
Author(s): Kevin Watts (watts@willowgarage.com), Josh Faust (jfaust@willowgarage.com)
autogenerated on Fri Jan 11 09:39:15 2013