Skip to content

Commit

Permalink
Initial commit, quick draft of procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Schirmer committed Apr 15, 2020
0 parents commit e3adf81
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.asv
Binary file added Data/SandingImagesCalibration.mat
Binary file not shown.
64 changes: 64 additions & 0 deletions Procedure_Draft.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@

%% Process Triggered By Remote Robot Controller

% Trigger: <Mod_IRC> Start Inspection Procedure Message Received
% Action: <Mod_IRC> Send Acknowledged message to robot controller

% Create a container to store all the captured images in
inspection_images = containers.Map('KeyType', 'single', 'ValueType', 'any');

while 1

% Block until triggered
% Trigger; <Mod_IRC> Incoming Message
rcv_msg = 'tbd';

switch rcv_msg
case 'tbd' %[Robot Ready Bit] Call to defn. in <Mod_IRC>

% Here we need to get the pose. Should we have the robot
% communicate this to use, or just use a pre-defined set of
% poses? <TODO>
pose = null;

% Module: Camera Capture <Mod_Cam>
% Input: None
% Output: Captured Image, 3xNxM uint8

% Action: <Mod_Cam> Capture Image
img = Null; % [img] = modcam.captureImage()

% Store the image in the container
inspection_images(pose) = img;



case 'tbf' %[Inspection Complete Bit] Call to defn. in <Mod_IRC>
break;
otherwise
% Throw and log error
end


end

% Action: <Mod_Eval> Evaluate the Images, Determine which subsections
% are bad
% This module should be connected to the calibration.

% Module Action: Evaluation <Mod_Eval>
% Input: A set of inspection images, list of poses that images
% were taken from
% Output: A list of sections, and good/bad part determination
section_status = zeros(1,8);



% Action: <Mod_IRC> Send section status register
% Module Action: Send Status <Mod_IRC>
% Input: Column vector of status values: 0=Good, 1=Faulty
% Output: None

% Complete


0 comments on commit e3adf81

Please sign in to comment.