Drawn Gazebo-Roads don't get visualized
Hi there,
I try to draw several roads (in a loop) in a world plugin by publishing road messages.
When I initialize a new publisher for each road, everything is visualized fine. But if I use the same publisher for all roads, Gazebo doesn't draw all roads (in fact only 1). Adding a short "sleep" after every published road message helps, but not all roads get visualized.
Anyone an idea why this is hapenning and how I can avoid initializing a new publisher for every road?
Many thanks in advance and best regards.