Transporter moving in both GIS map and model

Transporter moving in both GIS map and model

fernavas
Not applicable
98 Views
2 Replies
Message 1 of 3

Transporter moving in both GIS map and model

fernavas
Not applicable

[ FlexSim 22.2.1 ]

When I use GIS map to make a truck move between two places, the truck doesn't move in the model. Is there any way I can make it move in both?

Thanks

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

moehlmann_fe
Advocate
Advocate
Accepted solution

A task executer can only be connected to a single navigator at a time. So the only way I see to make the truck move in the 3d model is use kinematics.

To sync the travel time to that on the map you will have to determine the travel duration and use that to set the travel speed of the kinematic.

A good approach might be to listen to the "On Start Task" event, since that will allow you to read the task executer's current map position before the travel starts and that value is overwritten.

GIS_mirror_travel_with_kinematic.fsm


Note: In version 23.0, the "getCost()" method of the newly added "Navigator" class can be used to get the travel duration on the map, instead of using "function_s()".

token.TE.as(TaskExecuter).navigator.getCost(token.curPoint, token.destPoint, 2)
0 Likes
Message 3 of 3

Jeanette_Fullmer
Community Manager
Community Manager

Hi @fernavas, was Felix Möhlmann'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 unaccept and comment back to reopen your question.

0 Likes