|
因需要在rack massage调用以下代码,意图触发在货架取并且取6批货停止,为什么还会继续取货?求高手帮助解答.
5 E% e3 \: G. v. Hif(massage(2)==1)2 x' e2 f0 r8 _/ w
treenode ts = createemptytasksequence(op,0,0);
$ w9 z: W- P& s# C for (int i=1;i<=6;i++)
7 ?2 S% Z% g, D1 | {: r& ]7 w( k! [. ?1 b$ Z& m
treenode item1=rank(rack,i);
! }, d1 `/ K* {6 U6 M inserttask(ts,TASKTYPE_TRAVEL,rack,NULL,0,0);
, K/ o# S1 c! _4 y+ z! e inserttask(ts,TASKTYPE_FRLOAD,item1,rack);
: ~& M W! {& ]2 F inserttask(ts,TASKTYPE_TRAVEL,car,NULL,0,0);1 {" ^% B- r* Q% t) @
inserttask(ts,TASKTYPE_MOVEOBJECT,item1,car);
( {* Q6 B4 J: W6 k" [' Z/ J }: I) S; p, A5 W( Z7 L8 W; P1 {! F
8 M. c \- K; o: Z1 ?
dispatchtasksequence(ts); |
|