Included Examples#
This page lists the included example projects that demonstrate how to control the VEX AIM Coding Robot using Python over WebSocket.
Basic#
Within the basic
directory, you will find:
File Name |
Description |
---|---|
|
This project uses a proper Python For Loop to iterate through AI Vision data to calculate a mid-point between an Orange Barrel and Blue Barrel. |
|
This project moves the robot at 45-degree angles at 100% velocity to trace a diamond shape. |
|
This project makes the robot move in a square path, changing the LED color at each color. |
|
This project will turn the AIM robot to rotate 180 degrees to the right. If the robot is holding an orange barrel, it will kick it; otherwise, the robot will do nothing. |
|
This project will turns in place while searching for an orange barrel. If none is found within 10 seconds, it plays a ‘fail’ sound and stops the search. |
|
This project displays a happy emoji when the robot’s angle is stable and a surprised emoji when tilted. |
|
This project changes the screen’s emoji based on how many times the screen has been pressed, showing a different expression for each press. |
|
This project will look for blue barrel , move to it, celebrates once it has the blue barrel. |
|
This project cycles through each LED color, pausing for one second between each. |
|
In this project, the screen will show a green background with the word “FLAT” when the robot is not tilted. If the robot tilts, the screen will turn red and say “TILTED”. |
|
This project moves the robot forward 300 mm and plays the “complete” sound once it has completed movement. |
|
This project turns the robot until it detects AprilTag ID 1, then moves toward it. |
|
This project turns right until an orange barrel is found, moves backwards, and places it. |
|
This project will play a song (using notes) in one thread while driving in another thread at the same time. |
|
This project will move the AIM robot forward until any cargo is found. When detected, the robot will play a beep sound, and stop all robot movement. |
|
This project will move the AIM robot forward until any cargo is found. When detected, the robot will turn right for 45 degrees. |
|
This project draws a line, square, and circle on its screen, showing the name of each shape while it’s being drawn. |
|
This project will print the timer, heading, and yaw orientation values to the robot screen. |
|
This project waits for a touchscreen tap before moving forward 200 mm and displaying an emoji at the end. |
|
This project starts driving forward but stops automatically once five seconds have elapsed, then displays “Time’s up!” on the screen. |
Advanced#
Within the advanced
directory, you will find:
File Name |
Description |
---|---|
|
Provides |
|
This project allows the user to control the robot while streaming images from the camera. LEDs are green when robot is moving, red when robot is stopped. |
|
This project makes two robots to move in a square path, changing the LED color at each color. |
|
The robot will play a local sound file, then play some notes from Beethoven’s Symphony No. 5. |
|
Save image in JPEG format to filesystem given by filename, defaulting to |
|
JPEG image stream, using opencv to display to screen. |