⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 odometry.h

📁 机器人仿真平台,和stage配合运行
💻 H
字号:
/************************************************************************** * Desc: Sensor/action models for odometry. * Author: Andrew Howard * Date: 15 Dec 2002 * CVS: $Id: odometry.h,v 1.3.2.2 2003/04/23 22:35:01 inspectorg Exp $ *************************************************************************/#ifndef ODOMETRY_H#define ODOMETRY_H#include "../pf/pf.h"#include "../pf/pf_pdf.h"#include "../map/map.h"#ifdef __cplusplusextern "C" {#endif  // Model informationtypedef struct{  // Pointer to the map map  map_t *map;  // Effective robot radius  double robot_radius;  // List of free cells in cspace  int ccell_count;  pf_vector_t *ccells;    // PDFs used to generate initial samples  pf_pdf_gaussian_t *init_gpdf;  pf_pdf_discrete_t *init_dpdf;    // PDF used to generate action samples  pf_pdf_gaussian_t *action_pdf;} odometry_t;// Create an sensor modelodometry_t *odometry_alloc(map_t *map, double robot_radius);// Free an sensor modelvoid odometry_free(odometry_t *sensor);// Build a list of all empty cells in c-spaceint odometry_init_cspace(odometry_t *self);  // Prepare to initialize the distribution; pose is the robot's initial// pose estimate.void odometry_init_init(odometry_t *self, pf_vector_t pose, pf_matrix_t pose_cov);// Finish initializing the distributionvoid odometry_init_term(odometry_t *self);// The initialization model functionpf_vector_t odometry_init_model(odometry_t *self);// Prepare to update the distribution using the action model.void odometry_action_init(odometry_t *self, pf_vector_t old_pose, pf_vector_t new_pose);// Finish updating the distrubiotn using the action modelvoid odometry_action_term(odometry_t *self);// The action model functionpf_vector_t odometry_action_model(odometry_t *self, pf_vector_t pose);  // Prepare to update the distribution using the sensor model.void odometry_sensor_init(odometry_t *self);// Finish updating the distribution using the sensor model.void odometry_sensor_term(odometry_t *self);// The sensor model functiondouble odometry_sensor_model(odometry_t *self, pf_vector_t pose);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -