collision_free_speed#

Module Contents#

class CollisionFreeSpeedModel[source]#

Collision Free Speed Model

A general description of the Collision Free Speed Model can be found in the originating publication https://arxiv.org/abs/1512.05597

A more detailed description can be found at https://pedestriandynamics.org/models/collision_free_speed_model/

strength_neighbor_repulsion[source]#

Strength of the repulsion from neighbors

range_neighbor_repulsion[source]#

Range of the repulsion from neighbors

strength_geometry_repulsion[source]#

Strength of the repulsion from geometry boundaries

range_geometry_repulsion[source]#

Range of the repulsion from geometry boundaries

strength_neighbor_repulsion: float = 8.0[source]#
range_neighbor_repulsion: float = 0.1[source]#
strength_geometry_repulsion: float = 5.0[source]#
range_geometry_repulsion: float = 0.02[source]#
class CollisionFreeSpeedModelAgentParameters[source]#

Agent parameters for Collision Free Speed Model.

See the scientific publication for more details about this model https://arxiv.org/abs/1512.05597

Note

Instances of this type are copied when creating the agent, you can safely create one instance of this type and modify it between calls to add_agent

E.g.:

positions = [...] # List of initial agent positions
params = CollisionFreeSpeedModelAgentParameters(v0=0.9) # all agents are slower
for p in positions:
    params.position = p
    sim.add_agent(params)
position[source]#

Position of the agent.

time_gap[source]#

Time constant that describe how fast pedestrian close gaps.

v0[source]#

Maximum speed of the agent.

radius[source]#

Radius of the agent.

journey_id[source]#

Id of the journey the agent follows.

stage_id[source]#

Id of the stage the agent targets.

position: tuple[float, float] = (0.0, 0.0)[source]#
time_gap: float = 1.0[source]#
v0: float = 1.2[source]#
radius: float = 0.2[source]#
journey_id: int = 0[source]#
stage_id: int = 0[source]#
class CollisionFreeSpeedModelState(backing)[source]#
property time_gap: float[source]#
Return type:

float

property v0: float[source]#

Maximum speed of this agent.

Return type:

float

property radius: float[source]#

Radius of this agent.

Return type:

float