Skip to content

Commit

Permalink
fix(log-messages): removing leftover std::cout log from from the orig…
Browse files Browse the repository at this point in the history
…inal Velodyne implementation

Signed-off-by: AhmedEbrahim <[email protected]>
  • Loading branch information
Ahmed Ebrahim authored and ahmeddesokyebrahim committed Feb 28, 2024
1 parent c2c3b58 commit 0ee6425
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,14 @@ class VelodyneCalibration
std::vector<VelodyneLaserCorrection> laser_corrections;
int num_lasers{};
bool initialized;
bool ros_info;

public:
explicit VelodyneCalibration(bool info = true)
: distance_resolution_m(0.002f), initialized(false), ros_info(info)
explicit VelodyneCalibration()
: distance_resolution_m(0.002f), initialized(false)
{
}
explicit VelodyneCalibration(const std::string & calibration_file, bool info = true)
: distance_resolution_m(0.002f), ros_info(info)
explicit VelodyneCalibration(const std::string & calibration_file)
: distance_resolution_m(0.002f)
{
read(calibration_file);
}
Expand Down
4 changes: 0 additions & 4 deletions nebula_common/src/velodyne/velodyne_calibration_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ void operator>>(const YAML::Node & node, VelodyneCalibration & calibration)
// store this ring number with its corresponding laser number
calibration.laser_corrections[next_index].laser_ring = ring;
next_angle = min_seen;
if (calibration.ros_info) {
std::cout << "laser_ring[" << next_index << "] =" << ring << ", angle = " << next_angle
<< std::endl;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ VelodyneDriver::VelodyneDriver(
{
// initialize proper parser from cloud config's model and echo mode
driver_status_ = nebula::Status::OK;
std::cout << "sensor_configuration->sensor_model=" << sensor_configuration->sensor_model
<< std::endl;
switch (sensor_configuration->sensor_model) {
case SensorModel::UNKNOWN:
driver_status_ = nebula::Status::INVALID_SENSOR_MODEL;
Expand Down

0 comments on commit 0ee6425

Please sign in to comment.