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

Feature/carma messenger ambassador #228

Closed EricChen-Lei closed 2 weeks ago

EricChen-Lei commented 1 month ago

PR Details

Description

Implement carma messenger ambassador

Related GitHub Issue

Related Jira Key

CXC-88

Motivation and Context

How Has This Been Tested?

Types of changes

Checklist:

kjrush commented 1 month ago

I'm a bit concerned about the amount of duplication in this one, it looks like a lot of this is the same as the CARMA Platform ambassador, which is fine and expected. But rather than simply duplicating the code, we should be looking at how to refactor it to minimize duplication. Can we inherit directly from the CARMAPlatformAmbassador class and override the specific functions we need to change to support messenger? Are there parts of the CARMA Platform Ambassador that should be refactored out into a base-class that both Platform and Messenger ambassadors inherit from? Should some of the existing classes just be renamed and reused as-is instead of duplicated?

sonarcloud[bot] commented 3 weeks ago

Quality Gate Failed Quality Gate failed

Failed conditions
48.05% Line Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud