/opt/ros/diamondback/stacks/ethzasl_aseba/asebaros/aseba/svn/targets/challenge/challenge.cpp File Reference

#include <../../vm/vm.h>
#include "../../vm/natives.h"
#include <../../common/consts.h>
#include <../../transport/buffer/vm-buffer.h>
#include <dashel/dashel.h>
#include <enki/PhysicalEngine.h>
#include <enki/robots/e-puck/EPuck.h>
#include <iostream>
#include <QtGui>
#include <QtDebug>
#include "challenge.h"
#include <viewer/Viewer.h>
#include <QDialog>
#include <challenge.moc>
#include <string.h>
Include dependency graph for challenge.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Enki::AsebaFeedableEPuck
class  Enki::EPuckFeeder
class  Enki::EPuckFeeding
class  Enki::FeedableEPuck
class  Enki::FeederModel
struct  Enki::AsebaFeedableEPuck::Variables

Namespaces

namespace  Enki

Defines

#define DEATH_ANIMATION_STEPS   30
#define EPUCK_ENERGY_CONSUMPTION_RATE   1
#define EPUCK_FEEDER_COLOR_ACTIVE   Color::blue
#define EPUCK_FEEDER_COLOR_DEAD   Color::gray
#define EPUCK_FEEDER_COLOR_INACTIVE   Color::red
#define EPUCK_FEEDER_D_ENERGY   4
#define EPUCK_FEEDER_DEATH_SPAN   10
#define EPUCK_FEEDER_INITIAL_ENERGY   10
#define EPUCK_FEEDER_LIFE_SPAN   60
#define EPUCK_FEEDER_MAX_ENERGY   100
#define EPUCK_FEEDER_RADIUS   5
#define EPUCK_FEEDER_RADIUS_DEAD   6
#define EPUCK_FEEDER_RANGE   10
#define EPUCK_FEEDER_RECHARGE_RATE   0.5
#define EPUCK_FEEDER_THRESHOLD_HIDE   2
#define EPUCK_FEEDER_THRESHOLD_SHOW   4
#define EPUCK_INITIAL_ENERGY   10
#define PORT_BASE   ASEBA_DEFAULT_PORT
#define SIMPLIFIED_EPUCK

Typedefs

typedef QMap< AsebaVMState
*, Enki::AsebaFeedableEPuck * > 
VmEPuckMap

Functions

void AsebaAssert (AsebaVMState *vm, AsebaAssertReason reason)
uint16 AsebaGetBuffer (AsebaVMState *vm, uint8 *data, uint16 maxLength, uint16 *source)
const AsebaLocalEventDescriptionAsebaGetLocalEventsDescriptions (AsebaVMState *vm)
const
AsebaNativeFunctionDescription
*const * 
AsebaGetNativeFunctionsDescriptions (AsebaVMState *vm)
const AsebaVMDescriptionAsebaGetVMDescription (AsebaVMState *vm)
void AsebaNativeFunction (AsebaVMState *vm, uint16 id)
void AsebaPutVmToSleep (AsebaVMState *vm)
void AsebaResetIntoBootloader (AsebaVMState *vm)
void AsebaSendBuffer (AsebaVMState *vm, const uint8 *data, uint16 length)
void AsebaWriteBytecode (AsebaVMState *vm)
GLint Enki::GenFeederBase ()
GLint Enki::GenFeederCharge0 ()
GLint Enki::GenFeederCharge1 ()
GLint Enki::GenFeederCharge2 ()
GLint Enki::GenFeederCharge3 ()
GLint Enki::GenFeederRing ()
static void initTexturesResources ()
int main (int argc, char *argv[])
template<typename Derived , typename Base >
Derived polymorphic_downcast (Base base)
 Asserts a dynamic cast. Similar to the one in boost/cast.hpp.

Variables

static VmEPuckMap asebaEPuckMap
static const
AsebaLocalEventDescription 
localEvents [] = { { "timer", "periodic timer at 50 Hz" }, { NULL, NULL }}
static QString localName
static AsebaNativeFunctionPointer nativeFunctions []
static const
AsebaNativeFunctionDescription
nativeFunctionsDescriptions []
AsebaVMDescription vmDescription_en
AsebaVMDescription vmDescription_fr

Define Documentation

#define DEATH_ANIMATION_STEPS   30

Definition at line 117 of file challenge.cpp.

#define EPUCK_ENERGY_CONSUMPTION_RATE   1

Definition at line 115 of file challenge.cpp.

#define EPUCK_FEEDER_COLOR_ACTIVE   Color::blue

Definition at line 103 of file challenge.cpp.

#define EPUCK_FEEDER_COLOR_DEAD   Color::gray

Definition at line 105 of file challenge.cpp.

#define EPUCK_FEEDER_COLOR_INACTIVE   Color::red

Definition at line 104 of file challenge.cpp.

#define EPUCK_FEEDER_D_ENERGY   4

Definition at line 107 of file challenge.cpp.

#define EPUCK_FEEDER_DEATH_SPAN   10

Definition at line 112 of file challenge.cpp.

#define EPUCK_FEEDER_INITIAL_ENERGY   10

Definition at line 96 of file challenge.cpp.

#define EPUCK_FEEDER_LIFE_SPAN   60

Definition at line 111 of file challenge.cpp.

#define EPUCK_FEEDER_MAX_ENERGY   100

Definition at line 109 of file challenge.cpp.

#define EPUCK_FEEDER_RADIUS   5

Definition at line 99 of file challenge.cpp.

#define EPUCK_FEEDER_RADIUS_DEAD   6

Definition at line 100 of file challenge.cpp.

#define EPUCK_FEEDER_RANGE   10

Definition at line 101 of file challenge.cpp.

#define EPUCK_FEEDER_RECHARGE_RATE   0.5

Definition at line 108 of file challenge.cpp.

#define EPUCK_FEEDER_THRESHOLD_HIDE   2

Definition at line 97 of file challenge.cpp.

#define EPUCK_FEEDER_THRESHOLD_SHOW   4

Definition at line 98 of file challenge.cpp.

#define EPUCK_INITIAL_ENERGY   10

Definition at line 114 of file challenge.cpp.

#define PORT_BASE   ASEBA_DEFAULT_PORT

Definition at line 118 of file challenge.cpp.

#define SIMPLIFIED_EPUCK

Definition at line 50 of file challenge.cpp.


Typedef Documentation

Definition at line 74 of file challenge.cpp.


Function Documentation

void AsebaAssert ( AsebaVMState vm,
AsebaAssertReason  reason 
)

Definition at line 980 of file challenge.cpp.

static void initTexturesResources (  )  [static]

Definition at line 52 of file challenge.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 1043 of file challenge.cpp.

template<typename Derived , typename Base >
Derived polymorphic_downcast ( Base  base  )  [inline]

Asserts a dynamic cast. Similar to the one in boost/cast.hpp.

Definition at line 59 of file challenge.cpp.


Variable Documentation

Definition at line 75 of file challenge.cpp.

const AsebaLocalEventDescription localEvents[] = { { "timer", "periodic timer at 50 Hz" }, { NULL, NULL }} [static]

Definition at line 955 of file challenge.cpp.

QString localName [static]

Definition at line 89 of file challenge.cpp.

Initial value:

Definition at line 77 of file challenge.cpp.

Initial value:

Definition at line 82 of file challenge.cpp.

Definition at line 91 of file challenge.cpp.

Definition at line 92 of file challenge.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:00 2011