Collision problem

Collision problem

a9080109
Collaborator Collaborator
5,044 Views
44 Replies
Message 1 of 45

Collision problem

a9080109
Collaborator
Collaborator

[ FlexSim 20.0.10 ]

I want to know how to use pf to control the time of collision, so that I can collect data

agv-avoidance-rc.fsm

0 Likes
Accepted solutions (1)
5,045 Views
44 Replies
Replies (44)
Message 2 of 45

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

Detect the OnCollision event in an eventTriggeredSource activity and then use a StatsCollector to collect the data.

0 Likes
Message 3 of 45

a9080109
Collaborator
Collaborator

But what I want to do is I want to give the collision time like five seconds, can it be done with PF?

0 Likes
Message 4 of 45

jason_lightfoot_adsk
Autodesk
Autodesk
I don't understand your sentence.
0 Likes
Message 5 of 45

a9080109
Collaborator
Collaborator

i mean when the collision happens i want to use pf to give the whole process a delay time

1649595426594.png

For example I only want the collision to end after five seconds, is this controllable?

0 Likes
Message 6 of 45

a9080109
Collaborator
Collaborator

@Jason Lightfoot

Can you tell me if you have any good suggestions?

0 Likes
Message 7 of 45

jason_lightfoot_adsk
Autodesk
Autodesk
You know:
  • how far apart the transporters are
  • the size of the spheres
  • the velocities.

so from that you could calculate the duration. If you want to have the collision last for a certain time then you'll need to solve it using basic algebra.

0 Likes
Message 8 of 45

a9080109
Collaborator
Collaborator

Can you provide a case? For example 1 second?

0 Likes
Message 9 of 45

jason_lightfoot_adsk
Autodesk
Autodesk
It's time = distance/speed - you should be able to manage that.
0 Likes
Message 10 of 45

a9080109
Collaborator
Collaborator

I don't understand how do I bring data into flexsim

0 Likes
Message 11 of 45

jason_lightfoot_adsk
Autodesk
Autodesk
It occurs to me now that you might just want to hold the AGVs for 5 seconds before they continue once the collision event has been detected - and not that you want the spheres to be colliding for exactly 5 seconds - is that right?
0 Likes
Message 12 of 45

a9080109
Collaborator
Collaborator

yap is to stay in that state for five seconds, after which it will continue to execute the task

Message 13 of 45

jason_lightfoot_adsk
Autodesk
Autodesk
Okay so you should probably just stop the AGVs for the 5 seconds when you detect a new collision. If you have a problem with double detection then you'll need to record that the two AGVs are in a collision already and test for this when the second firing of the collision event happens.
0 Likes
Message 14 of 45

a9080109
Collaborator
Collaborator

I don't know very well!! Could you please give me an example?

0 Likes
Message 15 of 45

jason_lightfoot_adsk
Autodesk
Autodesk
0 Likes
Message 16 of 45

a9080109
Collaborator
Collaborator

@Jason Lightfoot

I would like to ask if I am going to add other objects now, how can I adjust my model to make it run smoothly. Also in the TRAVEL settings, can I do it in another way? Instead of using CURRENT.DEST to specifyagv-avoidance-rc-jl.fsm

0 Likes
Message 17 of 45

jason_lightfoot_adsk
Autodesk
Autodesk
Of course - add the other agvs to the same process flow. See instanced process flows. You already know how to create travel tasks - the example just used a label for ease.
0 Likes
Message 18 of 45

a9080109
Collaborator
Collaborator

@Jason Lightfoot

I used the case you provided to create a similar activity in general pf, but he doesn't seem to have a way to delay like in the case, what's wrong with me?0421.fsm

0 Likes
Message 19 of 45

a9080109
Collaborator
Collaborator

@Jason Lightfoot

In addition, I also want to ask if I can control which side will back up when a collision occurs? As far as this model is concerned, the car on the left is backing up

0 Likes
Message 20 of 45

jason_lightfoot_adsk
Autodesk
Autodesk

You're using the term 'current' in a general process flow. It doesn't mean the same thing there. You need to write a pointer to the agv on the token using the event triggered source.

0 Likes