Conscience Core
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
conscience_core::bridging::commands::TestCommandWithStruct Class Reference

#include <CommandWithStructParams.h>

Inheritance diagram for conscience_core::bridging::commands::TestCommandWithStruct:
conscience_core::bridging::commands::CscCommand

Public Member Functions

 TestCommandWithStruct (ptr< CscEntityReflexion > entityReflexion, const MyParamsCommandDataType *parameters)
 
- Public Member Functions inherited from conscience_core::bridging::commands::CscCommand
const CscCommandExecutionResult_execute (CscEnvironmentSimulator &environmentSimulator)
 
template<class TResult = CscCommandExecutionResult>
const TResult * execute (CscEnvironmentSimulator &environmentSimulator)
 
const CommandTypeIdgetTypeId () const
 
virtual ~CscCommand ()
 
void setOriginalCommandString (string command)
 

Static Public Attributes

static const CommandTypeId COMMAND_ID = "TEST_COMMAND_WITH_STRUCT"
 

Protected Member Functions

const CscCommandExecutionResultNonedoExecute (CscEnvironmentSimulator &environmentSimulator) override
 
ptr< CscEntityReflexiongetEntityReflexion () const override
 
- Protected Member Functions inherited from conscience_core::bridging::commands::CscCommand
 CscCommand (const CommandTypeId &typeId)
 
const CscCommandExecutionResultNoneresultNone ()
 
const CscCommandExecutionResultSequenceresultSequence (CscSequence *sequence, const string &entitySerialNumber, bool doNotPlay=false)
 
const CscCommandExecutionResultFileresultFile (const fs::path &resultingFilePath)
 
template<class TResult >
const CscCommandExecutionResultObject< TResult > * resultObject (TResult *result)
 
const CscWorldElementId getEntityId () const
 

Protected Attributes

const ptr< CscEntityReflexionentityReflexion
 
const MyParamsCommandDataType *const parameters
 
std::unique_ptr< CscLoggerlogger = CscLogger::getForCategory("TestCommandWithStruct")
 
- Protected Attributes inherited from conscience_core::bridging::commands::CscCommand
const CommandTypeId typeId
 
optional< string > originalCommandString = {}
 

Additional Inherited Members

- Public Types inherited from conscience_core::bridging::commands::CscCommand
typedef function< void(CscCommand *command)> CommandExecutedListener
 
- Static Public Member Functions inherited from conscience_core::bridging::commands::CscCommand
static void addCommandExecutedListener (CommandExecutedListener listener)
 

Detailed Description

Set the configuration of obstacle strategy. This configuration will influence the robot’s behavior when facing an obstacle (such as the distance at which it stops before the obstacle).

Constructor & Destructor Documentation

◆ TestCommandWithStruct()

conscience_core::bridging::commands::TestCommandWithStruct::TestCommandWithStruct ( ptr< CscEntityReflexion entityReflexion,
const MyParamsCommandDataType parameters 
)

Member Function Documentation

◆ doExecute()

const CscCommandExecutionResultNone* conscience_core::bridging::commands::TestCommandWithStruct::doExecute ( CscEnvironmentSimulator environmentSimulator)
overrideprotectedvirtual

◆ getEntityReflexion()

ptr<CscEntityReflexion> conscience_core::bridging::commands::TestCommandWithStruct::getEntityReflexion ( ) const
overrideprotectedvirtual

return entity reflexion if this command applies on an entityReflexion, otherwise return nullptr

Implements conscience_core::bridging::commands::CscCommand.

Member Data Documentation

◆ COMMAND_ID

const CommandTypeId conscience_core::bridging::commands::TestCommandWithStruct::COMMAND_ID = "TEST_COMMAND_WITH_STRUCT"
inlinestatic

◆ entityReflexion

const ptr<CscEntityReflexion> conscience_core::bridging::commands::TestCommandWithStruct::entityReflexion
protected

◆ logger

std::unique_ptr<CscLogger> conscience_core::bridging::commands::TestCommandWithStruct::logger = CscLogger::getForCategory("TestCommandWithStruct")
protected

◆ parameters

const MyParamsCommandDataType* const conscience_core::bridging::commands::TestCommandWithStruct::parameters
protected

The documentation for this class was generated from the following file: