mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-08 13:57:46 +08:00
feat: add SDK logging capabilities to tools and utilities
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <arpa/inet.h>
|
||||
#include <string_view>
|
||||
|
||||
namespace orbbec_camera {
|
||||
inline void LogFatal(const char* file, int line, const std::string& message) {
|
||||
@@ -163,6 +164,13 @@ rclcpp::Time fromUsToROSTime(uint64_t us);
|
||||
|
||||
std::string getObSDKVersion();
|
||||
|
||||
OBLogSeverity obLogSeverityFromString(const std::string_view& log_level);
|
||||
|
||||
std::string getRosLogDirectory();
|
||||
|
||||
std::string configureObSdkLoggerForTool(const std::string& tool_name,
|
||||
const std::string& log_level);
|
||||
|
||||
OBFormat OBFormatFromString(const std::string& format);
|
||||
|
||||
OBLiDARScanRate OBScanRateFromInt(const int rate);
|
||||
|
||||
Reference in New Issue
Block a user