Namespaces | |
| align_images | |
| area_path_generate_for_pictures | |
| cartography | |
| doc | |
| entity_reflexion | |
| environment_entities | |
| environment_objects | |
| environment_places | |
| metadata | |
| result | |
Typedefs | |
| typedef string | CommandTypeId |
| typedef function< const CscCommandExecutionResult *(CscEnvironmentSimulator &environmentSimulator)> | FunctionCommand |
| using | CommandTypesMetadataByTypeNameMutex = shared_recursive_mutex_t< CommandTypesMetadataByTypeNameMutexUniqueType > |
| using | CommandsMetadataByIdMutex = shared_recursive_mutex_t< CommandsMetadataByIdMutexUniqueType > |
| using | CommandDataJsonSerializersMutex = shared_recursive_mutex_t< CommandDataJsonSerializersMutexUniqueType > |
| using | CommandVisionDetectNotificationParams = CscEntityReflexionDetectionParameters::DetectionNotificationParameters |
| typedef function< void(const CscCommand *command, const CscCommandExecutionResult *result)> | CommandExecutedListener |
| typedef void(* | OnStatePlayed) (const char *entitySerialNumber, double *encodeState, unsigned long encodedStateSize, int duration, int delay, int areValuesRelative) |
| typedef function< void *(const map< string, any > ¶msValues, const vector< string > ¶mNames)> | CommandTypeBuilder |
Enumerations | |
| enum | CscCommandPtrType { CommandPtrType_STAR, CommandPtrType_SHARED, CommandPtrType_REF, CommandPtrType_PLAIN } |
Functions | |
| void | exportObjectScanPointsFromPosition (const string &modelId, CscEnvironmentSimulator &environmentSimulator, double currentX, double currentY, double currentZ, double offsetX, double offsetY, double offsetZ, int strategy) |
| COMMAND_REGISTER (CommandFollowKinematicTrajectory, ptr< CscEntityReflexion >, int, const CscState *, string, string, string, string, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float) | |
| CscWorldElementModelSourceSpec | getObjectModelSource (const string &objectId) |
| string | commandTypeToPascalCase (const string &input) |
| bool | isCoreFile (const fs::path &filePath) |
| std::pair< float **, float ** > | createDataForTraining (ptr< CscEntityReflexion > entityReflexion, CscState *initialState, const int nbData, CscEnvironmentSimulator *environment, int stationaryPivotId, int memberToControlId, vector< int > pivotsIdsToGet) |
| any | parseCommandParamValue (const CscCommandDataTypeNodeMetadata *paramInfo, const string ¶mStringValueInCommand, bool resolveObjects, bool permissive) |
| any | parseCommandParamValueFromJson (yyjson_val *jsonElement, const CscCommandDataTypeNodeMetadata *elementsInfo, bool resolveObjects, bool permissive) |
| const CscCommandDataTypeNodeMetadata * | parseMetadataTypeNode (const string &name, const string &typeString) |
| void | sanitizeTypeToken (string &typeToken) |
| string | getWrongCommandDataTypeDuringParseExceptionMessage (const string &name, CommandParamMetaType expectedType, int actualType) |
| string | resolveHeaderRelativePath (const string &headerFileFullPath) |
| optional< string > | getStringFromJsonValue (yyjson_val *jsonElement, const string ¶mName, CommandParamMetaType type, bool permissive) |
| template<class T > | |
| any | checkTypeAndGetNumericValueFromJson (yyjson_val *jsonElement, const CscCommandDataTypeNodeMetadata *elementInfo, bool permissive) |
| string | getStringParamValue (const string &input) |
| map< string, any > | parseCommandParametersAsMap (const string &commandId, const vector< string > &commandStringArguments, optional< int > knowledgeId, bool objectsAsMap, bool resolveObjects, bool permissive) |
| void | listCommandsWithDocumentedParams () |
| bool | hasCommandTypeMetadataForName (const string &qualifiedTypeName) |
| const CscCommandDataTypeMetadata * | getCommandTypeMetadataByName (const string &qualifiedTypeName) |
| const CscCommandDataTypeMetadata * | updateCommandTypeMetadataByName (const string &headerFileRelativePath, const string &classQualifiedName, const string &classSimpleName, const string &doc, const vector< const CscCommandDataTypeNodeMetadata * > ¶msMetadata, optional< string > commandId) |
| void | registerCommandTypeMetadata (CscCommandDataTypeMetadata *typeMetadata) |
| void | registerCommandMetadataTypeById (const CscCommandDataTypeMetadata *typeMetadata) |
| fs::path | resolveCommandFileAbsolutePathFromRelative (const fs::path &headerFileRelativePath, const string &forCommandId) |
| ENUM (CommandParamMetaType, CommandParamMetaType_double, CommandParamMetaType_float, CommandParamMetaType_int, CommandParamMetaType_long, CommandParamMetaType_unsigned_long_long, CommandParamMetaType_bool, CommandParamMetaType_string, CommandParamMetaType_list, CommandParamMetaType_map, CommandParamMetaType_object, CommandParamMetaType_optional, CommandParamMetaType_enum, CommandParamMetaType_entityReflexion, CommandParamMetaType_entityModel, CommandParamMetaType_placeModel, CommandParamMetaType_objectModel) | |
| bool | isNullableObjectType (CscCommandPtrType refType) |
| CommandTypesMetadataByTypeNameMutex & | commandTypesMetadataByTypeNameMutex () |
| map< string, CscCommandDataTypeMetadata * > & | commandTypesMetadataByTypeName () |
| CommandsMetadataByIdMutex & | commandsMetadataByIdMutex () |
| map< string, const CscCommandDataTypeMetadata * > & | commandsMetadataById () |
| CommandDataJsonSerializersMutex & | commandDataJsonSerializersMutex () |
| map< const type_info *, function< optional< JsonSerializableData >const any &object)> > & | getCommandDataJsonSerializers () |
| bool | registerCommandDataJsonSerializer (const type_info &typeInfo, function< optional< JsonSerializableData >(const any &object)> serializer) |
| template<typename TData > | |
| function< optional< JsonSerializableData >const any &object)> | getCommandDataJsonSerializer () |
| template<typename T > | |
| T | field_value_any_cast (any anyValue) |
| template<IsMap TMap> | |
| TMap | field_value_any_cast (any anyValue) |
| template<IsOptional TOptional> | |
| TOptional | field_value_any_cast (any anyValue) |
| template<IsVector TVector> | |
| TVector | field_value_any_cast (any anyValue) |
| template<typename T > | |
| requires (IsSharedPointer< std::remove_cvref_t< T >>) JsonSerializableData field_value_to_json_serializable(T value) | |
| template<typename T > | |
| requires (IsStarPointer< std::remove_cvref_t< T >>) JsonSerializableData field_value_to_json_serializable(T value) | |
| template<typename T > | |
| JsonSerializableData | field_value_to_json_serializable (optional< T > value) |
| template<IsVector TVector> | |
| JsonSerializableData | field_value_to_json_serializable (TVector value) |
| template<IsMap TMap> | |
| JsonSerializableData | field_value_to_json_serializable (TMap value) |
| template<typename T > | |
| JsonSerializableData | field_value_to_json_serializable (T value) |
| bool | isUserCommand (const string &commandId) |
| void | onCommandExecutionStartOnEntity (const CscCommand *command, const string &entitySerialNumber) |
| void | withLastCommandExecutionResultOnEntity (const string &entitySerialNumber, const function< void(const CscCommandExecutionResult *result)> &action) |
| void | onCommandExecutedOnEntity (const CscCommand *command, const string &entitySerialNumber, const CscCommandExecutionResult *result, CscEnvironmentSimulator &environmentSimulator) |
| optional< string > | getCommandResultByCommandIndex (const string &commandIndex) |
| void | addCommandExecutedOnEntityListener (const string &entitySerialNumber, CommandExecutedListener listener) |
| void | onApplicationStarted () |
| CscEnvironmentSimulator & | getEnvironmentSimulator () |
| void | setEnvironmentSimulator (CscEnvironmentSimulator *newGlobalEnvironmentSimulator) |
| float * | getStatusAiObjectives (const char *entitySerialNumber) |
| void | EnvironmentSimulator_dump (const char *outPathChars) |
| void | EnvironmentSimulator_setOnStatePlayedListener (OnStatePlayed listener) |
| void | interpolateCommandPlaceholders (string &command, const char *entitySerialNumberChars) |
| const CscCommandExecutionResult * | relayCommandToEntity (const string &commandString, const optional< string > &entitySerialNumber) |
| const CscCommandExecutionResult * | processKnowledgeItemCommand (const string &commandStringRef, optional< string > entitySerialNumber, string *outCommandId) |
| bool | checkIfCommandUsesEntityPlaceholders (const string &command) |
| vector< const CscCommandExecutionResult * > | processKnowledgeItemCommands (const vector< string > &commands, optional< string > entitySerialNumber) |
| double * | processKnowledgeItemCommandAndEncodeResult (const char *commandChars, const char *entitySerialNumberChars) |
| void | processKnowledgeItemCommandAndEncodeResultToBytes (const char *commandChars, const unsigned char **outBytes, unsigned long long *outBytesCount, const char *entitySerialNumberChars, bool addPrefixCommandId) |
| const vector< string > | getListLastExecutedCommands () |
| ptr< CscEntityReflexion > | getEntityReflexionFromAny (std::any anyValue, const string &argName) |
| map< const std::type_info *, CommandTypeBuilder > & | commandTypeBuilders () |
| void | registerCommandTypeBuilder (const std::type_info &type, const CommandTypeBuilder &builder) |
| optional< CommandTypeBuilder > | getCommandTypeBuilder (const std::type_info &type) |
| template<IsMap TMap> | |
| TMap | convertMapValueToArg (const std::any &anyValue, const string &argName, size_t argIndex) |
| template<IsOptional TOptional> | |
| requires(IsStarPointer< std::remove_cvref_t< T >>) T convertMapValueToArg(const std requires(IsSharedPointer< std::remove_cvref_t< T >>) T convertMapValueToArg(const std TOptional | convertMapValueToArg (const std::any &anyValue, const string &argName, size_t argIndex) |
| template<IsVector TVector> | |
| TVector | convertMapValueToArg (const std::any &anyValue, const string &argName, size_t argIndex) |
| template<IsEnum TEnum> | |
| requires(IsStdFixedArray< TArray >) TArray convertMapValueToArg(const std TEnum | convertMapValueToArg (const std::any &anyValue, const string &argName, size_t argIndex) |
| template<IsOptional TOptional> | |
| TOptional | convertMapValueToArg (const std::any &anyValue, const string &argName, size_t argIndex) |
| template<typename TNumber > | |
| TNumber | getNumberFromString (const string &strValue) |
| template<typename TArray > | |
| requires (IsStdFixedArray< TArray >) TArray convertMapValueToArg(const std | |
| template<typename Tuple , typename Map , std::size_t... Is> | |
| Tuple | extractArgsHelper (const Map ¶mMap, const std::vector< std::string > ¶mNames, std::index_sequence< Is... >) |
| template<typename Tuple > | |
| Tuple | extractArgs (const std::map< std::string, std::any > ¶mMap, const std::vector< std::string > ¶mNames) |
| template<typename T , typename... Params> | |
| T * | createInstance (const std::map< std::string, std::any > ¶mMap, const std::vector< std::string > ¶mNames) |
| template<typename T > | |
| bool | doesAnyContainStarPointer (const std::any &anyValue) |
| template<typename T > | |
| bool | doesAnyContainSharedPtr (const std::any &anyValue) |
| template<typename TObject > | |
| constexpr bool | isCommandBuiltinObjectType () |
| template<typename TTargetType > | |
| requires (!IsStdFixedArray< TTargetType > &&!IsOptional< TTargetType > &&!IsEnum< TTargetType > &&!IsVector< TTargetType > &&!IsMap< TTargetType > &&!IsSharedPointer< TTargetType > &&!IsStarPointer< TTargetType >) TTargetType convertMapValueToArg(const std | |
Variables | |
| std::unique_ptr< CscLogger > | logger = CscLogger::getForCategory("Commands") |
| static CscEntityModelsRepository * | entityModelsRepository = CscEntityModelsRepository::getInstance() |
| static CscResources & | resources = CscResources::Instance() |
| static ptr< CscEntityReflexions > | entityReflexions = CscEntityReflexions::getInstance() |
| const float | factorInchToMicron = 1000.0 * 25.4 |
| const float | factorInchToMillimeter = 25.4 |
| const float | factorCmToMillimeter = 10.0 |
| const float | PI = 3.14159265359 |
| const float | staticTmpHeight = 630000 |
| const string | MAZE_PLACE_MODEL_ID = "91" |
| static ptr< CscEntityReflexions > | entityReflexions = CscEntityReflexions::getInstance() |
| static auto | paramsSpecLogger = CscLogger::getForCategory("CommandParamsSpec") |
| template<typename T > | |
| concept | IsCommandParams = std::is_base_of<BaseCommandParams, T>::value |
| CscEnvironmentInteractionCommandParser * | commandParser = CscEnvironmentInteractionCommandParser::getInstance() |
| auto | encoder = ConscienceEncoder::getInstance() |
| CscEnvironmentSimulator * | globalEnvironmentSimulator = nullptr |
| static mutex | entityCommandsHistoryMutex |
| static map< string, const CscCommandExecutionResult * > | lastEntitiesCommandExecutionResultBySerialNumber |
| static mutex | commandsResultsMutex |
| static map< string, const string * > | commandResults |
| static constexpr size_t | COMMANDS_RESULTS_HISTORY_SIZE = 50 |
| static mutex | commandExecutedOnEntityListenersMutex |
| static map< string, vector< CommandExecutedListener > > | commandExecutedOnEntityListeners |
| const bool | addToListLastCommandExecuted = true |
| vector< string > | listLastExecutedCommands |
| mutex | listLastExecutedCommandsMutex |
| const string | relayCommandToEntityNoEntity = "__CSC_MSG_NO_SELECTED_ENTITY" |
| unsigned long long | executedCommandCounter = 0 |
| template<IsEnum TEnum> | |
| requires(!IsStdFixedArray< TTargetType > &&!IsOptional< TTargetType > &&!IsEnum< TTargetType > &&!IsVector< TTargetType > &&!IsMap< TTargetType > &&!IsSharedPointer< TTargetType > &&!IsStarPointer< TTargetType >) TTargetType convertMapValueToArg(const std TEnum | convertMapValueToArg (const std::any &anyValue, const string &argName, size_t argIndex) |
| using conscience_core::bridging::commands::CommandDataJsonSerializersMutex = typedef shared_recursive_mutex_t<CommandDataJsonSerializersMutexUniqueType> |
| typedef function<void(const CscCommand *command, const CscCommandExecutionResult *result)> conscience_core::bridging::commands::CommandExecutedListener |
| using conscience_core::bridging::commands::CommandsMetadataByIdMutex = typedef shared_recursive_mutex_t<CommandsMetadataByIdMutexUniqueType> |
| typedef function<void *(const map<string, any> ¶msValues, const vector<string> ¶mNames)> conscience_core::bridging::commands::CommandTypeBuilder |
| typedef string conscience_core::bridging::commands::CommandTypeId |
| using conscience_core::bridging::commands::CommandTypesMetadataByTypeNameMutex = typedef shared_recursive_mutex_t<CommandTypesMetadataByTypeNameMutexUniqueType> |
| using conscience_core::bridging::commands::CommandVisionDetectNotificationParams = typedef CscEntityReflexionDetectionParameters::DetectionNotificationParameters |
| typedef function< const CscCommandExecutionResult *(CscEnvironmentSimulator &environmentSimulator)> conscience_core::bridging::commands::FunctionCommand |
| typedef void(* conscience_core::bridging::commands::OnStatePlayed) (const char *entitySerialNumber, double *encodeState, unsigned long encodedStateSize, int duration, int delay, int areValuesRelative) |
const char* entitySerialNumber float* encodeState (use Conscience standard , see ConscienceEncoder) unsigned long encodedStateSize int duration int delay bool relativeValues
| CSC_DLL_IMPORTEXPORT void conscience_core::bridging::commands::addCommandExecutedOnEntityListener | ( | const string & | entitySerialNumber, |
| CommandExecutedListener | listener | ||
| ) |
| CSC_DLL_IMPORTEXPORT bool conscience_core::bridging::commands::checkIfCommandUsesEntityPlaceholders | ( | const string & | command | ) |
| command | -> if contains placeholder serial number returns true |
| any conscience_core::bridging::commands::checkTypeAndGetNumericValueFromJson | ( | yyjson_val * | jsonElement, |
| const CscCommandDataTypeNodeMetadata * | elementInfo, | ||
| bool | permissive | ||
| ) |
| conscience_core::bridging::commands::COMMAND_REGISTER | ( | CommandFollowKinematicTrajectory | , |
| ptr< CscEntityReflexion > | , | ||
| int | , | ||
| const CscState * | , | ||
| string | , | ||
| string | , | ||
| string | , | ||
| string | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | , | ||
| float | |||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| CSC_DLL_IMPORTEXPORT string conscience_core::bridging::commands::commandTypeToPascalCase | ( | const string & | input | ) |
| requires (IsStarPointer<std::remove_cvref_t<T>>) T convertMapValueToArg( const std requires (IsSharedPointer<std::remove_cvref_t<T>>) T convertMapValueToArg( const std TOptional conscience_core::bridging::commands::convertMapValueToArg | ( | const std::any & | anyValue, |
| const string & | argName, | ||
| size_t | argIndex | ||
| ) |
| requires (IsStdFixedArray<TArray>) TArray convertMapValueToArg( const std TEnum conscience_core::bridging::commands::convertMapValueToArg | ( | const std::any & | anyValue, |
| const string & | argName, | ||
| size_t | argIndex | ||
| ) |
| TOptional conscience_core::bridging::commands::convertMapValueToArg | ( | const std::any & | anyValue, |
| const string & | argName, | ||
| size_t | argIndex | ||
| ) |
| TMap conscience_core::bridging::commands::convertMapValueToArg | ( | const std::any & | anyValue, |
| const string & | argName, | ||
| size_t | argIndex | ||
| ) |
| TVector conscience_core::bridging::commands::convertMapValueToArg | ( | const std::any & | anyValue, |
| const string & | argName, | ||
| size_t | argIndex | ||
| ) |
| std::pair<float **, float **> conscience_core::bridging::commands::createDataForTraining | ( | ptr< CscEntityReflexion > | entityReflexion, |
| CscState * | initialState, | ||
| const int | nbData, | ||
| CscEnvironmentSimulator * | environment, | ||
| int | stationaryPivotId, | ||
| int | memberToControlId, | ||
| vector< int > | pivotsIdsToGet | ||
| ) |
| T* conscience_core::bridging::commands::createInstance | ( | const std::map< std::string, std::any > & | paramMap, |
| const std::vector< std::string > & | paramNames | ||
| ) |
| bool conscience_core::bridging::commands::doesAnyContainSharedPtr | ( | const std::any & | anyValue | ) |
| bool conscience_core::bridging::commands::doesAnyContainStarPointer | ( | const std::any & | anyValue | ) |
| conscience_core::bridging::commands::ENUM | ( | CommandParamMetaType | , |
| CommandParamMetaType_double | , | ||
| CommandParamMetaType_float | , | ||
| CommandParamMetaType_int | , | ||
| CommandParamMetaType_long | , | ||
| CommandParamMetaType_unsigned_long_long | , | ||
| CommandParamMetaType_bool | , | ||
| CommandParamMetaType_string | , | ||
| CommandParamMetaType_list | , | ||
| CommandParamMetaType_map | , | ||
| CommandParamMetaType_object | , | ||
| CommandParamMetaType_optional | , | ||
| CommandParamMetaType_enum | , | ||
| CommandParamMetaType_entityReflexion | , | ||
| CommandParamMetaType_entityModel | , | ||
| CommandParamMetaType_placeModel | , | ||
| CommandParamMetaType_objectModel | |||
| ) |
| void conscience_core::bridging::commands::EnvironmentSimulator_dump | ( | const char * | outPathChars | ) |
| void conscience_core::bridging::commands::EnvironmentSimulator_setOnStatePlayedListener | ( | OnStatePlayed | listener | ) |
| void conscience_core::bridging::commands::exportObjectScanPointsFromPosition | ( | const string & | modelId, |
| CscEnvironmentSimulator & | environmentSimulator, | ||
| double | currentX, | ||
| double | currentY, | ||
| double | currentZ, | ||
| double | offsetX, | ||
| double | offsetY, | ||
| double | offsetZ, | ||
| int | strategy | ||
| ) |
| Tuple conscience_core::bridging::commands::extractArgs | ( | const std::map< std::string, std::any > & | paramMap, |
| const std::vector< std::string > & | paramNames | ||
| ) |
| Tuple conscience_core::bridging::commands::extractArgsHelper | ( | const Map & | paramMap, |
| const std::vector< std::string > & | paramNames, | ||
| std::index_sequence< Is... > | |||
| ) |
| T conscience_core::bridging::commands::field_value_any_cast | ( | any | anyValue | ) |
| TMap conscience_core::bridging::commands::field_value_any_cast | ( | any | anyValue | ) |
| TOptional conscience_core::bridging::commands::field_value_any_cast | ( | any | anyValue | ) |
| TVector conscience_core::bridging::commands::field_value_any_cast | ( | any | anyValue | ) |
| JsonSerializableData conscience_core::bridging::commands::field_value_to_json_serializable | ( | optional< T > | value | ) |
| JsonSerializableData conscience_core::bridging::commands::field_value_to_json_serializable | ( | T | value | ) |
| JsonSerializableData conscience_core::bridging::commands::field_value_to_json_serializable | ( | TMap | value | ) |
| JsonSerializableData conscience_core::bridging::commands::field_value_to_json_serializable | ( | TVector | value | ) |
|
inline |
|
inline |
| CSC_DLL_IMPORTEXPORT optional< string > conscience_core::bridging::commands::getCommandResultByCommandIndex | ( | const string & | commandIndex | ) |
|
inline |
| const CSC_DLL_IMPORTEXPORT CscCommandDataTypeMetadata * conscience_core::bridging::commands::getCommandTypeMetadataByName | ( | const string & | qualifiedTypeName | ) |
| ptr< CscEntityReflexion > conscience_core::bridging::commands::getEntityReflexionFromAny | ( | std::any | anyValue, |
| const string & | argName | ||
| ) |
| CSC_DLL_IMPORTEXPORT CscEnvironmentSimulator & conscience_core::bridging::commands::getEnvironmentSimulator | ( | ) |
| const CSC_DLL_IMPORTEXPORT vector< string > conscience_core::bridging::commands::getListLastExecutedCommands | ( | ) |
| TNumber conscience_core::bridging::commands::getNumberFromString | ( | const string & | strValue | ) |
|
inline |
| float * conscience_core::bridging::commands::getStatusAiObjectives | ( | const char * | entitySerialNumber | ) |
|
inline |
|
inline |
| string conscience_core::bridging::commands::getWrongCommandDataTypeDuringParseExceptionMessage | ( | const string & | name, |
| CommandParamMetaType | expectedType, | ||
| int | actualType | ||
| ) |
| CSC_DLL_IMPORTEXPORT bool conscience_core::bridging::commands::hasCommandTypeMetadataForName | ( | const string & | qualifiedTypeName | ) |
| qualifiedTypeName | qualified class name, as specified by CscCommandDataTypeMetadata::getClassName(true) |
| CSC_DLL_IMPORTEXPORT void conscience_core::bridging::commands::interpolateCommandPlaceholders | ( | string & | command, |
| const char * | entitySerialNumberChars | ||
| ) |
|
constexpr |
| CSC_DLL_IMPORTEXPORT bool conscience_core::bridging::commands::isCoreFile | ( | const fs::path & | filePath | ) |
|
inline |
|
inline |
| CSC_DLL_IMPORTEXPORT void conscience_core::bridging::commands::listCommandsWithDocumentedParams | ( | ) |
| CSC_DLL_IMPORTEXPORT void conscience_core::bridging::commands::onApplicationStarted | ( | ) |
| CSC_DLL_IMPORTEXPORT void conscience_core::bridging::commands::onCommandExecutedOnEntity | ( | const CscCommand * | command, |
| const string & | entitySerialNumber, | ||
| const CscCommandExecutionResult * | result, | ||
| CscEnvironmentSimulator & | environmentSimulator | ||
| ) |
| CSC_DLL_IMPORTEXPORT void conscience_core::bridging::commands::onCommandExecutionStartOnEntity | ( | const CscCommand * | command, |
| const string & | entitySerialNumber | ||
| ) |
| CSC_DLL_IMPORTEXPORT map< string, any > conscience_core::bridging::commands::parseCommandParametersAsMap | ( | const string & | commandId, |
| const vector< string > & | commandStringArguments, | ||
| optional< int > | knowledgeId, | ||
| bool | objectsAsMap, | ||
| bool | resolveObjects = true, |
||
| bool | permissive = false |
||
| ) |
Parse command parameters objects from given commandId and arguments note: Usually, a command is COMMAND_ID;ARG1;ARG2
| objectsAsMap | if true, objects will be encoded as maps, and not instance of object |
| resolveObjects | if false, special objects won't be resolved (entityModel, entityReflexion..), original value will be kept |
| permissive | if true, won't cause error if non-optional value is missing (it will make process continue in a best-effort mode) |
| any conscience_core::bridging::commands::parseCommandParamValue | ( | const CscCommandDataTypeNodeMetadata * | paramInfo, |
| const string & | paramStringValueInCommand, | ||
| bool | resolveObjects, | ||
| bool | permissive | ||
| ) |
| resolveObjects | see parseCommandParametersAsMap header doc |
| permissive | see parseCommandParametersAsMap header doc |
| resolveObjects | see parseCommandParametersAsMap header doc |
| any conscience_core::bridging::commands::parseCommandParamValueFromJson | ( | yyjson_val * | jsonElement, |
| const CscCommandDataTypeNodeMetadata * | elementInfo, | ||
| bool | resolveObjects, | ||
| bool | permissive | ||
| ) |
| resolveObjects | see parseCommandParametersAsMap header doc |
| permissive | see parseCommandParametersAsMap header doc |
| resolveObjects | see parseCommandParametersAsMap header doc |
| const CSC_DLL_IMPORTEXPORT CscCommandDataTypeNodeMetadata * conscience_core::bridging::commands::parseMetadataTypeNode | ( | const string & | name, |
| const string & | typeString | ||
| ) |
| const CSC_DLL_IMPORTEXPORT CscCommandExecutionResult * conscience_core::bridging::commands::processKnowledgeItemCommand | ( | const string & | command, |
| optional< string > | entitySerialNumber, | ||
| string * | outCommandId = nullptr |
||
| ) |
| entitySerialNumber | -> if not empty, will be used to interpolate command placeholders |
| outCommandId | if not null, will be set to detected commandId (if possible, empty otherwise) |
| CSC_DLL_IMPORTEXPORT double * conscience_core::bridging::commands::processKnowledgeItemCommandAndEncodeResult | ( | const char * | command, |
| const char * | entitySerialNumber | ||
| ) |
Executes command and encodes result to a double array.
| entitySerialNumber | -> if not empty, will be used to interpolate command placeholders |
| CSC_DLL_IMPORTEXPORT void conscience_core::bridging::commands::processKnowledgeItemCommandAndEncodeResultToBytes | ( | const char * | commandChars, |
| const unsigned char ** | outBytes, | ||
| unsigned long long * | outBytesCount, | ||
| const char * | entitySerialNumber, | ||
| bool | addPrefixCommandId = true |
||
| ) |
Executes command and encodes result to a byte array.
| entitySerialNumber | -> if not empty, will be used to interpolate command placeholders |
| CSC_DLL_IMPORTEXPORT vector< const CscCommandExecutionResult * > conscience_core::bridging::commands::processKnowledgeItemCommands | ( | const vector< string > & | commands, |
| optional< string > | entitySerialNumber | ||
| ) |
| entitySerialNumber | -> if not empty, will be used to interpolate command placeholders |
|
inline |
| CSC_DLL_IMPORTEXPORT void conscience_core::bridging::commands::registerCommandMetadataTypeById | ( | const CscCommandDataTypeMetadata * | typeMetadata | ) |
Registers given type metadata by command id
|
inline |
| CSC_DLL_IMPORTEXPORT void conscience_core::bridging::commands::registerCommandTypeMetadata | ( | CscCommandDataTypeMetadata * | typeMetadata | ) |
Registers given type metadata by name
|
inline |
| conscience_core::bridging::commands::requires | ( | !IsStdFixedArray< TTargetType > &&!IsOptional< TTargetType > &&!IsEnum< TTargetType > &&!IsVector< TTargetType > &&!IsMap< TTargetType > &&!IsSharedPointer< TTargetType > &&!IsStarPointer< TTargetType > | ) | const |
| conscience_core::bridging::commands::requires | ( | IsSharedPointer< std::remove_cvref_t< T >> | ) |
| conscience_core::bridging::commands::requires | ( | IsStarPointer< std::remove_cvref_t< T >> | ) |
| conscience_core::bridging::commands::requires | ( | IsStdFixedArray< TArray > | ) | const |
| CSC_DLL_IMPORTEXPORT fs::path conscience_core::bridging::commands::resolveCommandFileAbsolutePathFromRelative | ( | const fs::path & | headerFileRelativePath, |
| const string & | forCommandId | ||
| ) |
If file is available on local FS, returns absolute path to this file, in the context of the given command ID. Otherwise, it will just return the given path.
| forCommandId | some files can be specific to user commands, so we need to know commandId to resolve file path |
|
inline |
|
inline |
| CSC_DLL_IMPORTEXPORT void conscience_core::bridging::commands::setEnvironmentSimulator | ( | CscEnvironmentSimulator * | newGlobalEnvironmentSimulator | ) |
| const CSC_DLL_IMPORTEXPORT CscCommandDataTypeMetadata * conscience_core::bridging::commands::updateCommandTypeMetadataByName | ( | const string & | headerFileRelativePath, |
| const string & | classQualifiedName, | ||
| const string & | classSimpleName, | ||
| const string & | doc, | ||
| const vector< const CscCommandDataTypeNodeMetadata * > & | paramsMetadata, | ||
| optional< string > | commandId | ||
| ) |
| CSC_DLL_IMPORTEXPORT void conscience_core::bridging::commands::withLastCommandExecutionResultOnEntity | ( | const string & | entitySerialNumber, |
| const function< void(const CscCommandExecutionResult *result)> & | action | ||
| ) |
| const bool conscience_core::bridging::commands::addToListLastCommandExecuted = true |
|
static |
|
static |
| CscEnvironmentInteractionCommandParser* conscience_core::bridging::commands::commandParser = CscEnvironmentInteractionCommandParser::getInstance() |
|
static |
|
staticconstexpr |
|
static |
| requires (!IsStdFixedArray<TTargetType> && !IsOptional<TTargetType> && !IsEnum<TTargetType> && !IsVector<TTargetType> && !IsMap<TTargetType> && !IsSharedPointer<TTargetType> && !IsStarPointer<TTargetType>) TTargetType convertMapValueToArg( const std TEnum conscience_core::bridging::commands::convertMapValueToArg(const std::any &anyValue, const string &argName, size_t argIndex) |
| auto conscience_core::bridging::commands::encoder = ConscienceEncoder::getInstance() |
|
static |
|
static |
|
static |
|
static |
| unsigned long long conscience_core::bridging::commands::executedCommandCounter = 0 |
| const float conscience_core::bridging::commands::factorCmToMillimeter = 10.0 |
| const float conscience_core::bridging::commands::factorInchToMicron = 1000.0 * 25.4 |
| const float conscience_core::bridging::commands::factorInchToMillimeter = 25.4 |
| CscEnvironmentSimulator* conscience_core::bridging::commands::globalEnvironmentSimulator = nullptr |
| concept conscience_core::bridging::commands::IsCommandParams = std::is_base_of<BaseCommandParams, T>::value |
|
static |
| vector<string> conscience_core::bridging::commands::listLastExecutedCommands |
| mutex conscience_core::bridging::commands::listLastExecutedCommandsMutex |
| auto conscience_core::bridging::commands::logger = CscLogger::getForCategory("Commands") |
| const string conscience_core::bridging::commands::MAZE_PLACE_MODEL_ID = "91" |
|
static |
| const float conscience_core::bridging::commands::PI = 3.14159265359 |
| const string conscience_core::bridging::commands::relayCommandToEntityNoEntity = "__CSC_MSG_NO_SELECTED_ENTITY" |
|
static |
| const float conscience_core::bridging::commands::staticTmpHeight = 630000 |