Public Member Functions | Private Attributes | List of all members
BT::StatusChangeLogger Class Referenceabstract

#include <abstract_logger.h>

Inheritance diagram for BT::StatusChangeLogger:
Inheritance graph
[legend]

Public Member Functions

virtual void callback (BT::Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status)=0
 
bool enabled () const
 
void enableTransitionToIdle (bool enable)
 
virtual void flush ()=0
 
StatusChangeLoggeroperator= (const StatusChangeLogger &other)=delete
 
StatusChangeLoggeroperator= (StatusChangeLogger &&other)=default
 
void setEnabled (bool enabled)
 
void setTimestampType (TimestampType type)
 
bool showsTransitionToIdle () const
 
 StatusChangeLogger (const StatusChangeLogger &other)=delete
 
 StatusChangeLogger (StatusChangeLogger &&other)=default
 
 StatusChangeLogger (TreeNode *root_node)
 
virtual ~StatusChangeLogger ()=default
 

Private Attributes

std::mutex callback_mutex_
 
bool enabled_
 
BT::TimePoint first_timestamp_ = {}
 
bool show_transition_to_idle_
 
std::vector< TreeNode::StatusChangeSubscribersubscribers_
 
TimestampType type_
 

Detailed Description

Definition at line 15 of file abstract_logger.h.

Constructor & Destructor Documentation

◆ StatusChangeLogger() [1/3]

BT::StatusChangeLogger::StatusChangeLogger ( TreeNode root_node)
inline

Definition at line 69 of file abstract_logger.h.

◆ ~StatusChangeLogger()

virtual BT::StatusChangeLogger::~StatusChangeLogger ( )
virtualdefault

◆ StatusChangeLogger() [2/3]

BT::StatusChangeLogger::StatusChangeLogger ( const StatusChangeLogger other)
delete

◆ StatusChangeLogger() [3/3]

BT::StatusChangeLogger::StatusChangeLogger ( StatusChangeLogger &&  other)
default

Member Function Documentation

◆ callback()

virtual void BT::StatusChangeLogger::callback ( BT::Duration  timestamp,
const TreeNode node,
NodeStatus  prev_status,
NodeStatus  status 
)
pure virtual

◆ enabled()

bool BT::StatusChangeLogger::enabled ( ) const
inline

Definition at line 42 of file abstract_logger.h.

◆ enableTransitionToIdle()

void BT::StatusChangeLogger::enableTransitionToIdle ( bool  enable)
inline

Definition at line 53 of file abstract_logger.h.

◆ flush()

virtual void BT::StatusChangeLogger::flush ( )
pure virtual

◆ operator=() [1/2]

StatusChangeLogger& BT::StatusChangeLogger::operator= ( const StatusChangeLogger other)
delete

◆ operator=() [2/2]

StatusChangeLogger& BT::StatusChangeLogger::operator= ( StatusChangeLogger &&  other)
default

◆ setEnabled()

void BT::StatusChangeLogger::setEnabled ( bool  enabled)
inline

Definition at line 32 of file abstract_logger.h.

◆ setTimestampType()

void BT::StatusChangeLogger::setTimestampType ( TimestampType  type)
inline

Definition at line 37 of file abstract_logger.h.

◆ showsTransitionToIdle()

bool BT::StatusChangeLogger::showsTransitionToIdle ( ) const
inline

Definition at line 48 of file abstract_logger.h.

Member Data Documentation

◆ callback_mutex_

std::mutex BT::StatusChangeLogger::callback_mutex_
private

Definition at line 64 of file abstract_logger.h.

◆ enabled_

bool BT::StatusChangeLogger::enabled_
private

Definition at line 59 of file abstract_logger.h.

◆ first_timestamp_

BT::TimePoint BT::StatusChangeLogger::first_timestamp_ = {}
private

Definition at line 63 of file abstract_logger.h.

◆ show_transition_to_idle_

bool BT::StatusChangeLogger::show_transition_to_idle_
private

Definition at line 60 of file abstract_logger.h.

◆ subscribers_

std::vector<TreeNode::StatusChangeSubscriber> BT::StatusChangeLogger::subscribers_
private

Definition at line 61 of file abstract_logger.h.

◆ type_

TimestampType BT::StatusChangeLogger::type_
private

Definition at line 62 of file abstract_logger.h.


The documentation for this class was generated from the following file:


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:18