usdot-fhwa-stol / cdasim

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

Add logic to connect and retry connection for CARLA Ambassador #189

Closed paulbourelly999 closed 8 months ago

paulbourelly999 commented 8 months ago

PR Details

Description

Add functionality to CARLA Ambassador to, on initialization, attempt to connect to CARLA CDASim Adapter, with some retry limit. This avoids deployment timing issues that occasionally cause the CARLA Ambassador to drop Sensor Registrations if the CARLA CDA Sim Adapter is not up yet.

NOTE This PR requires closing of (https://github.com/usdot-fhwa-stol/carla-sensor-lib/pull/2)

Related GitHub Issue

Related Jira Key

CDAR-667

Motivation and Context

Improve robustness of deployment by reattempting failing connection on startup, that could fail purely due to CDASim deployment timing issues.

How Has This Been Tested?

Sim Computer

Types of changes

Checklist:

sonarcloud[bot] commented 8 months ago

Quality Gate Failed Quality Gate failed

Failed conditions

76.67% Line Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud