Skip to content

Group Model: avoid waiting behavior if obstacle is broad. otherwise agents get stuck.

Mayr, Christina Maria requested to merge changeSpeedAdjuster into master

Group members wait for each other when the distance between them becomes too large.

If the group members are in different corridors, this can cause agents to get stuck.


This occurs when the obstacle between the corridors is very wide (see sketch).

Desired behavior: Agents should not wait, but go directly to the goal in this case.

I check if there is an obstacle in between. If so, the agents should not wait

			if (!group.isLostMember(ped)) {
				if (aheadDistance > 8) {
					if (!group.isCentroidWithinObstacle()){
						result = Double.MIN_VALUE; // *waiting behavior*
					// else: *do not wait*, treat group member as "lost"
					// holds if agents get separated by broad obstacles 

Merge request reports