Template Function husarion_ugv_hardware_interfaces::GetByte

Function Documentation

template<typename T>
std::uint8_t husarion_ugv_hardware_interfaces::GetByte(const T data, const unsigned byte_no)

Get byte byte_no from data (byte_no has to be in [0;sizeof(T)] range)

Throws:

std::runtime_error – if byte_no is out of range