huningxin / follow_me.js

1 stars 6 forks source link

follow_me.js

A person following robot demo by using node-realsense and DFRobot HCR JavaScript API.

Prerequisites

HardWare

Setup RealSense Execution Environment on Joule

# You know what they are
sudo apt-get install nodejs npm

# An optional workaround of "Node not found" error
sudo ln -s /usr/bin/nodejs /usr/bin/node

# Install the build tool for Node.js C++ add-on
npm install -g node-gyp

Bootstrap

  1. Connect Joule to a wireless LAN network and open terminal via SSH

  2. Install application on Joule board

$ cd /path/to/follow_me.js (this project)
$ npm install
  1. Connect HCR and Joule board through USB port

Run

$ node main.js

Open web browser and navigate to the http://Device_IP:8000/index.html. Press the FOLLOW ME to start.

Screenshot