3#include "behaviortree_cpp/loggers/abstract_logger.h"
4#include "behaviortree_cpp/loggers/groot2_protocol.h"
13
14
15
16
17
18
19
22 using Position = Monitor::
Hook::Position;
25 Groot2Publisher(
const BT::
Tree& tree,
unsigned server_port = 1667);
27 ~Groot2Publisher()
override;
36
37
38
39
40
41
44 std::chrono::milliseconds maxHeartbeatDelay()
const;
50 void flush()
override;
56 void updateStatusBuffer();
58 std::vector<uint8_t> generateBlackboardsDump(
const std::string& bb_list);
60 bool insertHook(Monitor::
Hook::Ptr breakpoint);
62 bool unlockBreakpoint(Position pos, uint16_t node_uid,
NodeStatus result,
bool remove);
64 bool removeHook(Position pos, uint16_t node_uid);
66 void removeAllHooks();
68 Monitor::
Hook::Ptr getHook(Position pos, uint16_t node_uid);
71 std::unique_ptr<PImpl> _p;
73 void enableAllHooks(
bool enable);
The Groot2Publisher is used to create an interface between your BT.CPP executor and Groot2.
Definition: groot2_publisher.h:21
void setMaxHeartbeatDelay(std::chrono::milliseconds delay)
setMaxHeartbeatDelay is used to tell the publisher when a connection with Groot2 should be cancelled,...
Definition: abstract_logger.h:16
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
Definition: bt_factory.h:96
Abstract base class for Behavior Tree Nodes.
Definition: tree_node.h:154
Definition: action_node.h:24
NodeStatus
Definition: basic_types.h:34
Definition: groot2_protocol.h:202