But I can’t require this library into observable, It’s not on NPM. BMWalker = require('https://tetunori.github.io/BMWalker.js/dist/v0.6.0/bmwalker.js') gives an invalid module.
Since bmwalker.js isn’t AMD compatible or an ES module, you’ll need to make a tweak to export the BMWalker class and upload as a file attachment. See this notebook: BMWalker / Observable / Observable
Note that you’ll need to further modify bmwalker.js if you need to export anything else (e.g. constants or other classes).
If anyone has a clue as to why walker.setSpeed throws an error, yet seems to work, that would be interesting. I’m also pretty sure I should be using invalidation somewhere but not quite sure how.
Thanks. Will be looking at using Observable Plot. I don’t know how to work out the length of the animation loop so currently have it hard coded for now.
There are 15 data points to track/plot,
“Head”
“Clavicles”
“L-Shoulder” “L-Elbow” “L-Hand”
“R-Shoulder” “R-Elbow” “R-Hand”
“Belly”
“L-Hip” “L-Knee” “L-Ankle”
“R-Hip” “R-Knee” “R-Ankle”
I’m still new to plot it’s happening very slowly.
The structure of the data I generate doesn’t seem like the best format, so might have to rework that. But the basics look ok