Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 852 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 852 Bytes

py-robot-controller

A python real-time controller API for robotic systems via CAN

install requirements

Possibly, use python3.10

pip install -r requirements.txt
pip install -r requirements_dev.txt # only for testing

usage

python3 main.py

enable LiDAR (optional)

pip install -e "git+https://github.com/simondlevy/BreezyLidar.git#egg=BreezyLidar&subdirectory=python" # lidar library

crontab

In the robot we could start the service using the following crontab and screen command

@reboot /usr/bin/screen -S py-robot-controller -d -m /home/pi/py-robot-controller/venv/bin/python /home/pi/py-robot-controller/main.py

in order to see the screen session output it is possible to run:

screen -S py-robot-controller

Note: use Ctrl+A and D to detach from the session.