AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
Variables
constants.hpp File Reference

Go to the source code of this file.

Variables

static const short int CHECK_USAGE_ERROR = 1
 
static const char * CHECK_USAGE_SCOPE = "usage"
 
static const short int LOAD_IMAGE_ERROR = 2
 
static const char * LOAD_IMAGE_SCOPE = "Could not open or find the image"
 
static const short int SAVE_IMAGE_ERROR = 3
 
static const char * SAVE_IMAGE_SCOPE = "Could not save the image on disk"
 
static const short int LOAD_JSON_ERROR = 4
 
static const char * LOAD_JSON_SCOPE = "Could not open or find the JSON file"
 
static const short int RS_CAMERA_ERROR = 5
 
static const char * RS_CAMERA_SCOPE = "Troubles during initialization of RealSense Camera"
 
static const short int FACADE_SINGLETON_NULLPTR_ERROR = 6
 
static const char * FACADE_SINGLETON_NULLPTR_SCOPE = "FacadeSingleton::getInstance() returns nullptr"
 
static const short int USAGE_MANAGER_NULLPTR_ERROR = 7
 
static const char * USAGE_MANAGER_NULLPTR_SCOPE = "UsageManager::getInstance() returns nullptr"
 
static const short int RDKAFKA_GET_KEYS_FROM_JSON_ERROR = 8
 
static const char * RDKAFKA_GET_KEYS_FROM_JSON_SCOPE = "KafkaManager::loadConfigurationGroup() error during g_key_file_get_keys()"
 
static const short int RDKAFKA_GET_KEY_FROM_JSON_ERROR = 9
 
static const char * RDKAFKA_GET_KEY_FROM_JSON_SCOPE = "KafkaManager::loadConfigurationGroup() error during g_key_file_get_string()"
 
static const short int RDKAFKA_CONF_SET_ERROR = 10
 
static const char * RDKAFKA_CONF_SET_SCOPE = "KafkaManager::loadConfigurationGroup() error during rd_kafka_conf_set()"
 
static const short int NEW_ALLOC_ERROR = 11
 
static const char * NEW_ALLOC_SCOPE = "Error while allocating dynamic memory with new."
 
static const short int ESC_KEY = 27
 
static const float depth_min = 0.10
 
static const float depth_max = 6.0
 
static const char * JSON_FILE_PATH = "skeletonsPoints3D.json"
 
static const char * CONF_FILE_PATH = "conf.conf"
 
static const short int programNameOffset = 0
 
static const short int openPoseFolderOffset = 1
 
static const short int openPoseExecuteCommandOffset = 2
 
static const short int imagesFolderOffset = 3
 
static const short int outputFolderOffset = 4
 
static const short int totalFileParameters = 5
 
static const short int openPoseBodyKeyPointsNumber = 25
 
static const bool NOT_FIRST_BOOT = false
 
static const bool FIRST_BOOT = true
 

Variable Documentation

◆ CHECK_USAGE_ERROR

const short int CHECK_USAGE_ERROR = 1
static

Definition at line 17 of file constants.hpp.

Referenced by UsageManager::checkUsage().

◆ CHECK_USAGE_SCOPE

const char* CHECK_USAGE_SCOPE = "usage"
static

Definition at line 18 of file constants.hpp.

Referenced by UsageManager::checkUsage().

◆ CONF_FILE_PATH

const char* CONF_FILE_PATH = "conf.conf"
static

Definition at line 59 of file constants.hpp.

Referenced by FacadeSingleton::FacadeSingleton().

◆ depth_max

const float depth_max = 6.0
static

Definition at line 56 of file constants.hpp.

◆ depth_min

const float depth_min = 0.10
static

Definition at line 55 of file constants.hpp.

◆ ESC_KEY

const short int ESC_KEY = 27
static

Definition at line 53 of file constants.hpp.

◆ FACADE_SINGLETON_NULLPTR_ERROR

const short int FACADE_SINGLETON_NULLPTR_ERROR = 6
static

◆ FACADE_SINGLETON_NULLPTR_SCOPE

const char* FACADE_SINGLETON_NULLPTR_SCOPE = "FacadeSingleton::getInstance() returns nullptr"
static

◆ FIRST_BOOT

const bool FIRST_BOOT = true
static

Definition at line 71 of file constants.hpp.

Referenced by FacadeSingleton::startEnvironment().

◆ imagesFolderOffset

const short int imagesFolderOffset = 3
static

◆ JSON_FILE_PATH

const char* JSON_FILE_PATH = "skeletonsPoints3D.json"
static

Definition at line 58 of file constants.hpp.

Referenced by OutputManagerJSON::createJSON().

◆ LOAD_IMAGE_ERROR

const short int LOAD_IMAGE_ERROR = 2
static

Definition at line 20 of file constants.hpp.

