Giter Club home page Giter Club logo

m2_robot's Introduction

m2_robot

Robot software based on Raspberry Pi2 and Raspbian Jessie or Wheezy

Robot Setup

Install WebIOPi and apply patch

Execute following commands:

$ wget http://sourceforge.net/projects/webiopi/files/WebIOPi-0.7.1.tar.gz
$ tar xvzf WebIOPi-0.7.1.tar.gz
$ cd WebIOPi-0.7.1/
$ wget https://dl.dropboxusercontent.com/u/69652790/bb/WebIOPi-0.7.1.patched.tgz
$ tar zxf WebIOPi-0.7.1.patched.tgz
$ cd WebIOPi-0.7.1/
$ sudo ./setup.sh

Install WebIOPi

Execute following command for changing permittion:

$ sudo chown -R pi /usr/share/webiopi/htdocs

Execute following command for password setting:

$ sudo webiopi-passwd

Execute following command for checking WebIOPi:

$ sudo /etc/init.d/webiopi start

Install WiringPi2-python

Execute following commands:

$ cd
$ sudo apt-get update
$ sudo apt-get install python-dev python-setuptools
$ git clone https://github.com/Gadgetoid/WiringPi2-Python.git
$ cd WiringPi2-Python
$ sudo python setup.py install
$ sudo python3 setup.py install

Install mjpg streamer

Execute following commands:

$ sudo apt-get update
$ sudo apt-get install libjpeg62-dev cmake
$ git clone https://github.com/jacksonliam/mjpg-streamer.git mjpg-streamer
$ cd mjpg-streamer/mjpg-streamer-experimental
$ make
$ cd ..
$ sudo mv mjpg-streamer-experimental /opt/mjpg-streamer

Setting robot program

Execute following commands:

$ cd /usr/share/webiopi/htdocs
$ git clone https://github.com/karaage0703/m2_robot.git m2
$ cd m2
$ sudo mv webiopi.service /etc/systemd/system/

Edit etc/webiopi/config:

$ sudo vi /etc/webiopi/config

Change like below:

from:
#myscript = /home/pi/webiopi/examples/scripts/macros/script.py

To:
myscript = /usr/share/webiopi/htdocs/m2/script.py

Execute webiopi

$ sudo systemctl start webiopi

Access Robot and Enjoy! Access your robot from below address on your browser.

http://<ipaddress>:8000/m2/

Website

Please check for my website in detail(Japanese only)

http://karaage.hatenadiary.jp/entry/2015/09/02/073000

License

This software is released under the MIT License, see LICENSE.

m2_robot's People

Contributors

karaage0703 avatar

Stargazers

Keita Ono avatar

Watchers

 avatar  avatar  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.