    

 ## On this page

  

 

 # File dds\_to\_autonomy\_msg\_converter.h

 Last update: 22.04.2026 

![](https://img.shields.io/badge/language-C%2B%2B-blue "C++")

**Location**: `autonomy/communication/utils/dds_to_autonomy_msg_converter.h`

## Namespaces

- [simulation\_framework](namespacesimulation__framework.md#namespacesimulation__framework)
- [simulation\_framework::autonomy](namespacesimulation__framework_1_1autonomy.md#namespacesimulation__framework_1_1autonomy)
- [simulation\_framework::autonomy::communication](namespacesimulation__framework_1_1autonomy_1_1communication.md#namespacesimulation__framework_1_1autonomy_1_1communication)
- [simulation\_framework::autonomy::communication::utils](namespacesimulation__framework_1_1autonomy_1_1communication_1_1utils.md#namespacesimulation__framework_1_1autonomy_1_1communication_1_1utils)

## Includes

- [autonomy/communication/messages/autonomy\_msg.h](autonomy__msg_8h.md#autonomy__msg_8h)
- core/message/rtidds/generic\_bytes/generic\_bytes.hpp
- 

## Source

```cpp


#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

```