Social Forces#

Bases: Behavior

Basic social force algorithm from

Helbing, Dirk, and Peter Molnar. “Social force model for pedestrian dynamics.” Physical review E 51.5 (1995): 4282.

Registered properties:

State: GeometricState

Constructs a new instance.

Parameters:
  • kinematics – The kinematics of the agent.

  • radius – The radius of the agent.

Computes a control velocity towards a desired position

Users may override it to specialize a Behavior.

The base implementation returns a null vector.

Parameters:
  • point – The desired point in world-fixed frame

  • speed – The desired speed

  • time_step – The time step

Returns:

A velocity in world-fixed frame

Computes a control velocity towards a desired velocity

Users may override it to specialize a Behavior.

The base implementation returns a null vector.

Parameters:
  • velocity – The desired velocity in world-fixed frame

  • time_step – The time step

Returns:

A velocity in world-fixed frame

Gets the environment state.

Returns:

The environment state.