Skip to content

Commit

Permalink
Interaction now derived from action base
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryLeMasurier committed Apr 18, 2024
1 parent 0f9ebb2 commit da856c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions include/behaviortree_cpp/interaction_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@

namespace BT
{
class InteractionNode : public SyncActionNode
class InteractionNode : public ActionNodeBase
{
public:
InteractionNode(const std::string& name, const NodeConfig& config);
~InteractionNode() override = default;

/// throws if the derived class return RUNNING.
virtual NodeStatus executeTick() override;

virtual NodeType type() const override final
{
return NodeType::INTERACTION;
Expand Down
3 changes: 2 additions & 1 deletion src/interaction_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace BT
{
InteractionNode::InteractionNode(const std::string& name, const NodeConfig& config)
: SyncActionNode(name, config)
: ActionNodeBase(name, config)
{}

}

0 comments on commit da856c5

Please sign in to comment.