Skip to main content

LogMessage Class

Logs a user specified message via the LoggerROS class. ROS 2 log severity of message specified by log_level. More...

Declaration

class moveit_pro::behaviors::LogMessage { ... }

Included Headers

#include <log_message.hpp>

Base class

classSharedResourcesNode<BehaviorTreeNodeT>

The SharedResourcesNode class provides a BehaviorContext object when constructing a BehaviorTree.Cpp node. More...

Public Constructors Index

LogMessage (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > &shared_resources)

Public Member Functions Index

BT::NodeStatustick () override

When the message is actually logged. Implementation of BT::SyncActionNode::tick() More...

Public Static Functions Index

static BT::PortsListprovidedPorts ()
static BT::KeyValueVectormetadata ()

Description

Logs a user specified message via the LoggerROS class. ROS 2 log severity of message specified by log_level.

Data Port NamePort TypeObject Type
messageinputstd::string
log_levelinputstd::string

Definition at line 26 of file log_message.hpp.

Public Constructors

LogMessage()

moveit_pro::behaviors::LogMessage::LogMessage (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > & shared_resources)

Declaration at line 29 of file log_message.hpp, definition at line 48 of file log_message.cpp.

Public Member Functions

tick()

BT::NodeStatus moveit_pro::behaviors::LogMessage::tick ()

When the message is actually logged. Implementation of BT::SyncActionNode::tick()

Returns

Failure when a port was set incorrectly, Success otherwise.

Declaration at line 40 of file log_message.hpp, definition at line 67 of file log_message.cpp.

Public Static Functions

metadata()

BT::KeyValueVector moveit_pro::behaviors::LogMessage::metadata ()
static

Declaration at line 34 of file log_message.hpp, definition at line 62 of file log_message.cpp.

providedPorts()

BT::PortsList moveit_pro::behaviors::LogMessage::providedPorts ()
static

Declaration at line 32 of file log_message.hpp, definition at line 54 of file log_message.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.