|
From: Walter, S. <Ste...@im...> - 2018-03-05 08:08:01
|
Hi,
currently, the kernel itself will not dispatch vehicles on startup. If you want to programmatically dispatch all vehicles, e.g. from an RMI client, you could do something like this:
for (Vehicle vehicle : kernel.getTCSObjects(Vehicle.class)) {
kernel.dispatchVehicle(vehicle, true);
}
Best regards,
Stefan Walter
Von: 周ming chao [mailto:676...@qq...]
Gesendet: Donnerstag, 1. März 2018 23:37
An: andre <an...@sp...>; opentcs-discuss <ope...@li...>
Betreff: Re: [opentcs-discuss] Dispatcher
check the source code of kernel,add some batch codes to set dispatchable status of all vehicles.perhaps you'd like to put these codes in the tcp server function.
发自我的iPhone
------------------ Original ------------------
From: andre <mailto:an...@sp...>
Date: 周五,3月 2,2018 06:07
To: opentcs-discuss <mailto:ope...@li...>
Subject: Re: [opentcs-discuss] Dispatcher
Hello,
How can I dispatch a vehicle automatically on startup? The only way I can do it is by finding the vehicle at the Plant Overview and clicking the dispatch button.
I noticed the 'setProcState' method is deprecated, so, there are any other ways to make this modification?
|