Removing image_to_disk debug logs

This commit is contained in:
JoseM98 2024-04-29 15:39:52 +02:00 committed by Blyron
parent 4f85b46800
commit 20933d1833
2 changed files with 3 additions and 5 deletions

View File

@ -303,9 +303,7 @@ static std::string SaveImageToDisk(T &self, std::string path, EColorConverter cc
std::string r;
carla::PythonUtil::ReleaseGIL unlock;
using namespace carla::image;
puts("ImageView::MakeView.");
auto view = ImageView::MakeView(self);
puts("ImageIO::WriteView.");
try
{
switch (cc) {
@ -341,7 +339,6 @@ static std::string SaveImageToDisk(T &self, std::string path, EColorConverter cc
{
puts("Exception thrown");
}
puts("Done.");
return r;
}

View File

@ -242,7 +242,8 @@ class RadarSensor(object):
self.velocity_range = 7.5 # m/s
world = self._parent.get_world()
self.debug = world.debug and False #### Draw debug disabled
self.draw_radar = False # Set to True if we want to show Radar point cloud in camera sensors.
self.debug = world.debug
bp = world.get_blueprint_library().find('sensor.other.radar')
bp.set_attribute('horizontal_fov', str(35))
bp.set_attribute('vertical_fov', str(20))
@ -260,7 +261,7 @@ class RadarSensor(object):
return
RadarSensor.save_to_csv(weak_self, radar_data)
if self.debug:
if self.draw_radar:
RadarSensor.draw_debug(weak_self, radar_data)
self.frame_number += 1