question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Patrick Cloutier commented

How to set object state for kinematics movements?

I have a custom lift truck that has a custom unload animation using kinematics.

However, the state of the object during kinematics is IDLE.

I tried to use SETSTATE before kinematics to specify that the state should be STATE_UNLOADING but it doesn't work. The state still is IDLE.

Anyway to specify a state for the object before/during kinematics?

Thanks a lot,

FlexSim 23.0.3
stateskinematics
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 Patrick Cloutier commented

My guess is that you set the state directly after the truck finished another task that would cause it change state (for example going idle after finishing a travel). You have to delay setting the state to after that default change has taken place. In Process Flow this can be done with a 0s delay.

1675957714023.png

TaskExecuter1 (controlled by the left block) is in the "Stopped" state after the travel. For the other, that state got overwritten by the default idle.

state_after_travel.fsm


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

Patrick Cloutier avatar image Patrick Cloutier commented ·
YES that works. You are a genius ! Thanks.
0 Likes 0 ·

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.