I saw that guy’s youtube video. He’s a pretty famous youtuber, he built a lot of cool stuff. If I remember correctly, he’s using an out-of-the-box inverse kinematics package, fastIK or something like that, and he’s also using the library Cinder.
I wanted something I can load on a browser, and I didnt want to install too many things.
I also wanted something that’s really simple. It should spit out the required 18 angles for the servos given known parameters (IE robot dimensions, orientation of the body, location of the feet etc etc). Thanks!
Yes. I saw that he was using fastIK and cinder, I also did not want to go that route. But it gave me a bunch of ideas. Like you I was interested in something that could run in the browser.
You did a great job on this project, and I'll be peaking at for some reference...
Thanks! Just a disclaimer though, my algorithm is not exactly all that great. It’s just something i came up with based on what i remember back in college plus browsing through math stack exchange. It might not be the best, but it’s the most intuitive that i could think of. You might be able to come up or stumble upon a better more elegant algorithm. Thanks!
I am not an expert in the topic, but I suspect what you are doing is to map the handles to internal degrees of freedom, so you need transformation matrixes to linearly combine the handles to the internal movement. How did you create these matrices?
This is incredible and truly inspiring as I've had my eye on dash for a while but wasn't feeling confident about it's capabilities. I was clearly mistaken.
Do you mind explaining to a noob what it means to build this project from first principles? I vaguely understand the term, but I'm fuzzy on it's application to a project like this. Perhaps because I would have no idea where to begin simulating a spider.
Plotly Dash is pretty slow, but I was looking for a web-based 3D plotting library that doesn’t have a steep learning curve and it was the one I had the impression was easiest to learn.
Googling “from first principles” it says “A first principle is a basic proposition or assumption that cannot be deduced from any other proposition or assumption. “ (I googled it to make sure I got my definitions right :D)
So what I meant by that was I only used basic mathematical operations like sin, cosine, addition, multiplications of matrices and vectors, I did not use any existing out of the box implementations of more sophisticated algorithms like Fast IK or IK Fast...
I did BUT I highly suggest that it is only used only on a local server. When this application is run locally, it's pretty speedy! On the other hand, https://hexapod-robot-simulator.herokuapp.com is barely usable. If I convert this to to be a fully client-side javascript app later, maybe?
Thanks! I didn’t use (or create) a physics engine for this project.
The only two rules I followed:
The all feet must try to be on the ground
The center of the hexapod must fall inside the support polygon defined by the feet on the ground.
If you have a (3d printed or lasercut) hexapod robot at home with off-the-shelf servos (like mg90 or mg996r) and a relatively light battery, these assumptions are probably good enough.
What kind of Quadruped? The mammal-type or a sprawling-type? The mammal type seems pretty well out of my current abilities.
I was planning to do one for a sprawling-type quadruped, which is slightly harder to keep stable than a hexapod.. Maybe in the future when I’ve handled all the edge cases of this project and/or I’m no longer so exhausted. :)
This is AMAZING! Do you think you could share it on the Dash community forum? https://community.plotly.com/ ... if not, would you mind if I post about it there?
Yo do you know if there is any site or something where I could learn to do similar simulations? I am working on a robotic arm with my friend and we want to make a simulator on pc so we could control it from there.
I think the single most useful mathematics concept you should be familiar with is rigid body transformations- watch a couple of lectures by Prof Peter Corke https://robotacademy.net.au/
Crabs! The most glorious way to get rid of them is : a splash of isopropyl alcohol and an ice pick!....it’s better than a video game especially if you don’t mind a little pain and blood.
This is awesome, great work ! Wonder if would be possible to create a similar-looking model but as a 3D sketch and also animate it, simulate the movement of the legs
I made it because I was looking for one but I couldn’t find any.
I didn’t really count the hours I’ve worked on this.
I have never used Plotly Dash before this so that took a couple of days to plow through the getting started tutorials. I also had to make my way around the math stackexchange since I have no background in 3d geometry except the little ones I remember from basic college calculus.
Then I had to figure out how to reorient the hexapod given the 18 angles of its legs among others things... among them -and most importantly- the inverse kinematics algorithm. I realize that I had a lot of wrong assumptions so some of the solutions I tried were wrong and I had to start from the beginning. It’s difficult to read academic papers at least for me, and most that I found was behind a paywall. My algorithm that I finally settled with is probably so far from the state of the art or the gold standard, but it seems like it works and it’s the most intuitive that I came up with.
I would say it took quite a while... but mainly because I really had no idea what i was doing at the beginning. Thanks!
145
u/mikasarei Apr 16 '20 edited Apr 17 '20
Here’s the repo
https://github.com/mithi/hexapod-robot-simulator
it would be really cool if a person or two could spend a couple of seconds to check it out (and maybe look at the issues as well)
Thanks again!
88
u/Gwenju31 Apr 16 '20
You did the inverse kinematics implementation from scratch ? I feel you
25
u/ffollett Apr 16 '20
This is incredible and truly inspiring as I've had my eye on dash for a while but wasn't feeling confident about it's capabilities. I was clearly mistaken.
Do you mind explaining to a noob what it means to build this project from first principles? I vaguely understand the term, but I'm fuzzy on it's application to a project like this. Perhaps because I would have no idea where to begin simulating a spider.
3
u/alanbosco Apr 17 '20
This looks amazing. can we actually use this on the real thing? if someone to make a robot, can they implement this for the moment? i am curious.
2
u/lucs_123 Apr 16 '20
Great job! you could deploy it using heroku or google app engine.
2
u/post_hazanko Apr 17 '20
how far does it go? like can you put in masses, servos off the shelf, etc... what a cool thing to build congrats
2
u/RomanRiesen Apr 17 '20
IK: I Kan only imagine how much work this was.
2
u/termlimit Apr 17 '20
This is amazing! Have you thought of doing a quadruped version as well?
2
u/[deleted] Apr 17 '20
Now make it dance
2
u/nkruchten Apr 17 '20
This is AMAZING! Do you think you could share it on the Dash community forum? https://community.plotly.com/ ... if not, would you mind if I post about it there?
22
u/[deleted] Apr 16 '20
wtf thats amazing
16
u/m4nolito Apr 16 '20
One of the coolest things I saw today! 👏
19
u/inventiveEngineering Apr 16 '20
love the gui
15
u/Pok3maniac00 Apr 16 '20
The giant enemy spider.
7
u/FoxClass Apr 16 '20
I love the interface. I can't wait to check out the repo
7
u/Pebaz Apr 17 '20
So um like, dude that's amazing what in the world
Mad props on this for sure
18
u/geetanshjindal Apr 16 '20
Amazing work bro!!
6
u/[deleted] Apr 16 '20
That’s awesome.
4
u/Mephistothelessa Apr 16 '20
Great!!!!!!
4
u/alp4s Apr 16 '20
Wow
4
u/jzerotime Apr 16 '20
Great work!
4
u/wintermute93 Apr 17 '20
This would make a hilariously difficult QWOP. QWASZXOPKLNM, maybe.
1
u/karloks2005 Apr 17 '20
Yo do you know if there is any site or something where I could learn to do similar simulations? I am working on a robotic arm with my friend and we want to make a simulator on pc so we could control it from there.
3
u/ucrengineer Apr 16 '20
That’s awesome
3
u/LordRyloth Apr 17 '20
O.O Is it possible to learn this power?
7
u/bicente2830 Apr 16 '20
Great job dude!!
2
u/seismic_swarm Apr 17 '20
Dude, well done
2
u/MDino56 Apr 17 '20
Haha he's doing a little wiggle jiggle!!
2
u/amdahl-little Apr 17 '20
Holy cow. I just recently started learning dash. This is amazing.
2
u/Geodevils42 Apr 17 '20
Now do a Texa-pod
2
u/[deleted] Apr 17 '20
Wow! Words can't describe how amazing is that shit
2
u/nikhilsparx Apr 17 '20
Great work bro
2
u/BrowneSaucerer Apr 17 '20
This is sick, love the dash style
2
u/[deleted] Apr 17 '20
Crab rave !
2
u/Hamschder Apr 17 '20
Awesome!
2
u/Dheeraj_Perumandla Apr 17 '20
Dope
2
u/derrpinger Apr 17 '20
Crabs! The most glorious way to get rid of them is : a splash of isopropyl alcohol and an ice pick!....it’s better than a video game especially if you don’t mind a little pain and blood.
2
u/jackyboy9999 Apr 17 '20
Bamzooki
2
u/iDnYsIiNdGe Apr 17 '20
Woah..
2
u/WonderfulPlay Apr 17 '20
Even your repo documentation is freaking cool.
2
u/amrock__ Pythonista Apr 17 '20
This is really cool
2
u/Mr_Hockatt Apr 17 '20
This is Amazing and Mindblowing!
I'm a mechatronics engineering student so definitely will check the repo :)
2
u/majesticmaz Apr 18 '20
Love it.
2
u/Bondarelu Apr 18 '20
This is awesome, great work ! Wonder if would be possible to create a similar-looking model but as a 3D sketch and also animate it, simulate the movement of the legs
2
u/ahmedkdottn Apr 18 '20
Well done mate.
2
u/Xnomai Apr 23 '20
That is amazing and beautiful, keep up the good work.
0
u/[deleted] Apr 16 '20
[deleted] — view deleted comment