This project uses Arduino and python(3.x) to generate a PCD file from the arduino and visualize it in VTK. This is done in 2 steps
- Creating the PCD file by getting data from the Arduino
- Visualize the PCD file
This project uses Python 3.x, pip and Arduino IDE.
- [Arduino IDE] (https://www.arduino.cc/en/Guide/Linux) - Instruction to install arduino ide in linux Installing python and pip
apt install python3 python3-pip
pacman -S python python-pip
zypper install python3 python3-pip
External packages used in the python program are: Numpy
,VTK
,PySerial
These can be installed manually or by using the included requirments.txt in the root of this project
pip3 install -r requirements.txt
pip install -r requirements.txt
pip3 install -r requirements.txt
The arduino code is located in the ./SweepBoth
folder. Flash SweepBoth.ino
located in that file to the Arduino
Connect your arduino and then run the following command
python findpoints.py
Run the following command after the pcd file has been generated
python pointscloud.py points.pcd
The report and presentation are created using latex these are located in
./presentation
and ./report