Minor bug fixes in new util examples

This commit is contained in:
Hita Barasm Mamagani 2021-10-15 20:56:54 +03:30 committed by bernat
parent 9b0751b6df
commit df9c6d20af
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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: