AI/ML with robotics
TBD
- Cortano
- CortanoNanoBridge
- OpenCV
- etc.
- Chassis
- Motors
- Gears
- Power
- Joints
- End Effectors
- Communication (Python)
- Neural Network Purpose
- Neural Network 'Learning'
- Neural Network Data Constraints
- Camera Input
- Object Recognition (ML)
- Depth Extraction
- ICP
- Motion Tracking
- Depth Projections
- Gridmap Construction
- Objective-oriented Thinking
- Breadth First Search
- A*
- Utility (State-Action)
- Decision Graph Construction
- MDPs
- Q-Learning (ML)
Cortano & CortanoNanoBridge by Timothy Young
Jetson Nano Setup
- Download the Jetson Nano Developers Kit SD Card Image)
- Flash the image onto the available 64GB SD Card using balenaEtcher.
- Put SD Card into Jetson Nano, attach an HDMI Cable/Monitor, Keyboard and Mouse, and finally plug the power cable in to boot up. Wait until everything is connected before plugging in the barrel power cable into Jetson Nano
- Use any username and password combination. Remember to set "log in automatically" instead of "require my password to log in". Set the power usage to MAXN (not 5W)
- Once you are logged in, open a Terminal (you can right click on desktop to show Open Terminal) and type the following:
sudo apt-get update && sudo apt-get upgrade
sudo reboot
Install Python Libraries (PySerial, NumPy, SciPy, Flask, Python3-OpenCV)
- Install the libraries mentioned above.
sudo apt-get install python3-pip
sudo pip3 install --upgrade pip
sudo pip3 install pyserial numpy scipy Flask
sudo apt-get install python3-opencv
Install PyRealSense
- Install PyRealSense2 onto the Jetson Nano
./PyRealSense
(Jetson Nano Python3.6 cu10.2)- Attach the RealSense camera to the Jetson Nano and try running the RealSense Viewer to ensure it works in USB 3.2 mode.
chmod +x install.sh
sudo ./install.sh
cd /usr/local/bin
sudo chmod +x ./realsense-viewer
./realsense-viewer
Install RobotC
- Download RobotC from VexRobotics
- Set the board to Vex 2.0 Cortext (Robot -> Platform Type -> -> Vex 2.0 Cortex)
- Change the Vex Cortext Communication Mode to USB Only
Setup CortexNanoBridge on Jetson Nano
- Navigate to Jetson Nano Folder
cd ../CortextNanoBridge/jetson_nano
- Make the install file executable
chmod +x install.sh
- Install CortextNanoBridge onto the Jetson Nano
./install.sh
- Reboot the Jetson Nano
sudo reboot
Setup Cortano on Computer Controller
- Navigate to ./Cortano and run
python3 -m pip install .
to install the API- Note the IP Address of the Jetson Nano
- Use robot.py,
python3 robot.py
but ensure that the IP Address specified is Jetson's IP Addressifconfig
PyTorch
Install PyTorch
pip3 install torch torchvision
Chun Wu - TheChunWu