Control of a robotic complex in a stochastic uncertain dynamic environment using Petri nets