AutoAPMS
Streamlining behaviors in ROS 2
Loading...
Searching...
No Matches
mission_from_string.cpp
1// Copyright 2025 Robin Müller
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#include "auto_apms_mission/mission_builder_base.hpp"
16
17namespace auto_apms_mission
18{
19
27class MissionFromStringBuildHandler : public MissionBuildHandlerBase
28{
29public:
30 MissionFromStringBuildHandler(rclcpp::Node::SharedPtr ros_node_ptr, NodeLoader::SharedPtr tree_node_loader_ptr)
31 : MissionBuildHandlerBase("mission_from_string", ros_node_ptr, tree_node_loader_ptr)
32 {
33 }
34
35 MissionConfig createMissionConfig(const std::string & build_request) override final
36 {
37 return MissionConfig::decode(build_request);
38 }
39};
40
41} // namespace auto_apms_mission
42
Base class for behavior tree build handlers that are used to configure missions including fallback me...
Standard build handler for building a mission from an installed resource.
#define AUTO_APMS_BEHAVIOR_TREE_REGISTER_BUILD_HANDLER(type)
Macro for registering a behavior tree build handler plugin which may be loaded at runtime to build a ...
Mission design utilities incorporating behavior trees to model the complexity of arbitrary operations...
Configuration parameters for generic missions supported by AutoAPMS.