Go to the documentation of this file.
52 void flush()
override;
73 std::unique_ptr<PImpl>
_p;
void updateStatusBuffer()
std::unique_ptr< PImpl > _p
std::shared_ptr< Hook > Ptr
bool insertHook(Monitor::Hook::Ptr breakpoint)
void callback(Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override
bool removeHook(Position pos, uint16_t node_uid)
Monitor::Hook::Ptr getHook(Position pos, uint16_t node_uid)
Groot2Publisher(const BT::Tree &tree, unsigned server_port=1667)
Abstract base class for Behavior Tree Nodes.
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
std::chrono::high_resolution_clock::duration Duration
static pthread_mutex_t mutex
bool unlockBreakpoint(Position pos, uint16_t node_uid, NodeStatus result, bool remove)
The Groot2Publisher is used to create an interface between your BT.CPP executor and Groot2.
static std::mutex used_ports_mutex
std::vector< uint8_t > generateBlackboardsDump(const std::string &bb_list)
std::chrono::milliseconds maxHeartbeatDelay() const
Groot2Publisher & operator=(const Groot2Publisher &other)=delete
void enableAllHooks(bool enable)
void setMaxHeartbeatDelay(std::chrono::milliseconds delay)
setMaxHeartbeatDelay is used to tell the publisher when a connection with Groot2 should be cancelled,...
~Groot2Publisher() override
static std::set< unsigned > used_ports