question

Omar Aguilera Rico avatar image
0 Likes"
Omar Aguilera Rico asked Omar Aguilera Rico commented

A * Navigator does not detect the barriers

Hello! I am working on a model in which I implemented the A * Navigator when doing its construction. I realized that not all barriers are added to the A * Navigator. They appear to me in the Tree as an object and not inside the A * Navigator. How can i fix this?

FlexSim 19.1.0
barriersanavigator
tree-anavigator.png (31.9 KiB)
tree.png (68.5 KiB)
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

Joshua S avatar image
2 Likes"
Joshua S answered Omar Aguilera Rico commented

To throw all your barriers back into A*, run this script

for (int i = 1; i <= content(model); i++)
{
	if(rank(model,i).name.search("Barrier")==1)
		moveobject(rank(model,i),Model.find("AStarNavigator"));
}

Can you explain how this occurred? I tried a variety of steps to reproduce this issue but couldn't.

· 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.

Omar Aguilera Rico avatar image Omar Aguilera Rico commented ·

Clear @Joshua S! I explain to you what I did. I was really copying and pasting barriers. Place barriers within a plane and some if detected by the A * Navigator and others not. Those were the two activities that I carried out and I realized that what was mentioned above happened. If you think it is necessary for you to share the model so that you can have a look, write to [email protected]

0 Likes 0 ·