rwaldron / javascript-robotics

70 stars 43 forks source link

Big Pain on the Hexapod project using Johnny-five, simple fix #23

Open BrianKayWalker opened 7 years ago

BrianKayWalker commented 7 years ago

In the package.json the dependencies call for a version of "johnny-five": "^0.8.14" This loads that version of johnny-five, which also requires serialport 1.7.4. I could never get that to work. SO, I simply changed the version required for johnny-five to "^0.10.7" in the package.json and all is good. serialport 4.x.x loads up and you have one more code change. Search for IsInverted and change it to invert (9 of them).
His is the code I am using now, dated 2014 https://github.com/rwaldron/javascript-robotics/blob/master/Buck.Animation/phoenix.js I found this code dated 2017, https://github.com/rwaldron/johnny-five/blob/master/docs/phoenix.md I plan to figure out the differences and go with the best.

Hope that info helps! Brian

dtex commented 7 years ago

That's very helpful and thank you for the heads up.

That code on the Johnny-Five repo isn't much newer. That file has been regenerated automatically with changes to things like the copyright date. The last substantive change was in 2015.

I'll get everything updated for the newer version of Johnny-Five and Serialport. Just curious, what version of node are you running? It doesn't change anything, I just want to confirm why serialport 1.7.4 wouldn't work for you.

Not meaning to throw a curveball at you, but this repo has newer versions of everything and even has a version that uses inverse kinematics with Tharp to solve the joint positions. It's so much smoother and less code.

BrianKayWalker commented 7 years ago

dtex, I am using node 4.1.1 I started out with the latest, but kept downgrading thinking that was the issue. I hope all will be good with the current version. They are working on serialport 5x now... I wasted a ton of time getting to where I am now. For the sake of the book owners, it would be awesome if the code could be updated so it runs with what you would install today. I am checking out the IK repo, things are missing but it looks cool... I planned to learn about IK next. I bought another set of boards (SSC-32U and Botboarduino V1.0 and the Lynxmotion (sony PS3) remote control. I 3d printed my parts for the bot from http://www.thingiverse.com/thing:1458471 Hope that helps others too.

dtex commented 7 years ago

I am checking out the IK repo, things are missing but it looks cool...

Tell me more. I've back-burnered Tharp while I work on alternative actuators for my next walking robot.

it would be awesome if the code could be updated so it runs with what you would install today.

Agreed. I'll need to test and the robot is at the local maker space but I should be able to get there this weekend.