Skip to content

Fault Service Interface

Function DescriptionC++ROS
Retrieve log messages

Retrieve Log Information

C++ Interface

Function:rcClientInterfaceLogUpdate

cpp
/**
 * @brief Retrieve robot log information.
 *
 * This function is used to obtain the log messages from the robot.
 *
 * @param log_list A reference to a string vector that will hold the log data.
 * @return bool Returns `true` if the retrieval is successful, `false` otherwise.
 */
bool rcClientInterfaceLogUpdate(std::vector<std::string> &log_list);

Example Usage:

cpp
std::vector<std::string> log_list;
bool success = rcClientInterfaceLogUpdate(log_list);
if (success) {
    std::cout << "Log Update Successful." << std::endl;
    // Output or process the log_list contents
} else {
    std::cout << "Failed to Update Log." << std::endl;
}

WARNING

⚠️ Notes

  • log_list must point to a valid std::vector<std::string> when calling this function.