29 lines
568 B
C++
29 lines
568 B
C++
#pragma once
|
|
|
|
#include "sensor/sensor_types.h"
|
|
|
|
#include <cstddef>
|
|
|
|
namespace borla {
|
|
|
|
class SensorMessageCodec final {
|
|
public:
|
|
static bool BuildTouch(
|
|
const TouchEvent& event,
|
|
char* output,
|
|
size_t capacity,
|
|
size_t* output_size);
|
|
static bool BuildImu(
|
|
const ImuBatch& batch,
|
|
char* output,
|
|
size_t capacity,
|
|
size_t* output_size);
|
|
static bool BuildGravity(
|
|
const GravityEvent& event,
|
|
char* output,
|
|
size_t capacity,
|
|
size_t* output_size);
|
|
};
|
|
|
|
} // namespace borla
|