Showing
1 changed file
with
26 additions
and
0 deletions
Modules/pseudo code.txt
0 → 100644
| 1 | +1. CI - Core Cloud IP | ||
| 2 | +2. CP - Core Cloud Port number | ||
| 3 | +3. Ping(CI, CP) - function which return connection result with CI, CP | ||
| 4 | +4. Preprocess(Image Input) - Function which return preprocessed Image(numpy int.64 BGR Format) | ||
| 5 | +5. rule - Rule Structure for connection | ||
| 6 | +6. to_destination(rule, Data) : Function which send data with defined rule | ||
| 7 | +7. drivingInfo - driving Information Structure | ||
| 8 | +8. Cart.drive(drivingInfo) : Drive Command with driving info parameter | ||
| 9 | +9. Listening - Function which wait until signal of data receive | ||
| 10 | + | ||
| 11 | +while(Ping CI, CP) : | ||
| 12 | + Frame = Camera.get() | ||
| 13 | + Preprocessed_Frame = Preprocess(Frame) | ||
| 14 | + rule = iptc.Rule() | ||
| 15 | + rule.protocol = 'tcp' | ||
| 16 | + rule.dst = CI | ||
| 17 | + m = rult.create_match('tcp') | ||
| 18 | + m.port = CP | ||
| 19 | + to_destination(rule, Preprocessed_Frame) | ||
| 20 | + | ||
| 21 | + if(Listening(edge_port)): | ||
| 22 | + result = get_find(Shared_Memory_ID) | ||
| 23 | + drivingInfo.velocity = result.velocity | ||
| 24 | + drivingInfo.steer = result.steer | ||
| 25 | + Cart.drive(drivingInfo) | ||
| 26 | + | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment