Python Swarm Simulation | Herding sheep using python🐏

Поділитися
Вставка
  • Опубліковано 8 сер 2024
  • 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
    🗃️ source code: ko-fi.com/s/f5c64c0476
    💻 my services are available on Fiverr: www.fiverr.com/mouad2021
    ⏱️ TimeStamps :
    0:00 introduction
    0:56 what is sheep herding?
    1:37 sheep herding simulation
    7:00 future improvements
    🏷️ HashTags: #python #simulation
  • Наука та технологія

КОМЕНТАРІ • 8

  • @hobby_coding
    @hobby_coding  3 роки тому +4

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

  • @TimmacTR
    @TimmacTR 3 роки тому +2

    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

  • @techboy6036
    @techboy6036 3 роки тому +1

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

  • @TimmacTR
    @TimmacTR 3 роки тому +2

    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

    • @hobby_coding
      @hobby_coding  3 роки тому +1

      sorry i have little experience with unity i don't even know what a navmesh is

    • @TimmacTR
      @TimmacTR 3 роки тому

      @@hobby_coding Np, thanks

  • @rgel3762
    @rgel3762 2 роки тому +1

    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

    • @hobby_coding
      @hobby_coding  2 роки тому +1

      a better behaviour can be achieved by changing the simulation parameters which are 100% customizable