Defines | Functions | Variables
agent.cpp File Reference
#include <ros/ros.h>
#include <rl_msgs/RLStateReward.h>
#include <rl_msgs/RLEnvDescription.h>
#include <rl_msgs/RLAction.h>
#include <rl_msgs/RLExperimentInfo.h>
#include <rl_msgs/RLEnvSeedExperience.h>
#include <ros/callback_queue.h>
#include <rl_common/core.hh>
#include <rl_common/Random.h>
#include <rl_common/ExperienceFile.hh>
#include <rl_agent/DiscretizationAgent.hh>
#include <rl_agent/QLearner.hh>
#include <rl_agent/ModelBasedAgent.hh>
#include <rl_agent/SavedPolicy.hh>
#include <rl_agent/Dyna.hh>
#include <rl_agent/Sarsa.hh>
#include "std_msgs/String.h"
#include <getopt.h>
#include <stdlib.h>
Include dependency graph for agent.cpp:

Go to the source code of this file.

Defines

#define NODE   "RLAgent"

Functions

void displayHelp ()
int main (int argc, char *argv[])
void processEnvDescription (const rl_msgs::RLEnvDescription::ConstPtr &envIn)
void processSeed (const rl_msgs::RLEnvSeedExperience::ConstPtr &seedIn)
void processState (const rl_msgs::RLStateReward::ConstPtr &stateIn)

Variables

float actrate = 10.0
Agentagent = NULL
char * agentType
float alpha = 0.3
float discountfactor = 0.99
float epsilon = 0.1
int explore = GREEDY
char * filename = NULL
bool firstAction = true
int history = 0
rl_msgs::RLExperimentInfo info
float initialvalue = 0.0
int k = 1000
float lambda = 0.1
int M = 5
int model = C45TREE
int modelcombo = BEST
float n = 0
int nmodels = 1
int nstates = 0
static ros::Publisher out_exp_info
static ros::Publisher out_rl_action
int planner = PAR_ETUCT_ACTUAL
bool PRINTS = true
bool reltrans = true
int seed = 1
float v = 0

Define Documentation

#define NODE   "RLAgent"

Definition at line 27 of file agent.cpp.


Function Documentation

void displayHelp ( )

Definition at line 64 of file agent.cpp.

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

Main method to start up agent node.

Definition at line 237 of file agent.cpp.

void processEnvDescription ( const rl_msgs::RLEnvDescription::ConstPtr &  envIn)

Process the env description message from the environment

Definition at line 157 of file agent.cpp.

void processSeed ( const rl_msgs::RLEnvSeedExperience::ConstPtr &  seedIn)

Process seeds for initializing model

Definition at line 136 of file agent.cpp.

void processState ( const rl_msgs::RLStateReward::ConstPtr &  stateIn)

Process the state/reward message from the environment

Definition at line 97 of file agent.cpp.


Variable Documentation

float actrate = 10.0

Definition at line 46 of file agent.cpp.

Agent* agent = NULL

Definition at line 35 of file agent.cpp.

char* agentType

Definition at line 39 of file agent.cpp.

float alpha = 0.3

Definition at line 44 of file agent.cpp.

float discountfactor = 0.99

Definition at line 42 of file agent.cpp.

float epsilon = 0.1

Definition at line 43 of file agent.cpp.

int explore = GREEDY

Definition at line 50 of file agent.cpp.

char* filename = NULL

Definition at line 57 of file agent.cpp.

Definition at line 32 of file agent.cpp.

int history = 0

Definition at line 58 of file agent.cpp.

rl_msgs::RLExperimentInfo info

Definition at line 38 of file agent.cpp.

float initialvalue = 0.0

Definition at line 45 of file agent.cpp.

int k = 1000

Definition at line 56 of file agent.cpp.

float lambda = 0.1

Definition at line 47 of file agent.cpp.

int M = 5

Definition at line 48 of file agent.cpp.

int model = C45TREE

Definition at line 49 of file agent.cpp.

Definition at line 51 of file agent.cpp.

float n = 0

Definition at line 60 of file agent.cpp.

int nmodels = 1

Definition at line 53 of file agent.cpp.

int nstates = 0

Definition at line 55 of file agent.cpp.

Definition at line 30 of file agent.cpp.

Definition at line 29 of file agent.cpp.

Definition at line 52 of file agent.cpp.

Definition at line 36 of file agent.cpp.

Definition at line 54 of file agent.cpp.

int seed = 1

Definition at line 33 of file agent.cpp.

float v = 0

Definition at line 59 of file agent.cpp.



rl_agent
Author(s): Todd Hester
autogenerated on Thu Jun 6 2019 22:00:14