Referenced by ImageManager::loadImage().

◆ LOAD_IMAGE_SCOPE

const char* LOAD_IMAGE_SCOPE = "Could not open or find the image"
static

Definition at line 21 of file constants.hpp.

Referenced by ImageManager::loadImage().

◆ LOAD_JSON_ERROR

const short int LOAD_JSON_ERROR = 4
static

Definition at line 26 of file constants.hpp.

◆ LOAD_JSON_SCOPE

const char* LOAD_JSON_SCOPE = "Could not open or find the JSON file"
static

Definition at line 27 of file constants.hpp.

◆ NEW_ALLOC_ERROR

const short int NEW_ALLOC_ERROR = 11
static

◆ NEW_ALLOC_SCOPE

const char* NEW_ALLOC_SCOPE = "Error while allocating dynamic memory with new."
static

◆ NOT_FIRST_BOOT

const bool NOT_FIRST_BOOT = false
static

Definition at line 70 of file constants.hpp.

◆ openPoseBodyKeyPointsNumber

const short int openPoseBodyKeyPointsNumber = 25
static

◆ openPoseExecuteCommandOffset

const short int openPoseExecuteCommandOffset = 2
static

Definition at line 63 of file constants.hpp.

Referenced by OpenPoseCommand::setCommand().

◆ openPoseFolderOffset

const short int openPoseFolderOffset = 1
static

Definition at line 62 of file constants.hpp.

Referenced by OpenPoseCommand::setCommand().

◆ outputFolderOffset

const short int outputFolderOffset = 4
static

◆ programNameOffset

const short int programNameOffset = 0
static

Definition at line 61 of file constants.hpp.

Referenced by UsageManager::checkUsage().

◆ RDKAFKA_CONF_SET_ERROR

const short int RDKAFKA_CONF_SET_ERROR = 10
static

Definition at line 44 of file constants.hpp.

Referenced by KafkaManager::loadConfigurationGroup().

◆ RDKAFKA_CONF_SET_SCOPE

const char* RDKAFKA_CONF_SET_SCOPE = "KafkaManager::loadConfigurationGroup() error during rd_kafka_conf_set()"
static

Definition at line 45 of file constants.hpp.

Referenced by KafkaManager::loadConfigurationGroup().

◆ RDKAFKA_GET_KEY_FROM_JSON_ERROR

const short int RDKAFKA_GET_KEY_FROM_JSON_ERROR = 9
static

Definition at line 41 of file constants.hpp.

Referenced by KafkaManager::loadConfigurationGroup().

◆ RDKAFKA_GET_KEY_FROM_JSON_SCOPE

const char* RDKAFKA_GET_KEY_FROM_JSON_SCOPE = "KafkaManager::loadConfigurationGroup() error during g_key_file_get_string()"
static

Definition at line 42 of file constants.hpp.

Referenced by KafkaManager::loadConfigurationGroup().

◆ RDKAFKA_GET_KEYS_FROM_JSON_ERROR

const short int RDKAFKA_GET_KEYS_FROM_JSON_ERROR = 8
static

Definition at line 38 of file constants.hpp.

Referenced by KafkaManager::loadConfigurationGroup().

◆ RDKAFKA_GET_KEYS_FROM_JSON_SCOPE

const char* RDKAFKA_GET_KEYS_FROM_JSON_SCOPE = "KafkaManager::loadConfigurationGroup() error during g_key_file_get_keys()"
static

Definition at line 39 of file constants.hpp.

Referenced by KafkaManager::loadConfigurationGroup().

◆ RS_CAMERA_ERROR

const short int RS_CAMERA_ERROR = 5
static

Definition at line 29 of file constants.hpp.

◆ RS_CAMERA_SCOPE

const char* RS_CAMERA_SCOPE = "Troubles during initialization of RealSense Camera"
static

Definition at line 30 of file constants.hpp.

◆ SAVE_IMAGE_ERROR

const short int SAVE_IMAGE_ERROR = 3
static

Definition at line 23 of file constants.hpp.

Referenced by ImageManager::saveImage().

◆ SAVE_IMAGE_SCOPE

const char* SAVE_IMAGE_SCOPE = "Could not save the image on disk"
static

Definition at line 24 of file constants.hpp.

Referenced by ImageManager::saveImage().

◆ totalFileParameters

const short int totalFileParameters = 5
static

Definition at line 66 of file constants.hpp.

Referenced by FacadeSingleton::FacadeSingleton().

◆ USAGE_MANAGER_NULLPTR_ERROR

const short int USAGE_MANAGER_NULLPTR_ERROR = 7
static

◆ USAGE_MANAGER_NULLPTR_SCOPE

const char* USAGE_MANAGER_NULLPTR_SCOPE = "UsageManager::getInstance() returns nullptr"
static