Minor bug fixes in new util examples
This commit is contained in:
parent
9b0751b6df
commit
df9c6d20af
|
@ -35,10 +35,10 @@ def extract(args):
|
|||
logging.info('Please add some Vehicle Spawn Point to your UE4 scene.')
|
||||
sys.exit(1)
|
||||
spawn_points = _map.get_spawn_points()
|
||||
with open(args.output_dir+"/spawn_points.csv", "w", encoding='utf8') as file:
|
||||
with open(args.output_dir + "/spawn_points.csv", "w", encoding='utf8') as file:
|
||||
index = 0
|
||||
for index, spawn_point in enumerate(spawn_points):
|
||||
file.write(f'{index},{spawn_point.location.x},{spawn_point.location.y}\n')
|
||||
file.write(f'{index},{spawn_point.location.x},{spawn_point.location.y},{spawn_point.location.z}\n')
|
||||
|
||||
finally:
|
||||
world = None
|
||||
|
|
|
@ -75,15 +75,15 @@ def main():
|
|||
help='width of each road lane in meters')
|
||||
argparser.add_argument(
|
||||
'--traffic-lights',
|
||||
default='store_true',
|
||||
action='store_true',
|
||||
help='enable traffic light generation from OSM data')
|
||||
argparser.add_argument(
|
||||
'--all-junctions-lights',
|
||||
default='store_true',
|
||||
action='store_true',
|
||||
help='set traffic lights for all junctions')
|
||||
argparser.add_argument(
|
||||
'--center-map',
|
||||
default='store_true',
|
||||
action='store_true',
|
||||
help='set center of map to the origin coordinates')
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
|
|
Loading…
Reference in New Issue