Base class to allow Behaviors to report messages with detailed explanations to MoveIt Studio UI.
More...
#include <logger.hpp>
|
virtual | ~LoggerBase ()=default |
|
virtual void | publishFailureMessage (const std::string &error_source_name, const std::string &details="", bool append=true)=0 |
| Virtual function to publish a failure message. More...
|
|
virtual void | publishWarnMessage (const std::string &source_name, const std::string &details="", bool append=true)=0 |
| Virtual function to publish a warning message. More...
|
|
virtual void | publishInfoMessage (const std::string &source_name, const std::string &details="", bool append=true)=0 |
| Virtual function to publish an info message. More...
|
|
virtual void | publishMessage (const int32_t log_level, const std::string &details, bool append_messages=true)=0 |
| Virtual generic function to publish a message. More...
|
|
virtual void | popMessages (const std::string &default_string="")=0 |
| Virtual function to propagate queued messages to UI. This function will be called at the end of an Objective. More...
|
|
virtual void | clearMessages ()=0 |
| Virtual function to clear stored messages. More...
|
|
Base class to allow Behaviors to report messages with detailed explanations to MoveIt Studio UI.
◆ ~LoggerBase()
virtual moveit_studio::behavior::LoggerBase::~LoggerBase |
( |
| ) |
|
|
virtualdefault |
◆ clearMessages()
virtual void moveit_studio::behavior::LoggerBase::clearMessages |
( |
| ) |
|
|
pure virtual |
◆ popMessages()
virtual void moveit_studio::behavior::LoggerBase::popMessages |
( |
const std::string & |
default_string = "" | ) |
|
|
pure virtual |
Virtual function to propagate queued messages to UI. This function will be called at the end of an Objective.
- Parameters
-
default_message | Optional string defining the message to emit if there are no stored messages. |
Implemented in moveit_studio::behavior::LoggerROS.
◆ publishFailureMessage()
virtual void moveit_studio::behavior::LoggerBase::publishFailureMessage |
( |
const std::string & |
error_source_name, |
|
|
const std::string & |
details = "" , |
|
|
bool |
append = true |
|
) |
| |
|
pure virtual |
Virtual function to publish a failure message.
- Parameters
-
error_source_name | Name used to identify the source of the failure. |
details | A detailed message describing the failure. For example, the contents of an exception's message. |
append_messages | If true, the message is queued and later published at the end of the Objective. The default value for this parameter is true. Assign it to false to propagate the error immediatedly to the UI |
Implemented in moveit_studio::behavior::LoggerROS.
◆ publishInfoMessage()
virtual void moveit_studio::behavior::LoggerBase::publishInfoMessage |
( |
const std::string & |
source_name, |
|
|
const std::string & |
details = "" , |
|
|
bool |
append = true |
|
) |
| |
|
pure virtual |
Virtual function to publish an info message.
- Parameters
-
source_name | Name used to identify the source of the info. |
details | A detailed message describing the information. |
append_messages | If true, the message is queued and later published at the end of the Objective. The default value for this parameter is true. Assign it to false to propagate the warning immediatedly to the UI |
Implemented in moveit_studio::behavior::LoggerROS.
◆ publishMessage()
virtual void moveit_studio::behavior::LoggerBase::publishMessage |
( |
const int32_t |
log_level, |
|
|
const std::string & |
details, |
|
|
bool |
append_messages = true |
|
) |
| |
|
pure virtual |
Virtual generic function to publish a message.
- Parameters
-
log_level | moveit_studio_agent_msgs::msg::ERROR/WARN/INFO |
details | Contains the information message |
append_messages | If true, store the message in a vector and the vector of messages is published at the end of the Objective. The default value for this parameter is true. Assign it to false to propagate the info immediatedly to the UI |
Implemented in moveit_studio::behavior::LoggerROS.
◆ publishWarnMessage()
virtual void moveit_studio::behavior::LoggerBase::publishWarnMessage |
( |
const std::string & |
source_name, |
|
|
const std::string & |
details = "" , |
|
|
bool |
append = true |
|
) |
| |
|
pure virtual |
Virtual function to publish a warning message.
- Parameters
-
source_name | Name used to identify the source of the warning. |
details | A detailed message describing the warning. |
append_messages | If true, the message is queued and later published at the end of the Objective. The default value for this parameter is true. Assign it to false to propagate the warning immediatedly to the UI |
Implemented in moveit_studio::behavior::LoggerROS.
The documentation for this class was generated from the following file: