Skip to content

Commit

Permalink
[ci skip] Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
araffin committed Jun 29, 2018
1 parent ef979b3 commit f21081e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 34 deletions.
52 changes: 20 additions & 32 deletions README.md
Expand Up @@ -199,23 +199,14 @@ sudo apt-get install arduino-core arduino-mk rlwrap screen

OpenCV
- [PreCompiled](https://github.com/jabelone/OpenCV-for-Pi) This is the **recommended method**
- [Guide](http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/)
Compile from source:
- [Docs](https://docs.opencv.org/3.4.1/d7/d9f/tutorial_linux_install.html)
- [Tutorial](https://www.life2coding.com/install-opencv-3-4-0-python-3-raspberry-pi-3/)
- [Raspbian Tuto](http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/)

Libserial (apt-get or compile from source)
- [LibSerial](https://github.com/crayzeewulf/libserial)
- [Boost](http://www.boost.org/)
- [SIP](http://pyqt.sourceforge.net/Docs/sip4/installation.html)

```
# Boost
sudo apt-get install libboost-all-dev
# After libserial installation:
sudo ldconfig
```

#### Python Packages
All the required packages (except pytorch) can be found in `requirements.txt`, install them using:
All the required packages (except pytorch and torchvision) can be found in `requirements.txt`, install them using:

```
pip install -r requirements.txt
Expand All @@ -229,41 +220,31 @@ In short:
- ZeroMQ (for teleoperation)
- Pytorch (you have to compile it from source for the RPI)
- scikit-learn
- scipy

```
pip install pyserial tqdm pygame enum34 scikit-learn
```

Note: for using the serial port, you need to change current user permissions:
```
# Add user to dialout group to have the right to write on the serial port
sudo usermod -a -G dialout $USER
# You need to logout/login again for that change to be taken into account
pip install pyserial tqdm pygame enum34 scikit-learn scipy
```

ZeroMQ (Message Passing with sockets) for remote control mode
```
sudo apt-get install libzmq3-dev
pip install pyzmq
```
or

Note: for using the serial port, you need to change current user permissions:
```
git clone https://github.com/zeromq/libzmq/
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
pip install pyzmq
# Add user to dialout group to have the right to write on the serial port
sudo usermod -a -G dialout $USER
# You need to logout/login again for that change to be taken into account
```


Additional python dev-dependencies for training the neural network:
On your laptop:
```
pip install pytorch
pip install torchvision
pip install sklearn # or sudo apt-get install python-sklearn
```

On the raspberry pi :
Expand All @@ -286,6 +267,12 @@ Or follow this tutorial:

2. Install PyTorch

See [https://github.com/pytorch/pytorch](https://github.com/pytorch/pytorch) for dependencies.
Additional dependencies:
```
sudo apt-get install libeigen3-dev libffi-dev
```

```
# don't forget to set the env variables:
export NO_CUDA=1
Expand All @@ -296,6 +283,7 @@ sudo -EH python setup.py install
sudo -H pip install torchvision
```


[Wifi on RPI](https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md)

OpenCV with Anaconda, compiling from source:
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Expand Up @@ -10,6 +10,4 @@ robust-serial==0.1
scikit-learn==0.19.0
scipy==0.19.1
six==1.11.0
sklearn==0.0
torchvision==0.2.1
tqdm==4.19.5

0 comments on commit f21081e

Please sign in to comment.