updating current location

updating current location

yonghoon0213
Not applicable
11 Views
2 Replies
Message 1 of 3

updating current location

yonghoon0213
Not applicable

[ FlexSim 24.1.1 ]

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

0 Likes
Accepted solutions (1)
12 Views
2 Replies
Replies (2)
Message 2 of 3

moehlmann_fe
Observer
Observer
Accepted solution

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

0 Likes
Message 3 of 3

yonghoon0213
Not applicable
Thank you for your prompt answer! This is exactly what I was thinking thank you again
0 Likes