1. 22 Apr, 2020 1 commit
    • VAN TOLL Wouter's avatar
      - Policy now stores cost functions as CostFunction* instead of... · af4c4a9d
      VAN TOLL Wouter authored
      - Policy now stores cost functions as CostFunction* instead of shared_ptr<CostFunction>, which could cause unexpeced bottlenecks when running on multiple threads.
      - CostFunction registration now uses modern C++ templates and lambda expressions, instead of C-style macros.
      - Removed costFunctionRegistration.h/.cpp.
      af4c4a9d
  2. 07 Apr, 2020 1 commit
  3. 03 Apr, 2020 1 commit
  4. 24 Feb, 2020 1 commit
  5. 17 Feb, 2020 1 commit
  6. 13 Feb, 2020 1 commit
  7. 12 Feb, 2020 1 commit
    • VAN TOLL Wouter's avatar
      Started adding static obstacles: · e5771f42
      VAN TOLL Wouter authored
      - New class Polygon2D.
      - New geometry functions for Vector2D.
      - New time-to-collision (TTC) functions in CostFunction.
      - CostFunction::ComputeTimeToFirstCollision() now includes obstacles as well.
      - Reordered parameters in existing TTC functions; this affects several cost functions.
      
      TODO:
      - Read obstacles from XML.
      - Cost functions that use something more complicated than "first TTC" should define what to do with obstacles.
      - Maybe implement more efficient neighbor search for obstacles.
      e5771f42
  8. 06 Feb, 2020 1 commit
  9. 04 Feb, 2020 1 commit
  10. 03 Feb, 2020 3 commits
  11. 23 Jan, 2020 1 commit
    • VAN TOLL Wouter's avatar
      - Simplified ForceBasedFunction so it doesn't automatically include goal reaching. · 2179eaa2
      VAN TOLL Wouter authored
      - Added GoalReachingForce for the goal-reaching component that used to be in ForceBasedFunctions. You can now combine this with other forces (e.g. a child of AgentInteractionForces) in a policy.
      - Added AgentInteractionForces, an abstract class for cost functions that define an (attractive or repulsive) interaction force per agent.
      - PowerLaw and SocialForcesAvoidance now inherit from AgentInteractionForces.
      2179eaa2
  12. 17 Jan, 2020 1 commit
  13. 18 Dec, 2019 1 commit
  14. 04 Dec, 2019 1 commit
    • VAN TOLL Wouter's avatar
      Thread safety: · f95d5eac
      VAN TOLL Wouter authored
      - Each agent now has its own random-number generator.
      - The main CostFunction methods are now all "const": the CostFunction object itself cannot change!
      - The program now produces the same results with any number of parallel threads.
      - (Any trial that involves randomness may still give different results each time. I have not tested this properly yet.)
      f95d5eac
  15. 03 Dec, 2019 1 commit
  16. 27 Nov, 2019 2 commits
  17. 26 Nov, 2019 4 commits
  18. 20 Nov, 2019 1 commit
  19. 19 Nov, 2019 2 commits
    • VAN TOLL Wouter's avatar
      Improved TtcaDca: · 36fd1c49
      VAN TOLL Wouter authored
      - Moved TTCA / DCA computations to a helper function in CostFunction.
      - Fixed bugs: replaced "position" by "velocity" on two occasions!
      - Reduced code duplication.
      36fd1c49
    • VAN TOLL Wouter's avatar
      Improving force-based methods: · 77c58aef
      VAN TOLL Wouter authored
      - Added ForceBasedFunction as an abstract parent to all force-based methods. It solves the cost/gradient part generically, and child classes only need to fill in the ComputeForce() method.
      - Turned SocialForces and PowerLaw into child classes of ForceBasedFunction.
      - Fixed bug in PowerLaw: replaced "position" by "velocity" on one occasion!
      - Added CostFunction::ComputeTimeToCollision() as a reusable component for all cost functions.
      77c58aef
  20. 18 Nov, 2019 1 commit
  21. 12 Apr, 2019 1 commit
  22. 02 Apr, 2019 2 commits
  23. 29 Mar, 2019 1 commit
  24. 08 Mar, 2019 1 commit
  25. 14 Dec, 2018 1 commit
  26. 30 Nov, 2018 1 commit
  27. 14 Sep, 2018 1 commit
  28. 20 Jul, 2018 4 commits
  29. 13 Jul, 2018 1 commit