-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit, quick draft of procedure
- Loading branch information
Christian Schirmer
committed
Apr 15, 2020
0 parents
commit e3adf81
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.asv |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|