Trouble having intersections for horizontal and vertical paths

Trouble having intersections for horizontal and vertical paths

preetdesai
Not applicable
111 Views
15 Replies
Message 1 of 16

Trouble having intersections for horizontal and vertical paths

preetdesai
Not applicable

[ FlexSim 24.0.1 ]

I am having trouble creating intersection when some paths and horizontal and some are vertical. Just like a mesh or rows and columns. I am not having success to create intersection between horizontal and vertical paths. I do not want to use elevators since the concept I am working is where small AGVs can travel horizontal as well as vertical. Horizontal and vertical paths are exactly align at X axis so there is no offset.

1706822008524.png


0 Likes
Accepted solutions (1)
112 Views
15 Replies
Replies (15)
Message 2 of 16

joerg_vogel_HsH
Mentor
Mentor

You can add a horizontal plane in your model. Draw normal path on it, which connects to other horizontal paths. Then you rotate the plane through a path as an axis.

Message 3 of 16

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

This doesn't look to be a supported configuration of automatic intersections. You should be able to connect them when using a path between each intersection rather than two crossed paths. This means more effort but you can code automatic path creation based on intersection points.

Message 4 of 16

preetdesai
Not applicable
Thanks Joerg! That was my next step but wanted to see if there is any better way than that. Thank you!
0 Likes
Message 5 of 16

preetdesai
Not applicable
Hi Jason! I tried to do that but I am able to join them on one side but not on the other side. You mentioned I can do it via code, can you share example script? That would be very helpful. Like a two horizontal lines and two vertical lines having 4 intersections.
0 Likes
Message 6 of 16

jason_lightfootVL7B4
Autodesk
Autodesk

Just set up your table defining the paths

1706892598932.png

and then run this query in a script console:

Table.query("INSERT INTO Objects()  (Class, Name, StartLocation, EndLocation, AccumulationType, AGVOrientation, IsTwoWay) SELECT  Class, Name, StartLocation, EndLocation, AccumulationType, AGVOrientation, IsTwoWay FROM PathDefs")

giving:

Image.png

Here's the example:

AGVpathBuild.fsm


0 Likes
Message 7 of 16

jason_lightfootVL7B4
Autodesk
Autodesk

Hi @Preet, was one of Jason Lightfoot's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 comment back to reopen your question.

0 Likes
Message 8 of 16

preetdesai
Not applicable
Hi @Jason Lightfoot creating the path worked but when I create controlpoints on each intersections and try to move AGV on them, agv is not able to find the destination.
0 Likes
Message 9 of 16

jason_lightfootVL7B4
Autodesk
Autodesk
Was that part of your original question, and can you upload your test model?
0 Likes
Message 10 of 16

preetdesai
Not applicable

Hi @Jason Lightfoot ! As I asked in the original question, I want the AGV to travel through this horizontal and vertical paths but I was able to have the intersections. Now, with your solution I have the intersection for 5 x 20 metrics that I created. (Similar to the single square path that you have in the attached model). However, when I create control points on each end and then give destination to AGV, it is unable to find the path. I double that the end of one path is not snapped to the end of another path. I also tried finalizeSpatialChanges function but it did not work. I am unable to share the model but you can assume that it has 5 rows and 20 columns of the example that you shared snapped together. Attaching the image.

1708479508475.png

What I want is I should be able to give any intersection destination and the AGV should be able to travel there.

0 Likes
Message 11 of 16

jason_lightfootVL7B4
Autodesk
Autodesk
I believe your control points need to be on the horizontal sections. Also the AGV Navigator doesn't support routing to intersections - it resolves travel tasks to control points.
0 Likes
Message 12 of 16

preetdesai
Not applicable
Hi @Jason Lightfoot ! I actually put the control points at each intersections. So the travel command always refer to the control points.
0 Likes
Message 13 of 16

Jeanette_Fullmer
Community Manager
Community Manager
Hello @Preet, Is the issue the direction of paths? I don't see any paths in your picture that allow the AGV to go up the grid. Could you share the model?
0 Likes
Message 14 of 16

preetdesai
Not applicable

Hi @Jeanette F ! I am attaching the sample model.

1708540344269.png

Script 1 creates the path

Script 2 creates control points

Script 3 has a command to move the AGV to a specific control point. The error I get is that the AGV is not able to find the path. I even tried finalizeSpatialChanges function. But that deletes all paths. I am sure I am missing something here.

sample model.fsm

0 Likes
Message 15 of 16

preetdesai
Not applicable

Hi @Joerg Vogel I tried this method as well. As soon as I rotate the plane with respect to Y axis, I see that it lost the itersections and AGV cannot find the path. Attaching the model. Also attaching two images (before rotation and after rotation). You can see that the intersections are not carried over.sample model.fsm

Image.png1708545193566.png

1708545342361.png



0 Likes
Message 16 of 16

preetdesai
Not applicable
@Jason Lightfoot @Jeanette F @Joerg Vogel I was able to accomplish the goal using networknodes instead of path and control points.