-
Notifications
You must be signed in to change notification settings - Fork 0
/
ParticleFilters.h
executable file
·46 lines (35 loc) · 1.09 KB
/
ParticleFilters.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
CSC C85 - Fundamentals of Robotics and Automated Systems
Particle filters implementation for a simple robot.
Header file. Note you may need to modify sections of
this file. Read the comments in ParticleFilters.c
and complete all required work.
Written by F.J.E. May 2012
Updated Oct. 2021
*/
#ifndef __ParticleFilters_header
#define __ParticleFilters_header
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
// OpenGL libraries for image display
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include "ParticleUtils.h"
// Particle Filter functions
// Initilization and setup
int main(int argc, char *argv[]);
// Particle initialization
void initParticles(void);
// Compute likelihood for a particle
void computeLikelihood(struct particle *p, struct particle *rob, double noise_sigma);
// Particle resampling
struct particle *resample(void);
// Main loop
void ParticleFilterLoop(void);
// OpenGL functions - you DO NOT need to modify or read these
void initGlut(char* winName);
void WindowReshape(int w, int h);
void kbHandler(unsigned char key, int x, int y);
#endif