The robot for an indoor delivery system. The robot will be used to deliver objects and is the heart of the system.
Create a .env
-file and put in the following:
API_URL=http://localhost:8000
Note: If you want to connect to the production server instead, replace the API_URL
accordingly.
Make sure to have at least the latest LTS of node installed. Then open a terminal and run:
npm install
npm start
- Set up a static IP on your ethernet interface, that is part of the
192.168.137.0/24
network. This IP should not be192.168.137.10
as this is the IP of the robot. (This can be done via the control panel in Windows.) - Open the git bash on your computer and connect via SSH:
ssh pi@192.168.137.10
- Type in the password
- Gain superuser priviledges:
sudo -s
- Navigate to the folder, where the application is located:
cd /opt/indesy-robot
- Stop the application:
pm2 stop all
- Checkout on the
remote-controlled
-branch:git checkout remote-controlled
- Restart the application:
pm2 reload all