question

Michael K7 avatar image
0 Likes"
Michael K7 asked Phil BoBo edited

How do I get the travelPath variable of the AStar treenode?

Is there a way to get the information of:

"AStarNavigator>variables/travelmembers/Operator>travelPath" ?

I have to to get the information of col and row, because I want to set them in the

"AStarNavigator>stats/extraData"

I am using the AStar Object with a Network, which is currently not compatible. I want the Operators to walk a defined path, but highlight the Areas, where the Operators encounter the blocked Status. For that, I want to use the Heat Map of the AStar object and set the values of the heat map by Hand, for every encountered Blocked Status of each Operator in the Network.

FlexSim 18.2.2
astar navigatortreenode
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

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo edited

In FlexSim 2019, the A* Navigator has a FlexScript API and more callbacks that can be used to get traveler member paths. (The 2019 beta is available now, but the A* heatmap is currently not working in it.)

If you just want to draw a heat map from your own custom data, I would suggest using the mesh...() commands instead of messing with the internals of the A* Navigator.

Here are a couple of answers that have example models showing how to use the mesh commands:

How to use mesh API?

How do I add a texture to a mesh when using the mesh API

Also, you might find this useful: Heatmap Module

5 |100000

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