Bi-directional WebRTC data for Robot Status Updates
I want to get robot status updates in the UI. First step is 2 way communication. Made a test using this commit.
Side note - adding a wireframe
I took the Downloadable 3D STEP model from the Create3 Docs.
With it loaded in Fusion 360, I was able to export an obj
file.
The obj
file can be loaded using ThreeJS as shown in this example and it’s source code.
With the obj
file loaded, I created the wireframe by drawing the model first in black, then over the top with green lines. This prevents being able to see lines that should be hidden.
All of the required files are stored at /Users/matthewpye/Documents/create3_wireframe_js
and can be run with python3 -m http.server
.
From then on it was just changing some positions, animation rotations and colours to end up with a nice widget that can go somewhere on the UI. Have not tested yet to see the impact on performance.