Class Input

Inheritance Relationships

Derived Types

Class Documentation

class Input

Subclassed by robosense::lidar::InputPcap, robosense::lidar::InputPcapJumbo, robosense::lidar::InputRaw, robosense::lidar::InputSock, robosense::lidar::InputSock, robosense::lidar::InputSock

Public Functions

inline Input(const RSInputParam &input_param)
inline void regCallback(const std::function<void(const Error&)> &cb_excep, const std::function<std::shared_ptr<Buffer>(size_t)> &cb_get_pkt, const std::function<void(std::shared_ptr<Buffer>, bool)> &cb_put_pkt)
inline void regPcapSplitFrameCallback(const std::function<bool(const uint8_t*)> &cb_pcap_split_frame)
virtual bool init() = 0
virtual bool start() = 0
inline virtual void stop()
inline virtual ~Input()

Protected Functions

inline void pushPacket(std::shared_ptr<Buffer> pkt, bool stuffed = true)

Protected Attributes

RSInputParam input_param_
std::function<std::shared_ptr<Buffer>(size_t size)> cb_get_pkt_
std::function<void(std::shared_ptr<Buffer>, bool)> cb_put_pkt_
std::function<void(const Error&)> cb_excep_
std::function<bool(const uint8_t*)> cb_pcap_split_frame_
std::thread recv_thread_
bool to_exit_recv_
bool init_flag_
bool start_flag_