atrvjr_config.h
Go to the documentation of this file.
00001 /*  ATRVJR constants
00002  *  Modified from
00003  *  David Lu!! - 2/2010
00004  *  Modified from Player Driver
00005  *
00006  *  Player - One Hell of a Robot Server
00007  *  Copyright (C) 2000
00008  *     Brian Gerkey, Kasper Stoy, Richard Vaughan, & Andrew Howard
00009  *
00010  *
00011  *  This program is free software; you can redistribute it and/or modify
00012  *  it under the terms of the GNU General Public License as published by
00013  *  the Free Software Foundation; either version 2 of the License, or
00014  *  (at your option) any later version.
00015  *
00016  *  This program is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  *  GNU General Public License for more details.
00020  *
00021  *  You should have received a copy of the GNU General Public License
00022  *  along with this program; if not, write to the Free Software
00023  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024  *
00025  */
00026 
00027 #ifndef ATRVJR_CONFIG_H
00028 #define ATRVJR_CONFIG_H
00029 
00030 // Odometery Constants
00031 // ===================
00032 // Arbitrary units per meter
00033 #define ODO_DISTANCE_CONVERSION 90810
00034 // Arbitrary units per radian
00035 #define ODO_ANGLE_CONVERSION 37000
00036 
00037 // Sonar Constants
00038 // ===============
00039 // Arbitrary units per meter (for sonar)
00040 #define RANGE_CONVERSION 1476
00041 #define SONAR_ECHO_DELAY 30000
00042 #define SONAR_PING_DELAY 0
00043 #define SONAR_SET_DELAY  0
00044 #define SONAR_MAX_RANGE 3000
00045 
00046 #define BODY_INDEX 0
00047 #define BASE_INDEX 1
00048 
00049 #warning Sonar, bumper and IR configurations are not updated for use with ATRVJR
00050 const int SONARS_PER_BANK[] = {5, 8, 5, 8 };
00051 const int SONAR_RING_BANK_BOUND[] = {0, 6, 14};
00052 #define SONAR_MAX_PER_BANK 16
00053 
00054 const int SONARS_PER_RING[] = {24, 24};
00055 const float SONAR_RING_START_ANGLE[] = {180,90};
00056 const float SONAR_RING_ANGLE_INC[] = {-15, -15};
00057 const float SONAR_RING_DIAMETER[] = {.25, .26};
00058 const float SONAR_RING_HEIGHT[] = {0.055, -0.06};
00059 
00060 // Digital IO constants
00061 // ====================
00062 #define HOME_BEARING -32500
00063 
00064 #define BUMPER_COUNT 14
00065 #define BUMPER_ADDRESS_STYLE 0
00066 #define BUMPER_BIT_STYLE 1
00067 #define BUMPER_STYLE 0
00068 const int BUMPERS_PER[] = {6,8};
00069 const double BUMPER_ANGLE_OFFSET[] = {-1,1,-1,1};
00070 const double BUMPER_HEIGHT_OFFSET[][4] = {{.5,.5,.05,.05},
00071     {.25,.25,.05,.05}
00072 };
00073 
00074 // IR Constants
00075 // ============
00076 #define IR_POSES_COUNT 24
00077 #define IR_BASE_BANK 0
00078 #define IR_BANK_COUNT 6
00079 #define IR_PER_BANK 4
00080 
00081 // Misc Constants
00082 // ==============
00083 #define USE_JOYSTICK 0
00084 #define JOY_POS_RATIO 6
00085 #define JOY_ANG_RATIO -0.01
00086 #define POWER_OFFSET 1.2
00087 #define PLUGGED_THRESHOLD 25.0
00088 
00089 #endif
00090 
00091 
00092 
00093 
00094 
00095 
00096 
00097 
00098 


rflex
Author(s): David V. Lu!!, Mikhail Medvedev
autogenerated on Fri Aug 28 2015 12:58:58