Mentions légales du service

Skip to content
Snippets Groups Projects

Merge obstacles into dev_whatever

Merged VAN TOLL Wouter requested to merge obstacles into dev_whatever
2 files
+ 30
10
Compare changes
  • Side-by-side
  • Inline
Files
2
  • d0778883
    SocialForcesAvoidance: · d0778883
    VAN TOLL Wouter authored
    - Implemented obstacle avoidance force.
    - Renamed parameters to match the Helbing/Molnar paper, and explained them a bit better in the documentation.
@@ -45,16 +45,22 @@
/// ### Parameters:
/// <list>
/// <item>dt (float): A time window parameter used in force calculations. It does not have a very intuitive meaning.</item>
/// <item>scale (float): A scaling factor for the overall force.</item>
/// <item>sigma (float): Determines the steepness of the exponential function defining the inter-agent force.</item>
/// <item>V0 (float): A scaling factor for all agent-avoidance forces.</item>
/// <item>sigma (float): Determines the steepness of the exponential function defining an agent-avoidance force.
/// Could be interpreted as the distance (in meters) that an agent wants to keep from another agent.</item>
/// <item>U0 (float): A scaling factor for all obstacle-avoidance forces.</item>
/// <item>R (float): Determines the steepness of the exponential function defining an obstacle-avoidance force.
/// Could be interpreted as the distance (in meters) that an agent wants to keep from obstacles.</item>
/// </list>
/// </remarks>
class SocialForcesAvoidance : public ObjectInteractionForces
{
private:
float dt = 1;
float scale = 2.1f;
float V0 = 2.1f;
float sigma = 0.3f;
float U0 = 10;
float R = 0.2f;
public:
SocialForcesAvoidance() : ObjectInteractionForces() {}
Loading