ptcrealitylab / vuforia-spatial-basic-interfaces-addon Goto Github PK
View Code? Open in Web Editor NEWBasic interfaces to hardware for the Vuforia Spatial Toolbox
Home Page: https://spatialtoolbox.vuforia.com
License: Mozilla Public License 2.0
Basic interfaces to hardware for the Vuforia Spatial Toolbox
Home Page: https://spatialtoolbox.vuforia.com
License: Mozilla Public License 2.0
Part of #1
If you enable the LEGO Hub hardware interface and don't have a Bluetooth device connected to your server it throws an exception at the start up of the server:
addons\vuforia-spatial-core-addon\node_modules\@abandonware\bluetooth-hci-socket\lib\usb.js:91 throw new Error('No compatible USB Bluetooth 4.0 device found!');
It is not possible to change this setting anymore since the server won't start up.
Quick fix is disabling the LEGO hub by go to this path:
addons\vuforia-spatial-core-addon\interfaces\LegoHub\index.js
and change line 56 from if (exports.enabled) {
to if (exports.enabled && false) {
.
This will disable the LEGO hub hardware interface and makes it possible to run the server again.
Can be patterned after the WebThings interface
After turning on LegoHub in Manage Hardware Interfaces, legoHub_1 Object was added to Object Configuration tab in Vuforia Spatial Edge Server.
I’ve added a slider in Vuforia Spatial Toolbox and connected it to a node of Motor(s) but somehow I was only able to control right wheel of lego boost
Can be patterned after the WebThings interface
I had some talks about the Webpage and realize that we are missing a very simple example. Each of these experimental add-ons could provide a super simple starting point and a super simple tutorial:
Hue Lights,
Lego Wedo,
Arduino
I searched trough boxes at home and found an Arduino, Wedos and a hue light hub with a light bulb. I can get the hardware interfaces back up running but need some help with the visual frontend in the server.
Visual Hardware Interface Setting for Arduino and Lego interface similar to Philips Hue
When connecting the Hue bridge, Lights are added but are empty : the Lightframe content is not there.
I found myself having to click on the Light name, then toggling On/Off the Hue interface, then refreshing the server page (clicking the “en1” button) to allow the Lightframe to show up. Then, I have to click on the Lightframe (empty), refresh the server page again (“en1” button), and then the Lightframe populates with the switch and brightness nodes when you click on it again.
Unclear from my perspective if this is a bug in the basic-interfaces-addon or in the edge server
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.