simulation.utils.road.renderer.tile module¶
Reference¶
-
class
Tile(index: Tuple[int, int], size: simulation.utils.geometry.vector.Vector, resolution: simulation.utils.geometry.vector.Vector, road_folder_name: Optional[str] = None, sections: Dict[int, simulation.utils.road.sections.road_section.RoadSection] = <factory>, id: Optional[str] = None, already_rendered: bool = False)[source]¶ Bases:
objectPiece of the groundplane with lines used to display road lines on the ground.
The groundplane in simulation is made out of many rectangular tiles. Each tile displays an image on the ground.
-
COUNTER= 0¶ Static variable used to generate unique model names in Gazebo.
To ensure that Gazebo doesn’t get confused with multiple tiles that have the same name, e.g. when reloading, the counter is increased every time a model name is generated.
-
index: Tuple[int, int]¶ Position within the lattice of tiles on the groundplane.
-
size: simulation.utils.geometry.vector.Vector¶ Size of the tile.
-
resolution: simulation.utils.geometry.vector.Vector¶ Resolution of the tile’s image.
-
road_folder_name: str = None¶ Name of the folder in which all tiles of the current road are.
(Not the complete path, just the name of the folder!)
-
sections: Dict[int, simulation.utils.road.sections.road_section.RoadSection]¶ All sections that are (atleast partly) on this tile.
-
id: str = None¶ ID of the tile.
Automatically generated when rendering.
-
already_rendered: bool = False¶ Indicate whether the tile has been rendered before.
-
property
name¶ Name of the tile’s model when spawned in Gazebo.
- Type
str
-