From 796163892e685be45057ad3c4036c258653afc03 Mon Sep 17 00:00:00 2001 From: Muhammad Taha <37846193+AbsorbedInThought@users.noreply.github.com> Date: Sun, 30 Aug 2020 22:56:36 +0500 Subject: [PATCH] Delete LaserNavigator.vc --- .../blocks/Blocks/Control/LaserNavigator.vc | 80 ------------------- 1 file changed, 80 deletions(-) delete mode 100644 app/resources/collection/blocks/Blocks/Control/LaserNavigator.vc diff --git a/app/resources/collection/blocks/Blocks/Control/LaserNavigator.vc b/app/resources/collection/blocks/Blocks/Control/LaserNavigator.vc deleted file mode 100644 index 4641efd2..00000000 --- a/app/resources/collection/blocks/Blocks/Control/LaserNavigator.vc +++ /dev/null @@ -1,80 +0,0 @@ -{ - "version": "1.0", - "package": { - "name": "LaserNavigator", - "version": "1.0.0", - "description": "Navigates Robot on basis of laser data.", - "author": "Muhammad Taha Suhail", - "image": "" - }, - "design": { - "board": "Python3-Noetic", - "graph": { - "blocks": - [ - - { - "id": "100", - "type": "basic.input", - "data": { - "name": "", - "pins": [ - { - "index": "0", - "name": "", - "value": "0" - } - ], - "virtual": true - }, - "position": { - "x": 64, - "y": 144 - } - }, - - { - "id": "300", - "type": "basic.code", - "data": { - "code": "#! /usr/bin/env python\n\nimport rospy\nfrom sensor_msgs.msg import LaserScan\nimport numpy as np\nfrom wires.wire_str import Wire_Read\n\n\ndef LaserNavigator(input_wires, output_wires, parameters):\n\n while True:\n shm_r = Wire_Read(input_wires[0])\n laser_ranges = np.asarray(shm_r.get(), dtype=np.int32)\n print(laser_ranges)\n print(\"Closest Object at Angle: \", "90")\n print(\"Distance to Object: \", np.min(laser_ranges))\n \n shm_r.release()", - "params": [], - "ports": { - "in": [ - { - "name": "100" - } - ] - } - }, - "position": { - "x": 248, - "y": 88 - }, - "size": { - "width": 384, - "height": 256 - } - } - - ], - - "wires": - [ - - { - "source": { - "block": "100", - "port": "in" - }, - "target": { - "block": "", - "port": "" - } - } - - ] - } - }, - "dependencies": {} -}