0.1.1 • Published 2 years ago

@things-factory/node-urx v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

node-urx

Universal Robot client module for nodejs

Base code

python-urx: https://github.com/SintefManufacturing/python-urx

Universal Robots

Install

$ npm install @things-factory/node-urx --save

Examples

Run the examples from the examples directory.

Moving Robot Arm

const { UrRobot } = require('@things-factory/node-urx')

;(async function () {
  var ur = new UrRobot('192.168.0.34')
  await ur.connect()
  console.log(await ur.getStatus())
  let inputPose = await ur.getl(true)
  inputPose[2] += 0.1
  await ur.movel(inputPose, 0.1, 0.1, true, false)
  inputPose[2] -= 0.1
  await ur.movel(inputPose, 0.1, 0.1, true, false)
  ur.disconnect()
  console.log('done')
})()
})()

API Documentation

...

Test

npm test.