question

Maryam H2 avatar image
0 Likes"
Maryam H2 asked Maryam H2 commented

Heatmap Data Extraction

I want to extract the heatmap data, as explained in this post: Heat map gradient - FlexSim Community. However, I'm a bit confused once I've extracted this data to the Global Table. How can I determine which location/zone on the floor plan each number in each row/column represents? Is there a way to extract such data, meaning knowing the number of traversals per zone/aisle or designated location?

Additionally, I would like to define some zones/room space areas on the floor plan and extract data on how many people are in those locations at each time. How can I do this?

FlexSim 23.2.0
astar navigatorheatmaptraversal pointgriddata
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @Maryam H2, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Maryam H2 commented

You could create a map of grid/tile locations to zones.

It might be easier to start with the Heat Map Anything object and customise that. Then you're not tied to Astar.

· 17
5 |100000

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

Maryam H2 avatar image Maryam H2 commented ·
@Jason Lightfoot thanks for the answer!

Do you mean that extracting heatmap data from A* is not possible and I should create a heatmap by myself for either to extrat traversals data at each node/time and traversals per Location/Zone the ones that I designate in my model? I'll start with Heat Map Anything by I wonder how much time/effort is needed to create a map of grid/tile locations to zones?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Maryam H2 commented ·

No it's clearly possible to extract the AStar map.

If you need to put a lot of work into mapping the zones to tiles then it might make sense to use the customisable heat map that is fully under your control and you can use for any navigator rather get tied into Astar's heat map.

For example you could add the detection of when a traveller changes zone via the heat mapper update, and trigger something from that eg. update your statistics.

0 Likes 0 ·
Maryam H2 avatar image Maryam H2 commented ·

@Jason Lightfoot sorry for the delay in getting back to you!

In the first link you provided, which comment actually generates a map?

Regarding the Heat Map Anything Model, I noticed there are two triggers labeled "on draw" and "on reset" within the Heat Mapper object. Could you help me understand how to customize these triggers? Is it a complex coding task? I would appreciate it if you could guide me step by step.

My immediate concern is figuring out how to extract traversals per node, even if it's possible in A* navigator. Also, I'm interested in creating zones or locations and measuring the number of people who have moved through those areas. How I can create zones and how I can add detections? (Like a Location Census Chart in HC with the difference that I create the Zones) This is somewhat urgent for me, so it would be great if you can help me on this.



0 Likes 0 ·
Maryam H2 avatar image Maryam H2 Maryam H2 commented ·
@Jason Lightfoot I wonder if there's a quick solution to extract such data. Census for Zones or Locations that I create/define. Would you mind take a look at my last comment?
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Maryam H2 commented ·

You would not edit those triggers - the map is calculated using the code on the updateMap label. I can't walk you through the changes since I'm not fully sure I understand how you want to define the zones. The create map is a set of x/y integer values that represent each tile and they can have any resolution. You would need to come up with model coordinates or ranges thereof for which you've defined your zones. Then you could think about how to incorporate those into the map.

Here's the latest version (object scales for metres).

heatmapanything3.fsm

0 Likes 0 ·
Maryam H2 avatar image Maryam H2 Jason Lightfoot ♦♦ commented ·

@Jason Lightfoot I've attached a simple model here.

Let's say that I want to create two zones (shown in blue and orange planes). how should I update the heatmapupdate label on the red cylinder? what is the type of this label (I guess Array Data)?

I don't understand what do these numbers mean : ...: 23, : 22, : 23, : 24, : 29, : 28, : 29, : 6, : 30, : 29, : 35, : 62, : 38, : 35, : 35, : 35, : 35, : 36, : 18, : 28, : 30, : 30, : 6, : 4, : 9, : 11, : 9, : 18, : 36, : 35, : 35, : 35, : 35, : 35, : 35, : 35, : 35, : 35, : 35, : 35, : 35, : 30, : 30, : 35, : 35, : 35, : 35, : 35, : 35, : 8, : 9, : 33, : 30, : 30, : 30, : 30, : 30, : 30, : 30, : 30, : 17, : 31, : 29, : 30, : 30, : 30, : 30, : 32, : 86, : 30, : 16, : 11, : 11, : 9, : 11, : 9, : 11, ...?

Do I need to change anything else?


simple-model-heatmap_1.fsm

0 Likes 0 ·
Show more comments