1 Commits
dev ... main

Author SHA1 Message Date
7b4272892d Merge pull request #9 from pim-n/dev
update docs
2026-02-02 09:32:35 +01:00

View File

@ -47,9 +47,8 @@ class SegmentedRoadGenerator(BaseRoadGenerator):
Returns: Returns:
Tuple[np.ndarray, np.ndarray]: x and y coordinates of the waypoints describing the random road. Tuple[np.ndarray, np.ndarray]: x and y coordinates of the waypoints describing the random road.
""" """
existing_prefabs = prefabs.PREFABS.keys() if not all(segment in prefabs.PREFABS.keys() for segment in segments):
if not all(segment in existing_prefabs for segment in segments): raise ValueError(f"Invalid segment type provided. Available choices: {prefabs.SEGMENTS.keys()}")
raise ValueError(f"Invalid segment type provided. Available choices: {existing_prefabs}")
self.segments = segments self.segments = segments
self.alpha = alpha self.alpha = alpha