question

Ryusuke T avatar image
0 Likes"
Ryusuke T asked Ryusuke T commented

Detect only a specific range by the agent system

The agent system detects with a circular radius. I want to detect only in a limited range.

Here's information about @Phil BoBo's ideas, but I don't know how to implement it.

Do you have any good advice?

FlexSim 21.0.10
agent systems
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Ryusuke T commented

See the AGV models in the Agent Module Example Models - FlexSim Community

1655216414802.png

It gets the intersecting neighbor's location, projects it onto the agent object's coordinate space, uses atan2() to determine the direction that the neighbor is relative to the agent, and then uses an if() statement to ignore collisions that are outside a particular window of direction. (-70 to 70 degrees in the image above for example.)

In those example models, they use that code to avoid triggering proximity with AGVs that are pulled off the main loop onto the spurs.


1655216414802.png (181.3 KiB)
· 7
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.