Closed paulbourelly999 closed 10 months ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
2 Code Smells
77.5% Coverage
0.0% Duplication
The version of Java (11.0.21) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Read more here
PR Details
Description
Add logic to CARLA Ambassador to use XMLRPC Client to dynamically create sensor and retrieve detections. More specifically: the CARLA Ambassador will now create a CARLA XML RPC Client on startup. Its configuration parameters (constructor arguments) will be loaded from the carla_config.json configuration file for the CARLA Ambassador. This is currently limited to carlaCDASimAdapterUrl which tells the XMLRPC client where the XMLRPC server is hosted. Next the CARLA Ambassador now listens for Detector Registration Interactions which are triggered by the Infrastructure Ambassador in response to infrastructure registration attempts that include sensors. When receiving a Detector Registration Interaction, the CARLA Ambassador will tell the CARLA XML RPC Client to make a
create_sensor
request for each detector registration interaction to create the sensors in CARLA. On each timestep, which should be at 100 ms intervals, the CARLA Ambassador will now also callget_detections
for every successfulcreate_sensor
attempt. This means that all the created sensor in CARLA will have their detections polled at the same interval as the CARLA Ambassador runsprocessTimeAdvanceGrant
. The detections retrieved from the CARLA CDA Sim Adapter via the XMLRPC client will be serialized intoDetectedObject
(s) from json and triggered as interactions for other listening Ambassadors, mainly the infrastructure ambassador.Related Jira Key
CDAR-209
Related Issue
211
Motivation and Context
Add CARLA Sensor pipeline for creating sensors and getting detections for CARMA-Streets
How Has This Been Tested?
Unit testing
Types of changes
Checklist: