/// <summary> /// constructor /// </summary> public SurveyorReplayThread( WaitCallback callback, SurveyorVisionStereo state, string teleop_file, string zip_utility, string record_path, string log_identifier) { if (callback == null) throw new ArgumentNullException("callback"); _callback = callback; this.teleop_file = teleop_file; this.zip_utility = zip_utility; this.record_path = record_path; this.log_identifier = log_identifier; this.state = state; }
/// <summary> /// constructor /// </summary> public SurveyorReplayThread( WaitCallback callback, SurveyorVisionStereo state, string teleop_file, string zip_utility, string record_path, string log_identifier) { if (callback == null) { throw new ArgumentNullException("callback"); } _callback = callback; this.teleop_file = teleop_file; this.zip_utility = zip_utility; this.record_path = record_path; this.log_identifier = log_identifier; this.state = state; }
/// <summary> /// update all cameras /// </summary> /// <param name="state"></param> private void Update(SurveyorVisionStereo state) { state.update_state(); _callback(_data); }
/// <summary> /// ThreadStart delegate /// </summary> public void Execute() { SurveyorVisionStereo state = (SurveyorVisionStereo)_data; Update(state); }