simulation.utils.road.sections.obstacle module¶
StaticObstacle on road and ParkingObstacle on ParkingSpot.
Reference¶
-
class
StaticObstacle(transform: simulation.utils.geometry.transform.Transform = None, normalize_x: bool = True, center: simulation.utils.geometry.point.Point = Point(0.4, - 0.2, 0.0), width: float = 0.2, depth: float = 0.2, angle: float = 0, height: float = 0.2)[source]¶ Bases:
simulation.utils.road.sections.road_element.RoadElementRect-
id_= 1¶
-
desc= 'StaticObstacle'¶
-
height: float = 0.2¶ Height of the obstacle.
-
-
class
_ParkingObstacle(transform: simulation.utils.geometry.transform.Transform = None, normalize_x: bool = True, center: simulation.utils.geometry.point.Point = Point(0.2, - 0.2, 0.0), width: float = 0.2, depth: float = 0.2, angle: float = 0, height: float = 0.2)[source]¶ Bases:
simulation.utils.road.sections.obstacle.StaticObstacle-
center: simulation.utils.geometry.point.Point = Point(0.2, -0.2, 0.0)¶ Center point of the obstacle.
-
-
class
ParkingObstacle(transform: simulation.utils.geometry.transform.Transform = None, normalize_x: bool = False, center: simulation.utils.geometry.point.Point = Point(0.2, - 0.2, 0.0), width: float = 0.15, depth: float = 0.15, angle: float = 0, height: float = 0.2)[source]¶ Bases:
simulation.utils.road.sections.obstacle._ParkingObstacle-
id_= 2¶
-
desc= 'ParkingObstacle'¶
-
width: float = 0.15¶ Width of the obstacle.
-
depth: float = 0.15¶ Width of the obstacle.
-
normalize_x: bool = False¶
-