question

Gabriela VR avatar image
0 Likes"
Gabriela VR asked Eric M commented

Social Forces System with cranes

Hello,

I`m trying to make the cranes in my simulation not cross each other and keep the distance between them. I`m using the new social forces system tool but now they don`t move it all. What am I doing wrong? Social Force System.fsm

FlexSim 21.1.1
flexsim 21.1.1social forcemultiple cranesproximity detection
· 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.

Eric M avatar image Eric M commented ·

Hi @Gabriela VR, was Phil BoBo's answer helpful? If so, please click the red "Accept" button at the bottom 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 ·
Phil BoBo avatar image
2 Likes"
Phil BoBo answered Phil BoBo edited

1. Something is corrupt in your model's windows that is causing FlexSim to crash after opening your model and then opening the default workspace. I'll add a case to the dev list to look into the crash, but in the meantime, I've opened your model without views and resaved it to fix the issue.

2. The cranes don't move because they are far enough away from each other to not be repulsed by the social force system in your model (the cranes are more than 10 meters apart already and you've specified a Max Distance of 1 in your social force system). In the attached model, I've moved them closer together so that you can see them get pushed away from each other by the social force system.

3. The social force system rotates its agents but cranes like this don't normally rotate while moving, so I've added an On Pre Draw trigger to explicitly set the cranes' rotation to 0.

social-force-system_2.fsm

4. When using a social force system as a navigator, you can add a Goal-Based Travel Destination that causes a force towards the destination of a travel task. That force would push the cranes directly towards the destination and also rotate them. This isn't really what you want these cranes to do. Rather than using a Social Force agent system to move the cranes, you should use a Proximity agent system to detect when they are close and give one a pre-emptive task to move out of the way. Using this method, the cranes use their own navigation for tasks, which can include lifting, traveling, and dropping rather than rotating and going directly towards the destination. See Crane collision logic with Agent System for an example.


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
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

There's no goal based rule to get the crane moving which would normally solve the problem but in this case the crane doesn't respond well to task navigation via the Social Force, so we'll do some checks and come back with an statement.

5 |100000

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