Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

yguenduez/rusty_bot

Repository files navigation

Rusty Bot

I already had a little robot running with C++ and ROS and tried this project with Rust. Beware of hacky code, stupid logic running around and heavy use of 3rd party!

Overview

The project consists of:

  • a robot application, which is running on the raspberry pi. It is just putting pins on high or low to control some dc motors.
  • a robot_core, which serves as a library, used by the robot application. Here the tcp server's "logic" is defined.
  • a gamepad_client executable, which takes the first gamepad client accessable from the pc and listens for gamepad inputs. It then sends serialized json (thanks serde library!) onto the openend tcp sever port of the pi: raspberrypi.local:3333.

To put it very simple this image below will demonstrate the complexity of the project:

Overview

How to start

You will have to connect the pins of the pi to the raspberry - see source which pins :).

Then:

  • First start the pi application (on the pi!)
    cd robot
    cargo run
  • Make sure both, PC and PI are within the same subnet
  • Then start the application on the PC with the gamepad connected
    cd gamepad_client
    cargo run

Result

If all works out. You should have a moving robot - except the robot is too phat.

Fat Robot Light Robot

Beware

If you are using the raspi pi zero, you will need to target the armv6 architecture for compiling.

About

First Baby Steps with Rust and Robotics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages