Livox: Add new loadable libs for Protocolv1 and gen1 lidars
We've added two new libs: * commonLibs/livoxProto1 * senseApis/livoxGen1 They currently get to the point of detecting my Livox Avia on the network over UDP. This was really easy to get done in one night using boost::asio and Cursor, honestly.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#ifndef LIVOXPROTO1_CORE_H
|
||||
#define LIVOXPROTO1_CORE_H
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include "livoxProto1Protocol.h"
|
||||
|
||||
namespace livoxProto1 {
|
||||
|
||||
class Device
|
||||
{
|
||||
public:
|
||||
Device(const comms::DiscoveredDevice &discoveredDevice);
|
||||
~Device() = default;
|
||||
|
||||
public:
|
||||
comms::DiscoveredDevice discoveredDevice;
|
||||
};
|
||||
|
||||
class DeviceManager
|
||||
{
|
||||
public:
|
||||
DeviceManager();
|
||||
~DeviceManager() = default;
|
||||
|
||||
static void deviceGoneAwayInd(const comms::DiscoveredDevice &device);
|
||||
|
||||
public:
|
||||
std::vector<Device> devices;
|
||||
comms::BroadcastListener broadcastListener;
|
||||
};
|
||||
|
||||
void main(const std::shared_ptr<smo::ComponentThread> &componentThread);
|
||||
void exit(void);
|
||||
|
||||
} // namespace livoxProto1
|
||||
|
||||
#endif // LIVOXPROTO1_CORE_H
|
||||
Reference in New Issue
Block a user