0.1.2 • Published 8 years ago
node-goose v0.1.2
node-goose | Dobot SerialPort Driver and Gcode Interpreter Service
update:
- complete: refactor to socket.io complete to reduce i/o overhead
- pending: change camera service from periodic http:GET to stream
installation:
install core modules
- install nodeJS: https://nodejs.org/en/
- git clone https://github.com/rniice/node-goose.git
- cd node-goose
- npm install
install openCV binaries (optional)
- install OpenCV 2.3.1 or newer: http://opencv.org/downloads.html
- make OpenCV_DIR\bin available on system path
install node-opencv (optional)
- git submodule init
- git submodule update
- cd private/node-opencv
- npm install
usage:
- node server.js
- access controls at localhost:80 via web browser
demo laser cutting
GUI v0.2
System Architecture
driver details (/private/drivers)
Component | Description |
---|---|
Dobot.js | top level dobot class |
DobotCommandBuffer.js | writes buffer dobot can understand for each command |
DobotCommandQueue.js | state management and queueing of gcode program commands |
DobotComputerVision.js | camera and vision tracking methods using opencv |
DobotFileManager.js | file management for gcode programs |
DobotGcodeInterpreter.js | parses gcode command string and dispatches object to send to commandbuffer |
DobotJogCommand.js | parses request for jog move and dispatches object to send to commandbuffer |
DobotResponseParser.js | parses response from dobot into state values (position, rotation, etc). |
DobotSerial.js | creates, maintains, and controls serialport connection to dobot |