Skip to content

Commit

Permalink
fix the bug that the noise is not initualized.
Browse files Browse the repository at this point in the history
  • Loading branch information
t4-adc committed Mar 5, 2025
1 parent ccf393a commit 2253719
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ class DetectionSensor : public DetectionSensorBase

bool true_positive, flip;

explicit NoiseOutput(double simulation_time = 0.0) : simulation_time(simulation_time) {}
explicit NoiseOutput(double simulation_time = 0.0) : simulation_time(simulation_time) {
distance_noise=0.0;
yaw_noise=0.0;
true_positive=true;
flip=false;
}
};

std::unordered_map<std::string, NoiseOutput> noise_outputs;
Expand Down

0 comments on commit 2253719

Please sign in to comment.