LoggerROS Class
A ROS-specialized implementation of LoggerBase that publishes the error message on a topic and logs it through an rclcpp Logger. More...
Declaration
Included Headers
Base class
| class | LoggerBase |
|
Base class to allow Behaviors to report messages with detailed explanations to MoveIt Studio UI. More... | |
Public Constructors Index
| LoggerROS (const std::shared_ptr< rclcpp::Node > &node) | |
Public Member Functions Index
| void | publishMessage (const int32_t log_level, const std::string &details) override |
|
Publishes message to ROS topic and logs to console. More... | |
| void | publishMessage (const int32_t log_level, const std::string &source_name, const std::string &details) |
|
Function to publish a message. More... | |
Private Member Attributes Index
| rclcpp::Publisher< moveit_studio_agent_msgs::msg::Log >::SharedPtr | publisher_ |
|
Publisher for the log topic. More... | |
Description
A ROS-specialized implementation of LoggerBase that publishes the error message on a topic and logs it through an rclcpp Logger.
Definition at line 214 of file logger.hpp.
Public Constructors
LoggerROS()
| explicit |
Constructor for LoggerROS.
- Parameters
-
node rclcpp Node used when creating the log publisher.
Declaration at line 224 of file logger.hpp, definition at line 190 of file logger.cpp.
Public Member Functions
publishMessage()
| virtual |
Publishes message to ROS topic and logs to console.
- Parameters
-
log_level moveit_studio_agent_msgs::msg::Log::ERROR/WARN/INFO/DEBUG
details Contains the information message
Declaration at line 231 of file logger.hpp, definition at line 195 of file logger.cpp.
publishMessage()
|
Function to publish a message.
- Parameters
-
log_level moveit_studio_agent_msgs::msg::Log::ERROR/WARN/INFO/DEBUG
source_name Name used to identify the source of the log.
details Contains the information message
Declaration at line 218 of file logger.hpp, definition at line 72 of file logger.cpp.
Private Member Attributes
publisher_
|
Publisher for the log topic.
Definition at line 237 of file logger.hpp.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.15.0.