question

fernavas avatar image
0 Likes"
fernavas asked Jeanette F commented

Transporter moving in both GIS map and model

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

FlexSim 22.2.1
gis map
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

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

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

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)

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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