 |
Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
|
Go to the documentation of this file.
5 std::cout << "[" << (X) << "]: " << (Y) << std::endl; \
19 #include <boost/crc.hpp>
bool receiverThreadRunning
ComputerPacket m_lastEcuPacket
std::chrono::steady_clock::time_point current_timestamp
void InitializeCommunication()
void TransmitPacket(SettingsPacket &packet)
This function transmits a packet to the ECU.
void onNewPacketReceived(const EcuPacket *const)
PublishMeasurementsCallback cb_
std::function< void(const EcuPacket *const, const std::array< std::chrono::duration< double, std::milli >, 10 > &)> PublishMeasurementsCallback
Callback function that processes an ECU packet.
boost::crc_32_type CRCType
std::shared_ptr< ICommunication > m_pCommunication
std::mutex mutex_on_packet
void init(PublishMeasurementsCallback cb)
Provides the handler with a connection to the ECUNode to communicate via ROS.
std::thread * receiverThread
std::chrono::steady_clock::time_point last_timestamp
std::array< std::chrono::duration< double, std::milli >, 10 > packet_differences
ComputerPacket m_computerPacket
uint32_t calculateChecksum(ComputerPacket const &packet)