ROS_Workspace/src/btree/src/nodes/InterruptableSequence.h
2023-04-20 20:21:38 +00:00

30 lines
603 B
C++

//
// Created by bastian on 01.04.22.
//
#ifndef BUILD_INTERRUPTABLESEQUENCE_H
#define BUILD_INTERRUPTABLESEQUENCE_H
#include <behaviortree_cpp_v3/control_node.h>
namespace BT {
class InterruptableSequence : public ControlNode{
public:
InterruptableSequence(const std::string &name, const NodeConfiguration &config);
~InterruptableSequence() override = default;
void halt() override;
static PortsList providedPorts();
BT::NodeStatus tick() override;
private:
unsigned long position=0;
};
}
#endif //BUILD_INTERRUPTABLESEQUENCE_H