-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TaskComposerPipeline and improve task composer code coverage (#337)
- Loading branch information
1 parent
cdad44c
commit 5a1bcf3
Showing
55 changed files
with
2,795 additions
and
325 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
69 changes: 69 additions & 0 deletions
69
tesseract_task_composer/core/include/tesseract_task_composer/core/nodes/abort_task.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,69 @@ | ||
/** | ||
* @file abort_task.h | ||
* | ||
* @author Levi Armstrong | ||
* @date June 22, 2023 | ||
* @version TODO | ||
* @bug No known bugs | ||
* | ||
* @copyright Copyright (c) 2023, Levi Armstrong | ||
* | ||
* @par License | ||
* Software License Agreement (Apache License) | ||
* @par | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* @par | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#ifndef TESSERACT_TASK_COMPOSER_ABORT_TASK_H | ||
#define TESSERACT_TASK_COMPOSER_ABORT_TASK_H | ||
|
||
#include <tesseract_common/macros.h> | ||
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH | ||
#include <boost/serialization/access.hpp> | ||
TESSERACT_COMMON_IGNORE_WARNINGS_POP | ||
|
||
#include <tesseract_task_composer/core/task_composer_task.h> | ||
|
||
namespace tesseract_planning | ||
{ | ||
class TaskComposerPluginFactory; | ||
class AbortTask : public TaskComposerTask | ||
{ | ||
public: | ||
using Ptr = std::shared_ptr<AbortTask>; | ||
using ConstPtr = std::shared_ptr<const AbortTask>; | ||
using UPtr = std::unique_ptr<AbortTask>; | ||
using ConstUPtr = std::unique_ptr<const AbortTask>; | ||
|
||
AbortTask(); | ||
explicit AbortTask(std::string name, bool conditional); | ||
explicit AbortTask(std::string name, const YAML::Node& config, const TaskComposerPluginFactory& plugin_factory); | ||
~AbortTask() override = default; | ||
|
||
bool operator==(const AbortTask& rhs) const; | ||
bool operator!=(const AbortTask& rhs) const; | ||
|
||
protected: | ||
friend struct tesseract_common::Serialization; | ||
friend class boost::serialization::access; | ||
template <class Archive> | ||
void serialize(Archive& ar, const unsigned int version); // NOLINT | ||
|
||
TaskComposerNodeInfo::UPtr runImpl(TaskComposerInput& input, | ||
OptionalTaskComposerExecutor executor = std::nullopt) const override final; | ||
}; | ||
|
||
} // namespace tesseract_planning | ||
|
||
#include <boost/serialization/export.hpp> | ||
BOOST_CLASS_EXPORT_KEY2(tesseract_planning::AbortTask, "AbortTask") | ||
|
||
#endif // TESSERACT_TASK_COMPOSER_ABORT_TASK_H |
Oops, something went wrong.