-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
207dcc8
commit 4062cc3
Showing
58 changed files
with
2,136 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
common/include/tesseract_qt/common/events/task_composer_events.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
/** | ||
* @author Levi Armstrong <[email protected]> | ||
* | ||
* @copyright Copyright (C) 2024 Levi Armstrong <[email protected]> | ||
* | ||
* @par License | ||
* GNU Lesser General Public License Version 3, 29 June 2007 | ||
* @par | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* @par | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* @par | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
#ifndef TESSERACT_QT_COMMON_TASK_COMPOSER_EVENTS_H | ||
#define TESSERACT_QT_COMMON_TASK_COMPOSER_EVENTS_H | ||
|
||
#include <tesseract_command_language/fwd.h> | ||
#include <tesseract_qt/common/events/event_type.h> | ||
#include <tesseract_qt/common/events/component_events.h> | ||
#include <tesseract_common/filesystem.h> | ||
|
||
namespace tesseract_gui::events | ||
{ | ||
class TaskComposerLoadConfig : public ComponentEvent | ||
{ | ||
public: | ||
TaskComposerLoadConfig(std::shared_ptr<const ComponentInfo> component_info, std::string resource_path); | ||
~TaskComposerLoadConfig() override; | ||
|
||
const std::string& getResourcePath() const; | ||
|
||
/** @brief Unique type for this event. */ | ||
static const QEvent::Type kType = QEvent::Type(EventType::TASK_COMPOSER_LOAD_CONFIG); | ||
|
||
private: | ||
std::string resource_path_; | ||
}; | ||
|
||
class TaskComposerLoadLog : public ComponentEvent | ||
{ | ||
public: | ||
TaskComposerLoadLog(std::shared_ptr<const ComponentInfo> component_info, | ||
std::string resource_path, | ||
std::string ns = ""); | ||
~TaskComposerLoadLog() override; | ||
|
||
const std::string& getResourcePath() const; | ||
const std::string& getNamespace() const; | ||
|
||
/** @brief Unique type for this event. */ | ||
static const QEvent::Type kType = QEvent::Type(EventType::TASK_COMPOSER_LOAD_LOG); | ||
|
||
private: | ||
std::string resource_path_; | ||
std::string ns_; | ||
}; | ||
|
||
class TaskComposerSaveLog : public ComponentEvent | ||
{ | ||
public: | ||
TaskComposerSaveLog(std::shared_ptr<const ComponentInfo> component_info, std::string save_path); | ||
~TaskComposerSaveLog() override; | ||
|
||
const std::string& getSavePath() const; | ||
|
||
/** @brief Unique type for this event. */ | ||
static const QEvent::Type kType = QEvent::Type(EventType::TASK_COMPOSER_SAVE_LOG); | ||
|
||
private: | ||
std::string save_path_; | ||
}; | ||
|
||
class TaskComposerPlotDotgraph : public ComponentEvent | ||
{ | ||
public: | ||
TaskComposerPlotDotgraph(std::shared_ptr<const ComponentInfo> component_info); | ||
~TaskComposerPlotDotgraph() override; | ||
|
||
/** @brief Unique type for this event. */ | ||
static const QEvent::Type kType = QEvent::Type(EventType::TASK_COMPOSER_PLOT_DOTGRAPH); | ||
}; | ||
|
||
class TaskComposerSetProfiles : public ComponentEvent | ||
{ | ||
public: | ||
TaskComposerSetProfiles(std::shared_ptr<const ComponentInfo> component_info, | ||
std::shared_ptr<tesseract_planning::ProfileDictionary> profiles); | ||
~TaskComposerSetProfiles() override; | ||
|
||
std::shared_ptr<tesseract_planning::ProfileDictionary> getProfiles() const; | ||
|
||
/** @brief Unique type for this event. */ | ||
static const QEvent::Type kType = QEvent::Type(EventType::TASK_COMPOSER_SET_PROFILES); | ||
|
||
private: | ||
std::shared_ptr<tesseract_planning::ProfileDictionary> profiles_; | ||
}; | ||
} // namespace tesseract_gui::events | ||
|
||
#endif // TESSERACT_QT_COMMON_TASK_COMPOSER_EVENTS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/** | ||
* @author Levi Armstrong <[email protected]> | ||
* | ||
* @copyright Copyright (C) 2024 Levi Armstrong <[email protected]> | ||
* | ||
* @par License | ||
* GNU Lesser General Public License Version 3, 29 June 2007 | ||
* @par | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* @par | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* @par | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
|
||
#include <tesseract_qt/common/events/task_composer_events.h> | ||
|
||
namespace tesseract_gui::events | ||
{ | ||
TaskComposerLoadConfig::TaskComposerLoadConfig(std::shared_ptr<const ComponentInfo> component_info, | ||
std::string resource_path) | ||
: ComponentEvent(std::move(component_info), kType), resource_path_(std::move(resource_path)) | ||
{ | ||
} | ||
|
||
TaskComposerLoadConfig::~TaskComposerLoadConfig() = default; | ||
const std::string& TaskComposerLoadConfig::getResourcePath() const { return resource_path_; } | ||
|
||
////////////////////////////////////////////////////// | ||
|
||
TaskComposerLoadLog::TaskComposerLoadLog(std::shared_ptr<const ComponentInfo> component_info, | ||
std::string resource_path, | ||
std::string ns) | ||
: ComponentEvent(std::move(component_info), kType), resource_path_(std::move(resource_path)), ns_(std::move(ns)) | ||
{ | ||
} | ||
|
||
TaskComposerLoadLog::~TaskComposerLoadLog() = default; | ||
const std::string& TaskComposerLoadLog::getResourcePath() const { return resource_path_; } | ||
const std::string& TaskComposerLoadLog::getNamespace() const { return ns_; } | ||
|
||
////////////////////////////////////////////////////// | ||
|
||
TaskComposerSaveLog::TaskComposerSaveLog(std::shared_ptr<const ComponentInfo> component_info, std::string save_path) | ||
: ComponentEvent(std::move(component_info), kType), save_path_(std::move(save_path)) | ||
{ | ||
} | ||
|
||
TaskComposerSaveLog::~TaskComposerSaveLog() = default; | ||
const std::string& TaskComposerSaveLog::getSavePath() const { return save_path_; } | ||
|
||
////////////////////////////////////////////////////// | ||
|
||
TaskComposerPlotDotgraph::TaskComposerPlotDotgraph(std::shared_ptr<const ComponentInfo> component_info) | ||
: ComponentEvent(std::move(component_info), kType) | ||
{ | ||
} | ||
|
||
TaskComposerPlotDotgraph::~TaskComposerPlotDotgraph() = default; | ||
|
||
////////////////////////////////////////////////////// | ||
|
||
TaskComposerSetProfiles::TaskComposerSetProfiles(std::shared_ptr<const ComponentInfo> component_info, | ||
std::shared_ptr<tesseract_planning::ProfileDictionary> profiles) | ||
: ComponentEvent(std::move(component_info), kType), profiles_(std::move(profiles)) | ||
{ | ||
} | ||
|
||
TaskComposerSetProfiles::~TaskComposerSetProfiles() = default; | ||
std::shared_ptr<tesseract_planning::ProfileDictionary> TaskComposerSetProfiles::getProfiles() const | ||
{ | ||
return profiles_; | ||
} | ||
} // namespace tesseract_gui::events |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
find_package(tesseract_support REQUIRED) | ||
find_package(tesseract_urdf REQUIRED) | ||
|
||
add_executable(${PROJECT_NAME}_joint_state_slider_demo joint_state_slider_demo.cpp) | ||
target_link_libraries(${PROJECT_NAME}_joint_state_slider_demo | ||
PRIVATE ${PROJECT_NAME}_joint_state_slider tesseract::tesseract_support tesseract::tesseract_urdf) | ||
target_link_libraries(${PROJECT_NAME}_joint_state_slider_demo PRIVATE ${PROJECT_NAME}_joint_state_slider | ||
tesseract::tesseract_urdf) | ||
|
||
install_targets(TARGETS ${PROJECT_NAME}_joint_state_slider_demo) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
find_package(tesseract_support REQUIRED) | ||
find_package(tesseract_urdf REQUIRED) | ||
|
||
add_executable(${PROJECT_NAME}_kinematic_groups_demo kinematic_group_demo.cpp) | ||
target_link_libraries(${PROJECT_NAME}_kinematic_groups_demo PRIVATE ${PROJECT_NAME}_kinematic_groups_widgets) | ||
|
||
add_executable(${PROJECT_NAME}_groups_joint_states_demo groups_joint_states_demo.cpp) | ||
target_link_libraries( | ||
${PROJECT_NAME}_groups_joint_states_demo PRIVATE ${PROJECT_NAME}_kinematic_groups_widgets | ||
tesseract::tesseract_support tesseract::tesseract_urdf) | ||
target_link_libraries(${PROJECT_NAME}_groups_joint_states_demo PRIVATE ${PROJECT_NAME}_kinematic_groups_widgets | ||
tesseract::tesseract_urdf) | ||
|
||
install_targets(TARGETS ${PROJECT_NAME}_kinematic_groups_demo ${PROJECT_NAME}_groups_joint_states_demo) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.