usdot-fhwa-stol / cdasim

CDASim is an open-source simulation system supporting the development and testing of Cooperative Driving Automation applications.
37 stars 13 forks source link

CARMA simulation and CARMA street handshake #122

Closed chengyuan0124 closed 1 year ago

chengyuan0124 commented 1 year ago

PR Details

Description

This pull request adds functionality to enable the handshake between CARMA simulation and CARMA street. The data flow of the handshake is as follows:

  1. CARMA street sends an infrastructure registration message to mosaic-infrastructure.
  2. The infrastructureRegistrationReceiver receives the registration message from CARMA street and converts it to an infrastructureRegistrationMessage object.
  3. The infrastructureRegistrationReceiver stores the infrastructureRegistrationMessage object in a queue.
  4. The infrastructureMessageAmbassador runs in a loop and checks the queue for any new messages while processing time advance grants.
  5. When a new message is found in the queue, the infrastructureMessageAmbassador creates an RSU with its DSRC and sends the registration message to the MOSAIC RTI.
  6. These created RSUs are stored in the InfrastructureInstanceManager with the type InfrastructureInstance.

Related Issue

Motivation and Context

How Has This Been Tested?

Types of changes

Checklist:

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 8 Code Smells

33.0% 33.0% Coverage
1.4% 1.4% Duplication