NodeJS ^v8.0.0
:Get help from official manual;cnpm ^v5.6.0
: npm mirror site in China, see cnpm.
ros-kinetic-slam-gmapping
ros-kinetic-tf2-web-republisher
ros-kinetic-map-server
ros-kinetic-web-video-server
ros-kinetic-usb-cam
- clone from official repo:
git clone [email protected]:TonyRobotics/TR-HMI-Server.git
; - go to project folder and run
cnpm install
; - run
node start src/index.js
; Use PM2 to manage node services is strongly recommanded;
All the configurations mananged by src/data/config.js
;
- Default folder for ROS maps :
~/maps/
; - One packaged map file, will copied to the default maps folder automatically when first run:
src/data/default.yaml<pgm>
-->~/maps/default.yaml<pgm>
; - Default launch file:
src/launch/tr_hmi.launch
, used for starting some essential ros nodes and services.
node src/index.js --product=abel05
Or
pm2 start src/index.js -x -- --product=abel05
Products information is defined in src/data/productions.json
.
If you want to change the product that has set before, you should also pass the --reset
argument to node to reset the configuration file.