Classes | Typedefs | Functions
pf.h File Reference
#include "pf_vector.h"
#include "pf_kdtree.h"
#include "stdbool.h"
Include dependency graph for pf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _pf_model_type
 
struct  _pf_sample_set_t
 
struct  _pf_t
 
struct  pf_cluster_t
 
struct  pf_sample_t
 

Typedefs

typedef void(* pf_action_model_fn_t) (void *action_data, struct _pf_sample_set_t *set)
 
typedef pf_vector_t(* pf_init_model_fn_t) (struct _pf_t *pf, void *init_data, void *e_init_data)
 
typedef void(* pf_laser_model_fn_t) (void *laser_data, struct _pf_sample_set_t *set)
 
typedef struct _pf_model_type pf_model_type
 
typedef void(* pf_reupdate_sensor_fn_t) (struct _pf_t *pf, void *laser_data)
 
typedef struct _pf_sample_set_t pf_sample_set_t
 
typedef struct _pf_t pf_t
 

Functions

pf_tpf_alloc (int min_samples, int max_samples, int N_aux_particles, double alpha_slow, double alpha_fast, double crossover_alpha, double mutation_prob, pf_init_model_fn_t random_pose_fn, void *random_pose_data, void *e_random_pose_data)
 
void pf_cluster_stats (pf_t *pf, pf_sample_set_t *set)
 
void pf_copy_set (pf_sample_set_t *set_a, pf_sample_set_t *set_b)
 
void pf_draw_cep_stats (pf_t *pf, struct _rtk_fig_t *fig)
 
void pf_draw_cluster_stats (pf_t *pf, struct _rtk_fig_t *fig)
 
void pf_draw_hist (pf_t *pf, struct _rtk_fig_t *fig)
 
void pf_draw_samples (pf_t *pf, struct _rtk_fig_t *fig, int max_samples)
 
void pf_free (pf_t *pf)
 
void pf_get_cep_stats (pf_t *pf, pf_vector_t *mean, double *var)
 
int pf_get_cluster_stats (pf_t *pf, int cluster, double *weight, pf_vector_t *mean, pf_matrix_t *cov)
 
void pf_init (pf_t *pf, pf_vector_t mean, pf_matrix_t cov)
 
void pf_init_converged (pf_t *pf)
 
void pf_init_model (pf_t *pf, pf_init_model_fn_t init_fn, void *init_data, void *e_init_data)
 
void pf_normlize_weight (pf_t *pf)
 
void pf_set_model_type (pf_t *pf, pf_model_type *pf_model_)
 
void pf_set_selective_resampling (pf_t *pf, int selective_resampling)
 
void pf_update_action (pf_t *pf, pf_action_model_fn_t action_fn, void *action_data)
 
int pf_update_converged (pf_t *pf)
 
void pf_update_crossover_mutation (pf_t *pf, pf_reupdate_sensor_fn_t laser_fn, void *laser_data)
 
void pf_update_resample (pf_t *pf)
 
void pf_update_sensor (pf_t *pf, pf_laser_model_fn_t laser_fn, void *laser_data)
 

Typedef Documentation

◆ pf_action_model_fn_t

typedef void(* pf_action_model_fn_t) (void *action_data, struct _pf_sample_set_t *set)

Definition at line 59 of file pf.h.

◆ pf_init_model_fn_t

typedef pf_vector_t(* pf_init_model_fn_t) (struct _pf_t *pf, void *init_data,void *e_init_data)

Definition at line 55 of file pf.h.

◆ pf_laser_model_fn_t

typedef void(* pf_laser_model_fn_t) (void *laser_data, struct _pf_sample_set_t *set)

Definition at line 64 of file pf.h.

◆ pf_model_type

typedef struct _pf_model_type pf_model_type

◆ pf_reupdate_sensor_fn_t

typedef void(* pf_reupdate_sensor_fn_t) (struct _pf_t *pf, void *laser_data)

