Conscience Core
Namespaces | Macros | Typedefs | Functions
CscCommandsProcessor.h File Reference
#include "Bridging/EnvironmentInteractionCommands/Result/CommandExecutionResult.h"
#include "Simulator/CscEnvironmentSimulator.h"
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 conscience_core
 
 conscience_core::bridging
 
 conscience_core::bridging::commands
 

Macros

#define PLACEHOLDER_CURRENT_STATE   "CurrentState"
 
#define PLACEHOLDER_SERIAL_NUMBER   "SerialNumber"
 
#define PLACEHOLDER_CURRENT_POSITION   "CurrentPosition"
 
#define PLACEHOLDER_ENTITY_MODEL_ID   "EntityModelId"
 

Typedefs

typedef function< void(const CscCommand *command, const CscCommandExecutionResult *result)> conscience_core::bridging::commands::CommandExecutedListener
 
typedef void(* conscience_core::bridging::commands::OnStatePlayed) (const char *entitySerialNumber, double *encodeState, unsigned long encodedStateSize, int duration, int delay, int areValuesRelative)
 

Functions

void conscience_core::bridging::commands::onApplicationStarted ()
 
void conscience_core::bridging::commands::withLastCommandExecutionResultOnEntity (const string &entitySerialNumber, const function< void(const CscCommandExecutionResult *result)> &action)
 
void conscience_core::bridging::commands::onCommandExecutionStartOnEntity (const CscCommand *command, const string &entitySerialNumber)
 
void conscience_core::bridging::commands::onCommandExecutedOnEntity (const CscCommand *command, const string &entitySerialNumber, const CscCommandExecutionResult *result, CscEnvironmentSimulator &environmentSimulator)
 
optional< string > conscience_core::bridging::commands::getCommandResultByCommandIndex (const string &commandIndex)
 
void conscience_core::bridging::commands::addCommandExecutedOnEntityListener (const string &entitySerialNumber, CommandExecutedListener listener)
 
float * conscience_core::bridging::commands::getStatusAiObjectives (const char *entitySerialNumber)
 
double * conscience_core::bridging::commands::processKnowledgeItemCommandAndEncodeResult (const char *commandChars, const char *entitySerialNumberChars)
 
void conscience_core::bridging::commands::processKnowledgeItemCommandAndEncodeResultToBytes (const char *commandChars, const unsigned char **outBytes, unsigned long long *outBytesCount, const char *entitySerialNumberChars, bool addPrefixCommandId)
 
void conscience_core::bridging::commands::EnvironmentSimulator_dump (const char *outPathChars)
 
void conscience_core::bridging::commands::EnvironmentSimulator_setOnStatePlayedListener (OnStatePlayed listener)
 
void conscience_core::bridging::commands::setEnvironmentSimulator (CscEnvironmentSimulator *newGlobalEnvironmentSimulator)
 
const CscCommandExecutionResultconscience_core::bridging::commands::processKnowledgeItemCommand (const string &commandStringRef, optional< string > entitySerialNumber, string *outCommandId)
 
vector< const CscCommandExecutionResult * > conscience_core::bridging::commands::processKnowledgeItemCommands (const vector< string > &commands, optional< string > entitySerialNumber)
 
bool conscience_core::bridging::commands::checkIfCommandUsesEntityPlaceholders (const string &command)
 
const vector< string > conscience_core::bridging::commands::getListLastExecutedCommands ()
 
CscEnvironmentSimulatorconscience_core::bridging::commands::getEnvironmentSimulator ()
 
void conscience_core::bridging::commands::interpolateCommandPlaceholders (string &command, const char *entitySerialNumberChars)
 

Macro Definition Documentation

◆ PLACEHOLDER_CURRENT_POSITION

#define PLACEHOLDER_CURRENT_POSITION   "CurrentPosition"

◆ PLACEHOLDER_CURRENT_STATE

#define PLACEHOLDER_CURRENT_STATE   "CurrentState"

◆ PLACEHOLDER_ENTITY_MODEL_ID

#define PLACEHOLDER_ENTITY_MODEL_ID   "EntityModelId"

◆ PLACEHOLDER_SERIAL_NUMBER

#define PLACEHOLDER_SERIAL_NUMBER   "SerialNumber"