Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

wifi.h

Go to the documentation of this file.
00001 /*
00002  *  Player - One Hell of a Robot Server
00003  *  Copyright (C) 2000  Brian Gerkey   &  Kasper Stoy
00004  *                      gerkey@usc.edu    kaspers@robotics.usc.edu
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  */
00021 /**************************************************************************
00022  * Desc: Sensor models for wifi.
00023  * Author: Andrew Howard
00024  * Date: 30 May 2003
00025  * CVS: $Id: wifi.h,v 1.2 2003/06/02 15:33:45 inspectorg Exp $
00026  *************************************************************************/
00027 
00028 #ifndef WIFI_H
00029 #define WIFI_H
00030 
00031 #include "../pf/pf.h"
00032 #include "../pf/pf_pdf.h"
00033 #include "../map/map.h"
00034 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038 
00039   
00040 // Model information
00041 typedef struct
00042 {
00043   // Pointer to the map map
00044   map_t *map;
00045 
00046   // Observed levels
00047   int level_count;
00048   int levels[MAP_WIFI_MAX_LEVELS];
00049   
00050 } wifi_t;
00051 
00052 
00053 // Create an sensor model
00054 wifi_t *wifi_alloc(map_t *map);
00055 
00056 // Free an sensor model
00057 void wifi_free(wifi_t *sensor);
00058 
00059 // Set the observed wifi levels
00060 void wifi_set_levels(wifi_t *self, int level_count, int levels[]);
00061 
00062 // The sensor model function
00063 double wifi_sensor_model(wifi_t *self, pf_vector_t pose);
00064 
00065 #ifdef __cplusplus
00066 }
00067 #endif
00068 
00069 #endif
00070 

Generated on Tue May 3 14:15:37 2005 for Player by doxygen 1.3.6