Skip to content

Commit 7fc24c5

Browse files
committed
Propagate node config to parent
Signed-off-by: redvinaa <[email protected]>
1 parent 0c9fe42 commit 7fc24c5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

include/behaviortree_cpp/controls/sequence_node.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ namespace BT
3434
class SequenceNode : public ControlNode
3535
{
3636
public:
37-
SequenceNode(const std::string& name, bool make_async = false);
37+
SequenceNode(
38+
const std::string& name, bool make_async = false,
39+
const NodeConfiguration& conf = NodeConfiguration());
3840

3941
virtual ~SequenceNode() override = default;
4042

src/controls/sequence_node.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
namespace BT
1717
{
18-
SequenceNode::SequenceNode(const std::string& name, bool make_async)
19-
: ControlNode::ControlNode(name, {}), current_child_idx_(0), asynch_(make_async)
18+
SequenceNode::SequenceNode(const std::string& name, bool make_async, const NodeConfiguration& conf)
19+
: ControlNode::ControlNode(name, conf), current_child_idx_(0), asynch_(make_async)
2020
{
2121
if(asynch_)
2222
setRegistrationID("AsyncSequence");

0 commit comments

Comments
 (0)