mirror of
https://github.com/pim-n/road-gen.git
synced 2026-02-03 09:23:09 +01:00
Compare commits
1 Commits
36f4abb425
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 7b4272892d |
@ -47,9 +47,8 @@ class SegmentedRoadGenerator(BaseRoadGenerator):
|
||||
Returns:
|
||||
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 existing_prefabs for segment in segments):
|
||||
raise ValueError(f"Invalid segment type provided. Available choices: {existing_prefabs}")
|
||||
if not all(segment in prefabs.PREFABS.keys() for segment in segments):
|
||||
raise ValueError(f"Invalid segment type provided. Available choices: {prefabs.SEGMENTS.keys()}")
|
||||
|
||||
self.segments = segments
|
||||
self.alpha = alpha
|
||||
|
||||
Reference in New Issue
Block a user