Skip to content

samuk/ANI717_Robotics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ANI717 Robotics Workspace

Robotics workspace. Contains ROS2 packages to run robot cars controlled by gamepad, collects annotated camera images, and runs a robot car autonomously with a trained neural network.

Colaborators

Animesh Bala Ani

ROS2 Packages

ros2-gamepad-to-twist-message
ros2-pytorch-model-to-twist-message
ros2-twist-message-to-robot-motion
ros2-save-camera-image

Download Workspace

git clone https://github.com/ANI717/ANI717_Robotics
cd ~/ANI717_Robotics/robot_ws/

Install Dependency

Install Inputs, Torch, Torchvision, Opencv, traitlets, multiexit, Adafruit-SSD1306 and Adafruit_MotorHat.

pip3 install numpy==1.19.3
python3 -m pip install inputs torch torchvision opencv-python
python3 -m pip install Adafruit-SSD1306 Adafruit_MotorHat traitlets multiexit

Install ROS2 dependency.

sudo apt install python3-rosdep2
rosdep update
rosdep install --from-paths src --ignore-src -r -y

Create i2c group & permissions```

sudo groupadd i2c
sudo chown :i2c /dev/i2c-1
sudo chmod g+rw /dev/i2c-1
sudo gpasswd -a $USER i2c

Add User to Input Group

Run following command and reboot.

sudo gpasswd -a $USER input

Build, Source & Launch Package (Gamepad)

colcon build && . install/setup.bash && ros2 launch robot_launch gamepad_launch.py
colcon build --symlink-install && . install/setup.bash && ros2 launch robot_launch gamepad_launch.py

Build, Source & Launch Package (Self Driving)

colcon build && . install/setup.bash && ros2 launch robot_launch autonomous_launch.py

Zip Images for Download

cd ../
zip -r images.zip images

About

Robotics workspace. Contains ROS2 packages to run robot cars controlled by gamepad, to collect annotated camera images, and to run a robot car autonomously with a trained neural network.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Roff 99.5%
  • Other 0.5%