File tree Expand file tree Collapse file tree 4 files changed +35
-1
lines changed Expand file tree Collapse file tree 4 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class ActionNodeBase : public LeafNode
38
38
ActionNodeBase (const std::string& name, const NodeConfig& config);
39
39
~ActionNodeBase () override = default ;
40
40
41
- virtual NodeType type () const override final
41
+ virtual NodeType type () const override
42
42
{
43
43
return NodeType::ACTION;
44
44
}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ enum class NodeType
21
21
{
22
22
UNDEFINED = 0 ,
23
23
ACTION,
24
+ INTERACTION,
24
25
CONDITION,
25
26
ASSUMPTIONCHECKER,
26
27
CONTROL,
Original file line number Diff line number Diff line change
1
+ #ifndef INTERACTIONNODE_H
2
+ #define INTERACTIONNODE_H
3
+
4
+ #include " leaf_node.h"
5
+ #include " behaviortree_cpp/action_node.h"
6
+
7
+ namespace BT
8
+ {
9
+ class InteractionNode : public SyncActionNode
10
+ {
11
+ public:
12
+ InteractionNode (const std::string& name, const NodeConfig& config);
13
+ ~InteractionNode () override = default ;
14
+
15
+ // / throws if the derived class return RUNNING.
16
+ virtual NodeStatus executeTick () override ;
17
+
18
+ virtual NodeType type () const override final
19
+ {
20
+ return NodeType::INTERACTION;
21
+ }
22
+ };
23
+ } // namespace BT
24
+
25
+ #endif
Original file line number Diff line number Diff line change
1
+ #include " behaviortree_cpp/interaction_node.h"
2
+
3
+ namespace BT
4
+ {
5
+ InteractionNode::InteractionNode (const std::string& name, const NodeConfig& config)
6
+ : SyncActionNode(name, config)
7
+ {}
8
+ }
You can’t perform that action at this time.
0 commit comments