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

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

Go to the source code of this file.

Classes

class  Enki::ActivationObject
class  Enki::AreaActivating
class  Enki::AsebaFeedableEPuck
class  Enki::Door
class  Enki::EPuckFeeder
class  Enki::EPuckFeeding
class  Enki::FeedableEPuck
class  Enki::ScoreModifier
class  Enki::SlidingDoor
struct  Enki::AsebaFeedableEPuck::Variables

Namespaces

namespace  Enki

Defines

#define ACTIVATION_OBJECT_COLOR   LEGO_RED
#define ACTIVATION_OBJECT_HEIGHT   6
#define DEATH_ANIMATION_STEPS   30
#define EPUCK_ENERGY_CONSUMPTION_RATE   1
#define EPUCK_FEEDER_COLOR_ACTIVE   LEGO_GREEN
#define EPUCK_FEEDER_COLOR_INACTIVE   LEGO_WHITE
#define EPUCK_FEEDER_D_ENERGY   4
#define EPUCK_FEEDER_HEIGHT   5
#define EPUCK_FEEDER_INITIAL_ENERGY   10
#define EPUCK_FEEDER_MAX_ENERGY   100
#define EPUCK_FEEDER_RADIUS   5
#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 INITIAL_POOL_ENERGY   10
#define LEGO_BLUE   Enki::Color(0, 0.38 ,0.61)
#define LEGO_GREEN   Enki::Color(0, 0.5, 0.17)
#define LEGO_RED   Enki::Color(0.77, 0.2, 0.15)
#define LEGO_WHITE   Enki::Color(0.9, 0.9, 0.9)
#define SCORE_MODIFIER_COEFFICIENT   0.2

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 ()
int main (int argc, char *argv[])
void PlaygroundNative_energyamount (AsebaVMState *vm)
void PlaygroundNative_energyreceive (AsebaVMState *vm)
void PlaygroundNative_energysend (AsebaVMState *vm)
template<typename Derived , typename Base >
Derived polymorphic_downcast (Base base)
 Asserts a dynamic cast. Similar to the one in boost/cast.hpp.

Variables

static char ePuckName [9] = "e-puck "
static const
AsebaLocalEventDescription 
localEvents []
static AsebaNativeFunctionPointer nativeFunctions []
static const
AsebaNativeFunctionDescription
nativeFunctionsDescriptions []
AsebaNativeFunctionDescription PlaygroundNativeDescription_energyamount
AsebaNativeFunctionDescription PlaygroundNativeDescription_energyreceive
AsebaNativeFunctionDescription PlaygroundNativeDescription_energysend
Enki::PlaygroundViewerplaygroundViewer = 0
AsebaVMDescription vmDescription

Define Documentation

#define ACTIVATION_OBJECT_COLOR   LEGO_RED

Definition at line 130 of file playground.cpp.

#define ACTIVATION_OBJECT_HEIGHT   6

Definition at line 131 of file playground.cpp.

#define DEATH_ANIMATION_STEPS   30

Definition at line 133 of file playground.cpp.

#define EPUCK_ENERGY_CONSUMPTION_RATE   1

Definition at line 124 of file playground.cpp.

#define EPUCK_FEEDER_COLOR_ACTIVE   LEGO_GREEN

Definition at line 114 of file playground.cpp.

#define EPUCK_FEEDER_COLOR_INACTIVE   LEGO_WHITE

Definition at line 115 of file playground.cpp.

#define EPUCK_FEEDER_D_ENERGY   4

Definition at line 117 of file playground.cpp.

#define EPUCK_FEEDER_HEIGHT   5

Definition at line 121 of file playground.cpp.

#define EPUCK_FEEDER_INITIAL_ENERGY   10

Definition at line 108 of file playground.cpp.

#define EPUCK_FEEDER_MAX_ENERGY   100

Definition at line 119 of file playground.cpp.

#define EPUCK_FEEDER_RADIUS   5

Definition at line 111 of file playground.cpp.

#define EPUCK_FEEDER_RANGE   10

Definition at line 112 of file playground.cpp.

#define EPUCK_FEEDER_RECHARGE_RATE   0.5

Definition at line 118 of file playground.cpp.

#define EPUCK_FEEDER_THRESHOLD_HIDE   2

Definition at line 109 of file playground.cpp.

#define EPUCK_FEEDER_THRESHOLD_SHOW   4

Definition at line 110 of file playground.cpp.

#define EPUCK_INITIAL_ENERGY   10

Definition at line 123 of file playground.cpp.

#define INITIAL_POOL_ENERGY   10

Definition at line 128 of file playground.cpp.

#define LEGO_BLUE   Enki::Color(0, 0.38 ,0.61)

Definition at line 105 of file playground.cpp.

#define LEGO_GREEN   Enki::Color(0, 0.5, 0.17)

Definition at line 104 of file playground.cpp.

#define LEGO_RED   Enki::Color(0.77, 0.2, 0.15)

Definition at line 103 of file playground.cpp.

#define LEGO_WHITE   Enki::Color(0.9, 0.9, 0.9)

Definition at line 106 of file playground.cpp.

#define SCORE_MODIFIER_COEFFICIENT   0.2

Definition at line 126 of file playground.cpp.


Function Documentation

void AsebaAssert ( AsebaVMState vm,
AsebaAssertReason  reason 
)

Definition at line 817 of file playground.cpp.

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

Definition at line 851 of file playground.cpp.

void PlaygroundNative_energyamount ( AsebaVMState vm  ) 

Definition at line 723 of file playground.cpp.

void PlaygroundNative_energyreceive ( AsebaVMState vm  ) 

Definition at line 705 of file playground.cpp.

void PlaygroundNative_energysend ( AsebaVMState vm  ) 

Definition at line 687 of file playground.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 56 of file playground.cpp.


Variable Documentation

char ePuckName[9] = "e-puck " [static]

Definition at line 779 of file playground.cpp.

Initial value:
 {
        { "ir_sensors", "New IR sensors values available" },
        {"camera", "New camera picture available"},
        { NULL, NULL }
}

Definition at line 788 of file playground.cpp.

Definition at line 76 of file playground.cpp.

Definition at line 75 of file playground.cpp.

Definition at line 74 of file playground.cpp.

Definition at line 99 of file playground.cpp.

Definition at line 96 of file playground.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


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