I Made Henry Hoovers Fight with AI
From James Bruton.
Ad: Get your own Makera Canvera Air Desktop CNC Machine today: https://global.makera.com/en-gb/products/carvera-air
👉 Makera Official INS: https://www.instagram.com/makera_inc/
👉 Join in Makera Facebook Group – Carvera Air: https://www.facebook.com/groups/carveraair
👉 Makera Official YouTube: https://www.youtube.com/@Makera
#Makera #BestDesktopCNC #CarveraAir #CNCMachine
In this video I’m going to an artificial neural network to learn how to make BattleBot Combat Robots fight autonomously and then build them in real life.
Yes they’re made out of vacuum cleaners – called Henry and Harry – because they already have faces which makes them the ideal platform.
I'm using Pygame, Gymnasium, Stable_Baselines3 and Pytorch to train the model.
The first thing we need to do though, is train an artificial neural network to learn how to make BattleBots fight each other autonomously.
Gymnasium doesn’t have any graphical environment, so we’re going to use the game I already wrote for that.
Gymnasium itself doesn’t have any graphical environment, so I’m going to use the game I wrote to take care of that.
Gymnasium is actually only the game wrapper, allowing the game to be reset for each match, and step through the game 20 times a second returning new observations in each step.
Those observations are the robots’ own velocity, health, weapon extension, where the centre of the play area, and the opponent are from the robot’s point of view, the opponent’s relative heading.
To actually build the Neural network I’m using Stable-Baselines3 which is a learning algorithm, and that uses Pytorch underneath because the Neural net it builds is a Pytorch model and Pytorch does the maths for the leaning updates.
🔥 Makera Black Friday — Lowest Prices of the Year!
Carvera: $4,799 (Regularly $5,799 — Save $1,000)
Carvera Air: $1,999 (Regularly $2,699 — Save $700)
Z1: $1,249 (Regularly $1,399 — Save $150)
Z1 Pro: $1,649 (Regularly $1,799 — Save $150)
🎁 Extra Perks from October 27 to November 4:
Free Side Clamp Set ($59.99 value)
10% off accessories
Free-order giveaway
Early shipping
You can support me on Patreon, join my Discord, or buy my Merchandise:
***************************
Discord: https://discord.com/invite/fc6MedG7eW
Patreon: https://www.patreon.com/xrobots
Merch Store: https://james-bruton.teemill.com/collection/all-products/
***************************
Other socials:
***************************
Instagram: https://www.instagram.com/xrobotsuk
Twitter: https://twitter.com/xrobotsuk
Facebook: https://www.facebook.com/xrobotsuk/
***************************
Affiliate links – I will get some money of you use them to sign up or buy something:
***************************
Music for your YouTube videos: http://share.epidemicsound.com/xrobots
***************************
CAD and Code for my projects: https://github.com/XRobots
Huge thanks to my Patrons, without whom my standard of living would drastically decline. Like, inside out-Farm Foods bag decline. Plus a very special shoutout to Lulzbot, Inc who keep me in LulzBot 3D printers and support me via Patreon.
HARDWARE/SOFTWARE
Below you can also find a lot of the typical tools, equipment and supplies used in my projects:
Filament from: https://polymaker.com/
Lulzbot 3D Printers: http://bit.ly/2Sj6nil
Bearings from: https://simplybearings.co.uk/
Lincoln Electric Welder: https://bit.ly/2Rqhqos
CNC Router: https://bit.ly/2QdsNjt
Ryobi Tools: http://bit.ly/2RhArcD
3D Printer Filament: http://bit.ly/2PdcdUu
Soldering Iron: http://bit.ly/2DrNWDR
Vectric CNC Software: http://bit.ly/2zxpZqv
CAD content is sponsored by Autodesk Fusion 360











