question

Ankith T avatar image
0 Likes"
Ankith T asked Jason Lightfoot commented

How to customize Barrier in A* network to allow or restrict people to cross?

In my project i want people in A* network to stop at barrier or flow through barrier according to the label assigned to a control point marked in blue circle.

1656101011791.png

the label of the control point fluctuate between "green" and "red" for every 15 seconds.

1656101173047.png


at first "people red assign label" function the label of control point is "red". at this point if any people approach the barrier, it should not allow people to cross it.

1656101310825.png

after 15 seconds the label of that control point changes to green. at this point barrier should allow people to cross through barrier.

1656101435952.png

is there a way that we can make this kind of modifications to barrier according to the label of a control point.



FlexSim 21.1.5
a star navigationpeople flowcontrol pointbarriers
1656101011791.png (19.8 KiB)
1656101173047.png (13.8 KiB)
1656101310825.png (15.0 KiB)
1656101435952.png (15.0 KiB)
· 1
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @Ankith T, was our answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

You can set a condition for the barrier to be active which can read the state of your crossing. In the attached model I show the barrier is deactivated between 100 and 200 seconds.

TimedBarrier.fsm

The problem here is that the evaluation is at the start of travel and it's not reevaluated during travel. To make that happen you could use an agent proximity to the barrier or maintain a list of travelers. To force the reevaluation of travel you can just preempt the travellers with a zero time delay task.

You may then run into another problem in that the travellers complain they cannot reach a destination or they start walking in a different direction if an alternative path is available. In those cases you might be better preempting them with a Utilize task and then free them once they can cross.


timedbarrier.fsm (87.6 KiB)
· 6
5 |100000

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

Ankith T avatar image Ankith T commented ·
your model is in 22.1 flexsim version, i have the lower version, can you post pictures and explain how did you approach this problem
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Ankith T commented ·

Here's the model in 21.0 - unfortunately it needs 21.2 or later to run it seems.

TimedBarrier_21.0.fsm


0 Likes 0 ·
Ankith T avatar image Ankith T Jason Lightfoot ♦ commented ·
is there any other way that we can stop travelers for some time and release them after certain time. like first 15 seconds people can cross the barrier and next 15 seconds every one should wait at the barrier and then release them to cross the barrier?
0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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