Definition at line 67 of file pf.h.

◆ pf_sample_set_t

◆ pf_t

typedef struct _pf_t pf_t

Function Documentation

◆ pf_alloc()

pf_t* pf_alloc ( int  min_samples,
int  max_samples,
int  N_aux_particles,
double  alpha_slow,
double  alpha_fast,
double  crossover_alpha,
double  mutation_prob,
pf_init_model_fn_t  random_pose_fn,
void *  random_pose_data,
void *  e_random_pose_data 
)

Definition at line 54 of file pf.c.

◆ pf_cluster_stats()

void pf_cluster_stats ( pf_t pf,
pf_sample_set_t set 
)

Definition at line 814 of file pf.c.

◆ pf_copy_set()

void pf_copy_set ( pf_sample_set_t set_a,
pf_sample_set_t set_b 
)

◆ pf_draw_cep_stats()

void pf_draw_cep_stats ( pf_t pf,
struct _rtk_fig_t *  fig 
)

◆ pf_draw_cluster_stats()

void pf_draw_cluster_stats ( pf_t pf,
struct _rtk_fig_t *  fig 
)

◆ pf_draw_hist()

void pf_draw_hist ( pf_t pf,
struct _rtk_fig_t *  fig 
)

◆ pf_draw_samples()

void pf_draw_samples ( pf_t pf,
struct _rtk_fig_t *  fig,
int  max_samples 
)

◆ pf_free()

void pf_free ( pf_t pf)

Definition at line 131 of file pf.c.

◆ pf_get_cep_stats()

void pf_get_cep_stats ( pf_t pf,
pf_vector_t mean,
double *  var 
)

Definition at line 1078 of file pf.c.

◆ pf_get_cluster_stats()

int pf_get_cluster_stats ( pf_t pf,
int  cluster,
double *  weight,
pf_vector_t mean,
pf_matrix_t cov 
)

Definition at line 1114 of file pf.c.

◆ pf_init()

void pf_init ( pf_t pf,
pf_vector_t  mean,
pf_matrix_t  cov 
)

Definition at line 152 of file pf.c.

◆ pf_init_converged()

void pf_init_converged ( pf_t pf)

Definition at line 268 of file pf.c.

◆ pf_init_model()

void pf_init_model ( pf_t pf,
pf_init_model_fn_t  init_fn,
void *  init_data,
void *  e_init_data 
)

Definition at line 214 of file pf.c.

◆ pf_normlize_weight()

void pf_normlize_weight ( pf_t pf)

Definition at line 322 of file pf.c.

◆ pf_set_model_type()

void pf_set_model_type ( pf_t pf,
pf_model_type pf_model_ 
)

Definition at line 1043 of file pf.c.

◆ pf_set_selective_resampling()

void pf_set_selective_resampling ( pf_t pf,
int  selective_resampling 
)

Definition at line 1072 of file pf.c.

◆ pf_update_action()

void pf_update_action ( pf_t pf,
pf_action_model_fn_t  action_fn,
void *  action_data 
)

Definition at line 309 of file pf.c.

◆ pf_update_converged()

int pf_update_converged ( pf_t pf)

Definition at line 275 of file pf.c.

◆ pf_update_crossover_mutation()

void pf_update_crossover_mutation ( pf_t pf,
pf_reupdate_sensor_fn_t  laser_fn,
void *  laser_data 
)

Definition at line 689 of file pf.c.

◆ pf_update_resample()

void pf_update_resample ( pf_t pf)

Definition at line 482 of file pf.c.

◆ pf_update_sensor()

void pf_update_sensor ( pf_t pf,
pf_laser_model_fn_t  laser_fn,
void *  laser_data 
)

Definition at line 329 of file pf.c.



gmcl
Author(s): Mhd Ali Alshikh Khalil, adler1994@gmail.com
autogenerated on Wed Mar 2 2022 00:20:14