Physical blockly - #129
Open
CorbinDS wants to merge 50 commits into
Open
Conversation
This reverts commit 65a02b5.
now the UI updates when each mode is clicked
This reverts commit e29d9c0.
This reverts commit 8f152a1.
This reverts commit 2a16bcf.
…reminibot into physical_blockly
…Real time camera mode doesn't work
CorbinDS
requested review from
DoanhTran,
Sanjana679,
Trenton-Lyke,
emz1003,
kchiem12,
swathi-parthibha and
tl676
May 23, 2022 02:48
swathi-parthibha
approved these changes
May 26, 2022
swathi-parthibha
left a comment
Collaborator
There was a problem hiding this comment.
Looks good to merge!
Sanjana679
approved these changes
Jun 9, 2022
Sanjana679
left a comment
Contributor
There was a problem hiding this comment.
Everything looks fine; it ran on my computer
emz1003
reviewed
Sep 10, 2022
emz1003
left a comment
Collaborator
There was a problem hiding this comment.
Basestation doesn't run for me on this branch:
stops at
================= MINIBOT CLIENT GUI =================
=========== STARTING BASESTATION ===============
Contributor
|
Works when I put the line 'flask run' in run_BS.sh. Should test this to see if it works on windows |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Physical Blockly. Master was first merged into the branch. I tested it and it seems good.
Feel free to test it with apriltags from: https://docs.cbteeple.com/robot/april-tags
Check the file basestation/piVision/tag_isns.json to make sure that the tag you test with actually has an instruction.
If running from Windows OS, the following must be done:
In order for the AprilTag detection library to function, basestation must be run from within an Anaconda terminal. Follow the install instructions here: https://github.com/ai4ce/pyAprilTag. Activate the conda environment ‘opencv_py37’ before running basestation. If an error is encountered regarding:
Line endings (something about ‘\r’’s): open run_BS.sh in notepad++, go to Edit>EOL>Unix
Command flask not found: remove the last line of run_BS.sh, and run the command ‘python -m flask run’ after the normal one.
You may need to specifically install things like bash in Anaconda if you encounter an error saying it does not exist.
As specified above, run basestation from anaconda environment. Run a virtual minibot from a bash prompt. Run “npm run webpack” in a separate bash prompt in order to observe frontend changes if editing .js files.
Features:
Physical Blockly Tab with two Apriltag detection modes, Camera Mode, and Real-Time Mode. Both of these modes use a camera and scan for any apriltags that have corresponding commands as specified in the tag_insns.json file. It converts these commands to python and to blockly blocks.
IMPORTANT We haven't tested the functionality on a real minibot, just the simulated minibot and our webcams.
Camera Mode can take in the four minibot movement commands as well as a repeat command as well as an end loop command. The main purpose of this mode would be to set up the code using apriltags then to export it to the coding tab to test / use the program.
Real-Time Mode can only take in the four minibot movement commands, and it immediately sends those commands to the minibot.