Nav2 Navigation Stack - rolling
main
ROS 2 Navigation Stack
|
A class to publish BT logs on BT status change. More...
#include <nav2_behavior_tree/include/nav2_behavior_tree/ros_topic_logger.hpp>
Public Member Functions | |
RosTopicLogger (const nav2::LifecycleNode::WeakPtr &ros_node, const BT::Tree &tree) | |
A constructor for nav2_behavior_tree::RosTopicLogger. More... | |
void | callback (BT::Duration timestamp, const BT::TreeNode &node, BT::NodeStatus prev_status, BT::NodeStatus status) override |
Callback function which is called each time BT changes status. More... | |
void | flush () override |
Clear log buffer if any. | |
A class to publish BT logs on BT status change.
Definition at line 35 of file ros_topic_logger.hpp.
|
inline |
A constructor for nav2_behavior_tree::RosTopicLogger.
ros_node | Weak pointer to parent nav2::LifecycleNode |
tree | BT to monitor |
Definition at line 43 of file ros_topic_logger.hpp.
|
inlineoverride |
Callback function which is called each time BT changes status.
timestamp | Timestamp of BT status change |
node | Node that changed status |
prev_status | Previous status of the node |
status | Current status of the node |
Definition at line 60 of file ros_topic_logger.hpp.