Skip to content

CPWu/robotics

Repository files navigation

Robotics

AI/ML with robotics

Bill of Materials

TBD

Stuff Used

  • Cortano
  • CortanoNanoBridge
  • OpenCV
  • etc.

Session #1 (Structure, Motion, Communication)

  • Chassis
  • Motors
  • Gears
  • Power
  • Joints
  • End Effectors
  • Communication (Python)

Session #2 Neural Networks, Object Recognition, Depth Processing

  • Neural Network Purpose
  • Neural Network 'Learning'
  • Neural Network Data Constraints
  • Camera Input
  • Object Recognition (ML)
  • Depth Extraction

Session #3 Motion Control, Joint Control

  • ICP
  • Motion Tracking
  • Depth Projections
  • Gridmap Construction

Session #4 Positioning, Object Tracking, Collision Mapping

  • Objective-oriented Thinking
  • Breadth First Search
  • A*
  • Utility (State-Action)
  • Decision Graph Construction
  • MDPs
  • Q-Learning (ML)

Submodules

Cortano & CortanoNanoBridge by Timothy Young

Guide

Jetson Nano

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

Python Libraries

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

PyRealSense

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

RobotC (Vex MicroController)

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

CortexNanoBridge (/CortexNanoBridge)

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

Cortano (/Cortano)

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 Address ifconfig

Additional Python Frameworks

PyTorch

Install PyTorch

pip3 install torch torchvision

Contact

Chun Wu - TheChunWu

About

AI/ML with robotics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages