初始化项目,包含fast_lio_ws和unitree_sdk2

This commit is contained in:
2026-10-12 15:01:52 +08:00
commit 8e16ecceba
1490 changed files with 232338 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
#ifndef __UT_LOG_BUFFER_HPP__
#define __UT_LOG_BUFFER_HPP__
#include <unitree/common/log/log_decl.hpp>
namespace unitree
{
namespace common
{
class LogBuffer
{
public:
explicit LogBuffer();
virtual ~LogBuffer();
virtual bool Append(const std::string& s);
virtual bool Get(std::string& s);
virtual bool Empty();
protected:
std::string mData;
};
typedef std::shared_ptr<LogBuffer> LogBufferPtr;
class LogBlockBuffer : public LogBuffer
{
public:
explicit LogBlockBuffer();
~LogBlockBuffer();
bool Append(const std::string& s);
bool Get(std::string& s);
bool Empty();
private:
Mutex mLock;
};
typedef std::shared_ptr<LogBlockBuffer> LogBlockBufferPtr;
}
}
#endif//__UT_LOG_BUFFER_HPP__