srv-client
v1.4.1
Published
node client to facilitate TCP communication with an SRV-1 Surveyor robot
Downloads
12
Maintainers
Readme
srv-client
node module to facilitate connection to and control of an SRV-1 Surveyor robot via tcp
Usage
configure and connect
const SrvClient = require('srv-client');
let client = new SrvClient({
host: '192.168.1.123',
port: 1138
});
client.connect(function(err){
// handle error and/or do stuff
});
move in specified direction (supported: forward, backward, left, right)
client.go('forward', function(err){
// handle error and/or do stuff
});
stop moving
client.stop(function(err){
// handle error and/or do stuff
});
turn laser on or off
client.setLaser('on', function(err){
// handle error and/or do stuff
});
Additional Info
full list of motor commands are specified here: [http://www.surveyor.com/SRV_protocol.html]