GithubHelp home page GithubHelp logo

robot-client-server's Introduction

Robot Documentation

Table of contents

Software Architecure

The software architecture for the robot code is fairly simple. The client side will enter the public/local ip address of the robot. The client will then perform 1 ping to check if the ip is online, if not it will ask for the ip again. If the ip is online it will attempt to connect to the robot using the python socket module. Once it connects to the server it can send commands for speed and movement.

Client installation

Windows

# clone the repo
$ git clone https://github.com/kincho4/Robot.git

# change into the cloned directory
cd Robot

# change into the client directory
cd client

#install requirements
pip install -r reqscl.txt

MacOS/Linux

# clone the repo
$ git clone https://github.com/kincho4/Robot.git

# change into the cloned directory
cd Robot

# change into the client directory
cd client

#install requirements
python3 -m pip install -r reqscl.txt

Server installation

Linux

#clone the repo
$ git clone https://github.com/kincho4/Robot.git

OPTIONAL: Start program on boot.

# Open a new unit file
sudo nano /lib/systemd/system/rbtserver.service

# Add content to file
[Unit]
Description=Python file to handle client commands
After=multi-user.target

[Service]
Type=idle

# Change the directory of the python file if needed
ExecStart=/usr/bin/python /home/pi/Robot/rpi/rpiserver.py

[Install]
WantedBy=multi-user.target

# Save file
Ctrl + O

# Exit file
Ctrl + X

# Enable it to run on boot
$ sudo systemctl daemon-reload
$ sudo systemctl enable sample.service

robot-client-server's People

Contributors

kincho4 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.