AutoAPMS
Resilient Robot Mission Management
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
Functions
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Variables
Typedefs
Enumerations
Files
File List
Examples
▼
AutoAPMS
C++ API Documentation
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
►
auto_apms_behavior_tree
▼
auto_apms_behavior_tree_core
▼
include
▼
auto_apms_behavior_tree_core
►
node
▼
tree
script.hpp
tree_document.hpp
tree_resource.hpp
builder.hpp
convert.hpp
definitions.hpp
exceptions.hpp
node.hpp
►
src
►
auto_apms_examples
►
auto_apms_mission
►
auto_apms_px4
►
auto_apms_simulation
►
auto_apms_util
►
Examples
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
Pages
Loading...
Searching...
No Matches
script.hpp
1
// Copyright 2024 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 <string>
16
#include <vector>
17
18
namespace
auto_apms_behavior_tree::core
19
{
20
29
class
Script
30
{
31
friend
class
TreeDocument;
32
33
public
:
37
Script
() =
default
;
38
44
Script
(std::vector<std::string> expressions);
45
51
Script
(
const
std::string &
str
);
52
58
Script
(
const
char
*
str
);
59
60
Script
& operator+=(
const
Script
& rhs);
61
62
friend
Script
operator+(
Script
lhs,
const
Script
& rhs);
63
68
std::string
str
()
const
;
69
70
private
:
71
std::vector<std::string> expressions_;
72
};
29
class
Script
{
…
};
73
74
}
// namespace auto_apms_behavior_tree::core
auto_apms_behavior_tree::core::Script::Script
Script()=default
Create an empty script.
auto_apms_behavior_tree::core::Script::str
std::string str() const
Concatenate all expressions of this instance to a single string.
Definition
script.cpp:41
auto_apms_behavior_tree::core
Core API for AutoAPMS's behavior tree implementation.
Definition
builder.hpp:30
auto_apms_behavior_tree_core
include
auto_apms_behavior_tree_core
tree
script.hpp
Generated by
1.13.2