|
因需要在rack massage调用以下代码,意图触发在货架取并且取6批货停止,为什么还会继续取货?求高手帮助解答.
3 p( Z& y! R* E6 @* jif(massage(2)==1)9 O$ O }+ x9 f+ Y* Q3 |
treenode ts = createemptytasksequence(op,0,0);
1 e2 a# E/ H; R$ j- R8 c for (int i=1;i<=6;i++) D" O) F4 C( M9 X
{
3 C% I; ~8 F- _. T" @/ j treenode item1=rank(rack,i);% [, U4 f, R' J+ |7 D
inserttask(ts,TASKTYPE_TRAVEL,rack,NULL,0,0);
. n9 a; L: f" y9 W& u inserttask(ts,TASKTYPE_FRLOAD,item1,rack);8 [, Q; I6 b- ]( A5 `4 U: Y
inserttask(ts,TASKTYPE_TRAVEL,car,NULL,0,0);: o+ I# E+ b) _" Z( m7 B
inserttask(ts,TASKTYPE_MOVEOBJECT,item1,car);
. B" Y! a5 J: X! S6 X }) H( q k, e/ _6 s! l) H2 q' [9 C' H
( [8 u; Q, V% |/ ]9 _: j/ I6 l
dispatchtasksequence(ts); |
|