Python Swarm Simulation | Herding sheep using python🐏

preview_player
Показать описание
in this video, i'll be delving into swarm simulation, i'll create a sheep herd and a shepherding do to collect them 🐏 and drive them autonomously to a goal location, i'll do this from scratch using python.
the code is available at the link below, so don't forget to subscribe like, and share, your support is much appreciated

⏱️ TimeStamps :
0:00 introduction
0:56 what is sheep herding?
1:37 sheep herding simulation
7:00 future improvements
🏷️ HashTags: #python #simulation
Рекомендации по теме
Комментарии
Автор

if you like this video, please leave a like and share it with your friends.

hobby_coding
Автор

Also probably the reevaluation of the position is not continuous but with a few seconds (random?) in between

In other words, both sheep and dog do not reevaluate the position they want to go in every frame, but every X time interval (to be defined, maybe depends on things like stress level or whatever)

Tightness to the group could also maybe be a bit dependent on similar factors

TimmacTR
Автор

Great, looks awesome. The influence of the dog on the sheep movement was not that clear to me. I think the sheep is not actually moving to the centroid of the flock

rgel
Автор

Question: I have a prototype game where it's a metro station and you have similarly a crowd of people who navigate a NavMesh (in Unity)
These crowd entities just follow a NavMesh path with a specific target, but do have basic evasion maneouvers because the navmesh does include them as obstacles

My question is: how would I be able to include/add Boid behaviours in that? Such as, matching nearby entities' direction for example?
I would say adding a Vector, but not sure how that would work in combination to the NavMesh agent

TimmacTR
Автор

It was a great tutorial. Please make the tutorial for the second part of lane detection of how to train a model. 😊😊

techboy