Streaming with node.js web server
This tutorial explains following works using Ubuntu14.04 as host-PC.
- Startup Phenox2 from battery, connect to host-PC using ssh.
- Launch web server using node.js to stream live images on browzer of host-PC.
1. Setup supply power and communication
2. Execute sample
Run following command on Phenox2.
phenox# source /root/nodejs/nvm/nvm.sh/nvm.sh phenox# nvm use v0.11.14 phenox# source run/nodeimgserver.sh
Before running program, please put Phenox2 on the ground and do not move it until message "CPU0:Finished Initialization" appears. If users move Phenox2 during initialization, CPU1 detects movement and stops initialization. When this happens, please reboot Phenox2 by "reboot" command.
In host-PC, launch browzer and type
http://192.168.2.1:8192 on URL. Then, please check that images with visual feature points are stremed on browzer.
3. Stop Phenox2
To shutdown Phenox2, type following command.