The web server runs nodejs and we use npm for nodes package managment and running the web server Because ROS melodic requires libssl1.0-dev but npm wants to replace it with libssl1.1-dev, disabling ROS, we need to use a workaround
To install, run the following command:
sudo apt-get install curl python-software-properties
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install nodejs
sudo apt-get install nodejs-dev node-gyp libssl1.0-dev
sudo apt install npm
Ubuntu should come with git and make installed if not run the following command:
sudo apt-get install build-essential
sudo apt-get install git
To forward the camera streams to the webpage we require the ROS web video server
sudo apt-get install ros-melodic-web-video-server
The ROS system will boot automatically at startup.
To start ROS, open a terminal and run
roslaunch symbytech symbytech.launch
To start web video server, open a terminal and run
rosrun web_video_server web_video_server
In another terminal, from the crawler_web directory run the ROS server
sudo npm run server
In another terminal, from the crawler_web directory run the web server
npm start
If the web server is already on close it with ctrl-c or using
ps -aux | grep node
to find the PID number of the node process and kill it
First install chocolatey - this will manage all the windows installations.
Search for PowerShell in your windows start menu.
Right click on PowerShell and select 'Run as Administrator'.
Select Yes (you may be prompted for your computers password).
Run the following command:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Stay in the PowerShell command terminal.
You are required to install node version manager
choco install nvm
Use nvm to install the correct version of node (8.10) - this version is required for the joystick
nvm install node8.10
Select 'A' yes to all during the installation when prompted.
source: NodeJS
You will be required to install make, run the following command:
choco install make
Select 'A' yes to all during the installation when prompted.
source: GNU Make
You will be required to install make, run the following command:
choco install git
Select 'A' yes to all during the installation when prompted.
source: git
You are now required to download the software
git clone https://github.com/symbytech/crawler_web.git
cd crawler_web
npm install
Open Powershell in Administrator Mode (by right-clicking and selecting 'Run as Administrator')
npm install --global windows-build-tools
npm run start