MoveIt Pro Behavior
Core Behaviors for MoveIt Pro
moveit_studio::behaviors::LogMessage Class Reference

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

#include <log_message.hpp>

Inheritance diagram for moveit_studio::behaviors::LogMessage:
Collaboration diagram for moveit_studio::behaviors::LogMessage:

Public Member Functions

 LogMessage (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_studio::behaviors::BehaviorContext > &shared_resources)
 
BT::NodeStatus tick () override
 When the message is actually logged. Implementation of BT::SyncActionNode::tick() More...
 
- Public Member Functions inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode >
 SharedResourcesNode (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)
 Constructor for SharedResourcesNode. Called by BT::BehaviorTreeFactory when creating a new behavior tree containing this node. More...
 

Static Public Member Functions

static BT::PortsList providedPorts ()
 
static BT::KeyValueVector metadata ()
 

Additional Inherited Members

- Protected Attributes inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode >
std::shared_ptr< BehaviorContextshared_resources_
 

Detailed Description

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

Data Port Name Port Type Object Type
message input std::string
log_level input std::string

Constructor & Destructor Documentation

◆ LogMessage()

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

Member Function Documentation

◆ metadata()

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

◆ providedPorts()

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

◆ tick()

BT::NodeStatus moveit_studio::behaviors::LogMessage::tick ( )
override

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

Returns
Failure when a port was set incorrectly, Success otherwise.

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