wifi.h
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2000 Brian Gerkey & Kasper Stoy
* gerkey@usc.edu kaspers@robotics.usc.edu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
/**************************************************************************
* Desc: Sensor models for wifi.
* Author: Andrew Howard
* Date: 30 May 2003
* CVS: $Id: wifi.h 1512 2003-06-02 15:33:45Z inspectorg $
*************************************************************************/
#ifndef WIFI_H
#define WIFI_H
#include "../pf/pf.h"
#include "../pf/pf_pdf.h"
#include "../map/map.h"
#ifdef __cplusplus
extern "C" {
#endif
// Model information
typedef struct
{
// Pointer to the map map
map_t *map;
// Observed levels
int level_count;
int levels[MAP_WIFI_MAX_LEVELS];
} wifi_t;
// Create an sensor model
wifi_t *wifi_alloc(map_t *map);
// Free an sensor model
void wifi_free(wifi_t *sensor);
// Set the observed wifi levels
void wifi_set_levels(wifi_t *self, int level_count, int levels[]);
// The sensor model function
double wifi_sensor_model(wifi_t *self, pf_vector_t pose);
#ifdef __cplusplus
}
#endif
#endif
wifi_t
Definition: wifi.h:41
map_t
Definition: localization/amcl/map/map.h:66
pf_vector_t
Definition: pf_vector.h:41

Last updated 12 September 2005 21:38:45