Sorry, I didn't explain my problem clearly. The code "AGV(object).currentTravelPathSection.path" can solve the problem I had before. I'm going to elaborate on my new problem. For a simple example, the path array for an AGV's movement is [Path1, Path2, Path3, Path4, Path1], which consists of 5 segments of paths. When the AGV reaches the fifth section of the path, using "currentTravelPathSection" allows us to obtain Path1. I want to determine at which section of the path the AGV is currently located. When I use PathArray.indexof(Path1), the returned index is 1, which will cause subsequent errors. So, whether it is possible to quickly determine through the tree node or other methods which path the AGV is currently on in its path array, I need to obtain the correct index.