Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2015102747
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이재빈
2020-09-21 16:14:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
625e670339882a74f92c2fa044a3e7f9225f5c51
625e6703
1 parent
ee2b3d51
슈도 코드 작성
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
Modules/pseudo code.txt
Modules/pseudo code.txt
0 → 100644
View file @
625e670
1. CI - Core Cloud IP
2. CP - Core Cloud Port number
3. Ping(CI, CP) - function which return connection result with CI, CP
4. Preprocess(Image Input) - Function which return preprocessed Image(numpy int.64 BGR Format)
5. rule - Rule Structure for connection
6. to_destination(rule, Data) : Function which send data with defined rule
7. drivingInfo - driving Information Structure
8. Cart.drive(drivingInfo) : Drive Command with driving info parameter
9. Listening - Function which wait until signal of data receive
while(Ping CI, CP) :
Frame = Camera.get()
Preprocessed_Frame = Preprocess(Frame)
rule = iptc.Rule()
rule.protocol = 'tcp'
rule.dst = CI
m = rult.create_match('tcp')
m.port = CP
to_destination(rule, Preprocessed_Frame)
if(Listening(edge_port)):
result = get_find(Shared_Memory_ID)
drivingInfo.velocity = result.velocity
drivingInfo.steer = result.steer
Cart.drive(drivingInfo)
\ No newline at end of file
Please
register
or
login
to post a comment