The Flask API will occupy the robot and block other processes. Make sure to stop the Flask process if you need to use the robot for other tasks.
This is the flask api and backend of the command center, to launch this, navigate to the directory and run the launch script:
launch-flask-api
If successful, you should see something similiar to this:
---------------------------------------------
STARTING HACKERBOT FLASK API
---------------------------------------------
---------------------------------------------
SUCCESS! Hackerbot Web Application is Running!
Flask Backend: http://localhost:5000
http://10.1.10.110:5000
Log file: /home/bobby/hackerbot/logs/hackerbot_flask_202503251849.txt
---------------------------------------------
To stop the process, run the stop script:
stop-flask-api
You should see something like this in your console:
---------------------------------------------
STOPPING HACKERBOT FLASK API
---------------------------------------------
Stopping Flask backend (PID: 101864)...
Force killing Flask backend...
Flask backend stopped.
---------------------------------------------
CHECKING SERIAL PORT /dev/ttyACM1
---------------------------------------------
Serial port /dev/ttyACM1 is not occupied.
---------------------------------------------
HACKERBOT FLASK API STOPPED
---------------------------------------------
Hackerbot Command Center
To launch this interface, simply run the launch script:
launch-command-center
If successful, you should see something like:
---------------------------------------------
STARTING HACKERBOT COMMAND CENTER
---------------------------------------------
---------------------------------------------
SUCCESS! Hackerbot Command Center is Running!
React Frontend: http://localhost:5173
http://10.1.10.110:5173
Log file: /home/bobby/hackerbot/logs/hackerbot_react_202503251849.txt
---------------------------------------------
Then you can navigate your browser and open the link from the url.
In the Maps section, you can choose which map you want to load, and in the mark section, you can add mark position on the map and save it.
To stop this process, run the stop script:
stop-command-center
If successful, you should see something like:
---------------------------------------------
STOPPING HACKERBOT COMMAND CENTER
---------------------------------------------
Stopping React processes...
All React-related processes stopped.
---------------------------------------------
HACKERBOT COMMAND CENTER STOPPED
---------------------------------------------
It's a web interface built with react, it visualizes the map fetch from the robot and allow the user to interact with it. Note that both the command center must be launched with the by running launch-flask-api for it to function.