When creating a transportation order and sending a command, how should one wait for the actual agv vehicle to arrive at the station before sending the next command #221
-
|
I found that the comments for the sendCommand(MovementCommand cmd) method in the source code should not block this method. However, I need to set up a while loop to send the next command when the actual agv vehicle arrives at or is about to arrive at the point. If I can't block in this method, then how should I fulfill my requirements /**
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Maybe looking at a reference implementation helps - see e.g. the VDA5050 driver's source code at https://github.com/openTCS/opentcs-commadapter-vda5050/tree/master/src/main/java/org/opentcs/commadapter/vehicle/vda5050/v1_1. |
Beta Was this translation helpful? Give feedback.
In the VDA5050 driver, incoming messages are handled in
CommAdapterImpl.onIncomingMessage(). You could do it in a similar way in your own driver.