Minor changes in raycast sensor script

This commit is contained in:
Daniel Santos-Olivan 2020-07-29 11:07:42 +02:00 committed by DSantosO
parent f94a9bad91
commit 65ae2c0366
1 changed files with 8 additions and 3 deletions

View File

@ -415,7 +415,7 @@ def one_run(args, client):
time_procc = 0 time_procc = 0
for sensor in display_manager.sensor_list: for sensor in display_manager.sensor_list:
time_procc += sensor.time_processing time_procc += sensor.time_processing
prof_str = "%-10s %-9s %-15s %-7.2f %-20.3f" % (args.lidar_number, args.radar_number, lidar_points_per_second, float(frame) / time_frames, time_procc/time_frames) prof_str = "%-10s %-9s %-9s %-15s %-7.2f %-20.3f" % (args.lidar_number, args.rawlidar_number, args.radar_number, lidar_points_per_second, float(frame) / time_frames, time_procc/time_frames)
break break
if call_exit: if call_exit:
@ -433,6 +433,11 @@ def one_run(args, client):
settings.fixed_delta_seconds = None settings.fixed_delta_seconds = None
world.apply_settings(settings) world.apply_settings(settings)
if args.profiling:
settings.no_rendering_mode = False
world.apply_settings(settings)
return prof_str return prof_str
@ -533,7 +538,7 @@ def main():
if args.profiling: if args.profiling:
print("-------------------------------------------------------") print("-------------------------------------------------------")
print("# Running profiling with %s lidars, %s raw lidars and %s radars." % (args.lidar_number, args.lidarinfo_number, args.radar_number)) print("# Running profiling with %s lidars, %s raw lidars and %s radars." % (args.lidar_number, args.rawlidar_number, args.radar_number))
args.render_cam = False args.render_cam = False
args.render_window = False args.render_window = False
runs_output = [] runs_output = []
@ -557,7 +562,7 @@ def main():
print("#Hardware information not available, please install the " \ print("#Hardware information not available, please install the " \
"multiprocessing module") "multiprocessing module")
print("#NumLidars NumRadars PointsPerSecond FPS PercentageProcessing") print("#NumLidars NumRawLids NumRadars PointsPerSecond FPS PercentageProcessing")
for o in runs_output: for o in runs_output:
print(o) print(o)