37 #ifndef HFL_INTERFACE_H_ 38 #define HFL_INTERFACE_H_ 45 #include <arpa/inet.h> 161 virtual double getFrameRate(
bool reg_format =
false)
const = 0;
179 virtual bool parseFrame(
int start_byte,
const std::vector<uint8_t>& packet) = 0;
197 virtual bool parseObjects(
int start_byte,
const std::vector<uint8_t>& packet) = 0;
231 std::shared_ptr<Frame>
frame();
235 #endif // HFL_INTERFACE_H_
virtual bool parseObjects(int start_byte, const std::vector< uint8_t > &packet)=0
udp_port_types
UDP ports types.
virtual bool processTelemetryData(const std::vector< uint8_t > &data)=0
virtual bool setFrameRate(double rate)=0
std::shared_ptr< hfl::Frame > frame_
Camera's frame configurations.
std::string parent_frame_
current static tf values
This file defines HFL cameras data and custom types.
std::string getModel() const
virtual bool processFrameData(const std::vector< uint8_t > &data)=0
uint16_t frame_data_port_
Camera's UDP frame data port.
double time_offset_
time offset
double global_offset_
global range offset
std::string version_
Current camera model.
This file defines the camera's Frame class.
virtual bool processObjectData(const std::vector< uint8_t > &data)=0
virtual double getFrameRate(bool reg_format=false) const =0
virtual bool processSliceData(const std::vector< uint8_t > &data)=0
std::string ip_address_
Camera's IP address.
virtual bool setGlobalRangeOffset(double offset)=0
std::shared_ptr< Frame > frame()
Base class for all of the HFL cameras.
virtual bool parseFrame(int start_byte, const std::vector< uint8_t > &packet)=0
static float big_to_native(float x)
bool publish_tf_
Current publish tf state.
std::string model_
Current camera model.
std::string getVersion() const