15 #ifndef NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__LOG_ACTION_HPP_
16 #define NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__LOG_ACTION_HPP_
20 #include "behaviortree_cpp/action_node.h"
22 namespace nav2_behavior_tree
41 LogAction(
const std::string & name,
const BT::NodeConfiguration & config)
42 : BT::SyncActionNode(name, config) {}
53 BT::InputPort<std::string>(
"level",
"Log level: DEBUG, INFO, WARN, ERROR, or FATAL"),
54 BT::InputPort<std::string>(
"message",
"Message to log"),
63 BT::NodeStatus
tick()
override;
A BT::SyncActionNode that logs a message through the BT navigator's ROS logger.
LogAction(const std::string &name, const BT::NodeConfiguration &config)
A constructor for nav2_behavior_tree::LogAction.
BT::NodeStatus tick() override
Logs the input message at the specified level using the blackboard's node.
static BT::PortsList providedPorts()
Creates list of BT ports.