File dds_to_autonomy_msg_converter.h
Last update: 22.04.2026Location: autonomy/communication/utils/dds_to_autonomy_msg_converter.h
Namespaces
- simulation_framework
- simulation_framework::autonomy
- simulation_framework::autonomy::communication
- simulation_framework::autonomy::communication::utils
Includes
- autonomy/communication/messages/autonomy_msg.h
- core/message/rtidds/generic_bytes/generic_bytes.hpp
-
Source
#ifndef SIMFWK_AUTONOMY_AUTONOMY_COMMUNICATION_UTILS_DDSTOAUTONOMYMSGCONVERTER_H
#define SIMFWK_AUTONOMY_AUTONOMY_COMMUNICATION_UTILS_DDSTOAUTONOMYMSGCONVERTER_H
#include "autonomy/communication/messages/autonomy_msg.h"
#include "core/message/rtidds/generic_bytes/generic_bytes.hpp"
#include <string>
namespace simulation_framework
{
namespace autonomy
{
namespace communication
{
namespace utils
{
rtidds::GenericBytesMessage ConvertAutonomyMsgToGenericBytes(const int frame_counter,
const std::string& header_name,
const messages::AutonomyMsg& msg);
void ConvertGenericBytesToAutonomyMsg(const rtidds::GenericBytesMessage& dds_msg, messages::AutonomyMsg& msg);
} // namespace utils
} // namespace communication
} // namespace autonomy
} // namespace simulation_framework
#endif // SIMFWK_AUTONOMY_AUTONOMY_COMMUNICATION_UTILS_DDSTOAUTONOMYMSGCONVERTER_H