Skip to content

Commit

Permalink
trying this with the new single camera branch
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioc76 committed Apr 11, 2024
1 parent d258965 commit a6d8626
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ class ParticleFilter {
int index = discrete(generator);
//index = 0;
//printf("index %i\n", index);
std::ofstream index_log_file;
//index_log_file.open("/home/tony/Documents/index_log_file.txt", std::ios::app);
//index_log_file << index << std::endl;
//index_log_file.close();

Particle selected_particle = this->particles[index];
new_particles.push_back(selected_particle);
}
Expand Down Expand Up @@ -271,7 +276,7 @@ class ParticleFilter {

private:
std::mt19937 generator;
static const int num_particles = 10;
static const int num_particles = 750;
double gps_noise[1] = {0.45};
double odom_noise[3] = {0.05, 0.05, 0.01};
std::vector<Particle> particles;
Expand Down

0 comments on commit a6d8626

Please sign in to comment.