usdot-fhwa-OPS / V2X-Hub

V2X Hub is a message handler that acts as a translator and data aggregator/disseminator for infrastructure components of a connected vehicle deployment.
Apache License 2.0
120 stars 67 forks source link

Added conversion between JSON and ASN.1 C-struct for SDSM with Kafka updates #562

Closed willjohnsonk closed 1 year ago

willjohnsonk commented 1 year ago

PR Details

Description

Added functionality to convert SDSMs from inbound json strings to outbound ASN.1 styled C-structs to facilitate communication over the CARMA Streets plugin in both directions.

Related Issue

CDAR-308

589

Motivation and Context

How Has This Been Tested?

Tested locally in VSCode with new unit tests for the conversion between jsons and the ASN.1 C-struct messages.

Types of changes

Checklist:

willjohnsonk commented 1 year ago

Needs fixes to sourceID and lights fields - in progress

May consider checking required fields with "isMember" before setting data

Some of the json access statements are very long, I find this more readable from a hierarchy standpoint but may be obtrusive. Can use variables to simply access if needed