From 66e73871f957b56fb8cc4750849cd0ec0f137105 Mon Sep 17 00:00:00 2001 From: Amira Abdel-Rahman <amira-rahman@aucegypt.edu> Date: Sun, 13 Sep 2020 21:33:06 -0400 Subject: [PATCH] interface with ur10 --- .../assembly/python-urx/setup.json | 78 ++++++++++++++++++- .../setup/serve.js | 4 - 2 files changed, 76 insertions(+), 6 deletions(-) diff --git a/01_Code/physical_computing_interface/assembly/python-urx/setup.json b/01_Code/physical_computing_interface/assembly/python-urx/setup.json index ceba5aa..f37b76a 100644 --- a/01_Code/physical_computing_interface/assembly/python-urx/setup.json +++ b/01_Code/physical_computing_interface/assembly/python-urx/setup.json @@ -57,7 +57,81 @@ "sleep": 0.2, "sleep1": 0.1 }, - "nodes": [], - "edges": [] + "nodes": [ + { + "y": 0, + "x": 1, + "z": 0, + "rx": 0, + "ry": 0, + "rz": 0 + }, + { + "y": 0, + "x": 0, + "z": 0, + "rx": 0, + "ry": 0, + "rz": 0 + } + ], + "edges": [ + { + "y": 0, + "x": 1.5, + "z": 0, + "rx": 0, + "ry": 0, + "rz": 0 + }, + { + "y": 0.5, + "x": 1, + "z": 0, + "rx": 0, + "ry": 0, + "rz": 1.5707963267948966 + }, + { + "y": -0.5, + "x": 1, + "z": 0, + "rx": 0, + "ry": 0, + "rz": 1.5707963267948966 + }, + { + "y": 0, + "x": 0.5, + "z": 0, + "rx": 0, + "ry": 0, + "rz": 0 + }, + { + "y": 0, + "x": 0.5, + "z": 0, + "rx": 0, + "ry": 0, + "rz": 0 + }, + { + "y": 0, + "x": -0.5, + "z": 0, + "rx": 0, + "ry": 0, + "rz": 0 + }, + { + "y": 0.5, + "x": 0, + "z": 0, + "rx": 0, + "ry": 0, + "rz": 1.5707963267948966 + } + ] } } \ No newline at end of file diff --git a/01_Code/physical_computing_interface/setup/serve.js b/01_Code/physical_computing_interface/setup/serve.js index 01a20a6..7f08b54 100644 --- a/01_Code/physical_computing_interface/setup/serve.js +++ b/01_Code/physical_computing_interface/setup/serve.js @@ -7,11 +7,7 @@ const { exec } = require("child_process"); var express = require('express'); -var fs = require('fs'); var app = express(); -var path = require('path'); - -var fs = require('fs'); const editJsonFile = require("edit-json-file"); var setup; -- GitLab