question

mark zhen avatar image
0 Likes"
mark zhen asked Jeanette F commented

A* custom code problem

我之前有在另一個問題詢問過了,但因為檔案的問題無法解決,目前的問題是我不知道報錯發生的問題是甚麼。1659934941759.png

FlexSim 20.0.10
agvastarcustomcode
1659934941759.png (17.2 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.

1 Answer

Kavika F avatar image
0 Likes"
Kavika F answered mark zhen commented

Hey @mark zhen, I found one of your problems.

In your AGV Process Flow, the "Custom 1Code" activity tries to call ".first" on a variable that is null.

1660085959851.png

The "paths" variable comes out null, meaning that there is no "travelPath" subnode coming from the agvNavNode variable. When I go to the "agvNavNode" location, this is what I get (it's referencing TaskExecuter2 in the error at 18 seconds).

1660086203936.png

You'll have to get the paths of the agv another way.


1660086203936.png (4.8 KiB)
1660085970868.png (85.1 KiB)
· 7
5 |100000

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