Learn Environment
Loading...
Searching...
No Matches
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
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
Contains constants related to the folder structure of the learn_environment package.
const QString DIFFICULTY_LEVELS_DEFINITION_PATH
Definition folder_structure_constants.hpp:45
const QString CONVERTED_SCRIPT_PATH
Path to the converted script.
Definition folder_structure_constants.hpp:21
const QString TASK_DEFINITIONS_PATH
Path to the task definitions json.
Definition folder_structure_constants.hpp:33
const QString RESET_ROBOT_SCRIPT_PATH
Path to the reset robot script.
Definition folder_structure_constants.hpp:27
QString getPackagePath()
Retrieves the path of the package.
Definition folder_structure_constants.hpp:80
const QString PACKAGE_NAME
Name of the package.
Definition folder_structure_constants.hpp:69
const QString USER_WORKSPACE
Path to the user workspace directory. Adjust it in devconatiner.json if changed.
Definition folder_structure_constants.hpp:63
const QString TOPIC_DEFINITIONS_PATH
Path to the topic definitions json.
Definition folder_structure_constants.hpp:39
const QString SOLUTION_SCRIPTS_SOURCE_PATH
Path to the solution scripts source directory.
Definition folder_structure_constants.hpp:51
const QString EVALUATION_SCRIPTS_SOURCE_PATH
Path to the evaluation scripts source directory.
Definition folder_structure_constants.hpp:57