question

Jimmy jang avatar image
0 Likes"
Jimmy jang asked Jimmy jang commented

updating current location

Good day

i am trying make a model to track current location of numerous operators by zone.

i am trying to use Plane as a zone.

So when operator steps on Plane 1 i want set label on Operator 1 and if operater step one Plane 2 then the label becomes 2.

i am looking at some other answers. such as below. But it was quite complicated to follow up.

https://answers.flexsim.com/questions/151447/heatmap-data-extraction.html


please help me how should i approach this question.

Best regards

FlexSim 24.1.1
tracking operator location
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jimmy jang commented

My approach would be very similar to the "HeatmapAnything" example Jason linked to in the post you linked.

location-tracking.fsm

The "Tracker" shape is responsible for most of the logic. In its reset trigger it maps grid cells (1m x 1m in this case) to the different planes in the "Zones" group. The code is pretty basic and assumes that the planes are all aligned with the grid, i.e. have a z-rotation of 0.

The code then runs the function stored in the "Update" label once. This function loops through the objects in the "TrackedTEs" group, determines their coordinates and sets their "Zone" label according to what those coordinates are mapped to. The function then calls itself in a fixed interval (0.1s in the attached model).

The "Zone" label on the operators being a categorical tracked variables enables tracking the time spent in each zone (like a state profile).


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

Jimmy jang avatar image Jimmy jang commented ·
Thank you for your prompt answer! This is exactly what I was thinking thank you again
0 Likes 0 ·