Learn Environment
folder_structure_constants.hpp
Go to the documentation of this file.
1 #ifndef FOLDER_STRUCTURE_CONSTANTS_HPP
2 #define FOLDER_STRUCTURE_CONSTANTS_HPP
3 
4 #include <QString>
5 #include <ros/package.h>
6 #include <ros/ros.h>
7 #include <QDebug>
8 
16 namespace FolderStructureConstants {
21  inline const QString CONVERTED_SCRIPT_PATH = "/converter/converted.py";
22 
27  inline const QString RESET_ROBOT_SCRIPT_PATH = "/task_pool/reset_robot.py";
28 
33  inline const QString TASK_DEFINITIONS_PATH = ":/task_pool/task_definitions.json";
34 
39  inline const QString TOPIC_DEFINITIONS_PATH = ":/task_pool/topic_definitions.json";
40 
45  inline const QString DIFFICULTY_LEVELS_DEFINITION_PATH = ":/task_pool/difficulty_levels.json";
46 
51  inline const QString SOLUTION_SCRIPTS_SOURCE_PATH = "/task_pool/solution_scripts";
52 
57  inline const QString EVALUATION_SCRIPTS_SOURCE_PATH = "/task_pool/evaluation_scripts";
58 
63  inline const QString USER_WORKSPACE = "/tasks";
64 
69  inline const QString PACKAGE_NAME = "learn_environment";
70 
80  inline QString getPackagePath() {
81  try {
82  return QString::fromStdString(ros::package::getPath(PACKAGE_NAME.toStdString()));
83  } catch (...) {
84  qCritical() << "An error occurred while retrieving the package path for" << PACKAGE_NAME;
85  return QString();
86  }
87  }
88 }
89 
90 #endif // FOLDER_STRUCTURE_CONSTANTS_HPP
FolderStructureConstants::USER_WORKSPACE
const QString USER_WORKSPACE
Path to the user workspace directory. Adjust it in devconatiner.json if changed.
Definition: folder_structure_constants.hpp:63
FolderStructureConstants::DIFFICULTY_LEVELS_DEFINITION_PATH
const QString DIFFICULTY_LEVELS_DEFINITION_PATH
Definition: folder_structure_constants.hpp:45
FolderStructureConstants::RESET_ROBOT_SCRIPT_PATH
const QString RESET_ROBOT_SCRIPT_PATH
Path to the reset robot script.
Definition: folder_structure_constants.hpp:27
FolderStructureConstants::TOPIC_DEFINITIONS_PATH
const QString TOPIC_DEFINITIONS_PATH
Path to the topic definitions json.
Definition: folder_structure_constants.hpp:39
FolderStructureConstants
Contains constants related to the folder structure of the learn_environment package.
FolderStructureConstants::TASK_DEFINITIONS_PATH
const QString TASK_DEFINITIONS_PATH
Path to the task definitions json.
Definition: folder_structure_constants.hpp:33
FolderStructureConstants::getPackagePath
QString getPackagePath()
Retrieves the path of the package.
Definition: folder_structure_constants.hpp:80
FolderStructureConstants::SOLUTION_SCRIPTS_SOURCE_PATH
const QString SOLUTION_SCRIPTS_SOURCE_PATH
Path to the solution scripts source directory.
Definition: folder_structure_constants.hpp:51
FolderStructureConstants::EVALUATION_SCRIPTS_SOURCE_PATH
const QString EVALUATION_SCRIPTS_SOURCE_PATH
Path to the evaluation scripts source directory.
Definition: folder_structure_constants.hpp:57
FolderStructureConstants::CONVERTED_SCRIPT_PATH
const QString CONVERTED_SCRIPT_PATH
Path to the converted script.
Definition: folder_structure_constants.hpp:21
FolderStructureConstants::PACKAGE_NAME
const QString PACKAGE_NAME
Name of the package.
Definition: folder_structure_constants.hpp:69