Closed stefaniapedrazzi closed 6 years ago
Is it okay to add static tag to Placement.proto? It seems to be working with static tag but it uses math.random to randomly add spectator models to the stadium where the seed comes from os.time().
With the static flag, the spectators are still added randomly in the stadium when the simulation is open or when the world is completely reloaded (desktop version only), i.e. when pressing this button
but the stadium is not regenerated when the simulation is reset from the web interface using this button:
So it is strongly suggested to use this flag also for Placement.proto
because recreating the whole stadium could take long.
Ah, got it. Thank you.
Shall I put the static flag also to Banners.proto then? It includes some procedural parts.
Yes, it would be good to add the static tag to all the procedural PROTO files.
Would it also be meaningful for adding the tag to the soccerrobot protos too? Would it not be meaningful since the same proto is used ten times with different field values to place ten robots?
Yes these are the other PROTO files to which it would be good to add the static flag as well:
The static tag is not a problem for PROTO models used many times as soon as they doesn't contain any random functionality. This tag tells Webots that the PROTO model can be read and evaluated only once for all the instances. But it has not to be used if you want that all the instances use a different random functionality.
Modify PROTO files to be compatible with Webots R2018b:
unconnectedField
keyword instead offield
in the declaration.