if in xml example
Posted: Wed Aug 28, 2013 1:12 pm
Hello again,
I would like to make a scenario with 4 entities, that follow the same behavior (controller), but send them incrementally search an environment. I know that I could set different initial positions from the xml file, but I would like to do it differently: All entities exist at the same initial position, and then launch the 1st entity, and then follow a pattern (controller), launch the 2nd entity and start from another position and follow the same pattern, 3rd from another position etc. I was wondering if I can do that in the xml file, and resemble somehow what I would do in reality with robots. Can I set a time variable or point with if control loop in the xml? ie. if (time< time_start), or if (you have reached point (0,0) ) do some actions? and where in the xml code should that be?
Thank you in advance!
I would like to make a scenario with 4 entities, that follow the same behavior (controller), but send them incrementally search an environment. I know that I could set different initial positions from the xml file, but I would like to do it differently: All entities exist at the same initial position, and then launch the 1st entity, and then follow a pattern (controller), launch the 2nd entity and start from another position and follow the same pattern, 3rd from another position etc. I was wondering if I can do that in the xml file, and resemble somehow what I would do in reality with robots. Can I set a time variable or point with if control loop in the xml? ie. if (time< time_start), or if (you have reached point (0,0) ) do some actions? and where in the xml code should that be?
Thank you in advance!