autonomy/communication/topic_registry/topic_registry.h (line 34)
Autonomy Topic IDs and their Topic types (RTI-DDS backed)
Use these Topic types when adding publishers/subscribers for the listed IDs.-
“KpiLoggerTopic” ->
KpiMessageTopicType(usesrtidds::KpiMessage) -
“DriverInputTopic” ->
KpiMessageTopicType(usesrtidds::KpiMessage) -
“SensorViewTopic” ->
GenericBytesTopicType(usesrtidds::GenericBytesMessage) -
“SensorDataTopic” ->
GenericBytesTopicType(usesrtidds::GenericBytesMessage) -
“TrafficUpdateTopic” ->
GenericBytesTopicType(usesrtidds::GenericBytesMessage) -
“TrafficCommandTopic” ->
GenericBytesTopicType(usesrtidds::GenericBytesMessage) -
“MotionRequestTopic” ->
GenericBytesTopicType(usesrtidds::GenericBytesMessage) -
“FmuInput” ->
FmuMessageTopicType(usesrtidds::FmuMessage) -
“FmuOutput” ->
FmuMessageTopicType(usesrtidds::FmuMessage) -
“ScenarioVariableTopic” ->
VariantMapTopicType(usesrtidds::VariantMap) -
“VehicleControlInputTopic” ->
GenericBytesTopicType(usesrtidds::GenericBytesMessage)
- KPI (
KpiMessageTopicType)
- Generic bytes (
GenericBytesTopicType) for serialized payloads (e.g., protobuf/OSI)
- FMU I/O (
FmuMessageTopicType)
- Scenario variables (
VariantMapTopicType)
-
For the RTI-DDS message type and Topic alias, see
[core/communication/topic_registry.h](core_2communication_2topic__registry_8h.md -
For the C++ native
VariantMapAPI and bi-directional conversion helpers, seecore/communication/utils/variant_map.handcore/communication/utils/variant_map_converter.h.
- VehicleControlInput I/O (
VehicleControlInputTopic)
Typedef ScenarioVariableTopicType
autonomy/communication/topic_registry/topic_registry.h (line 136)
rtidds::VariantMessage is currently an alias of rtidds::FmuMessage. Similarly, rtidds::VariantData aliases rtidds::FmuData, and rtidds::VariantDatatype aliases rtidds::FmuDatatype. This provides a semantic “Variant” naming today while retaining full compatibility with FMU message structure. If dedicated Variant types are introduced in the future, these aliases can be updated centrally.
Maps to simulation_framework::core::topic_registry::VariantMapTopicType which uses rtidds::VariantMap as the underlying RTI-DDS message.
See also: [core/communication/topic_registry.h](core_2communication_2topic__registry_8h.md
Return type: simulation_framework::core::topic_registry::VariantMapTopicType
Function GetExistingTopicById
- topic_id: One of: “KpiLoggerTopic”, “DriverInputTopic”, “SensorViewTopic”, “SensorDataTopic”, “TrafficUpdateTopic”, “TrafficCommandTopic”, “MotionRequestTopic”, “FmuInput”, “FmuOutput”, “ScenarioVariableTopic”, “VehicleControlInputTopic”.
std::shared_ptr<core::ITopic> of the appropriate concrete Topic type, or nullptr if the ID is not recognized.
Parameters:
- const std::string & topic_id