Lesson 9 of 9 Β· about 30 minutes
Get your own copy of the whole project, with your own website and update page.
docs/index.html: change <span id="title"> Alvik</span> to your robot's name. Commit.https://YOUR-NAME.github.io/alvik/.Each commit runs the tests, then puts the site online. If a test fails, nothing goes online: read the message, it names what else must change.
git clone https://github.com/YOUR-NAME/alvik
cd alvik
scripts/build_site.sh && python3 -m http.server -d _site 8000 # then open http://localhost:8000
node --test tests/*.test.mjs # the page's side
python3 tests/test_robot.py # the robot's side, on a pretend Alvik
| Folder | What is in it |
|---|---|
src/ | Robot code: demo.py (menu), remote_control.py (remote, bumper). |
sketches/ | The extras (lesson 8). |
docs/ | The website: remote, 3D robot, pretend robot, these lessons. |
models/ | The Blender script that builds the 3D robot. |
tests/ | Tests for both sides. |
ROOM in docs/pretend.js: add a mat or a maze.COLORS in remote_control.py (and its copy in docs/pretend.js).remote_control.py, read it in telemetry.js, add an example to tests/telemetry_vectors.json, draw it in twin.js.The 3D robot's top plate is by GiulioT (CC BY-NC-SA): keep the credit, don't sell it. See models/README.md.
Ideas and bug reports live in the GitHub issues. Built something? Say so there.