usdot-fhwa-stol / carma-platform

CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication. Doxygen Source Code Documentation :
https://usdot-fhwa-stol.github.io/documentation/carma-platform/
403 stars 124 forks source link

carma exec to accept network #2457

Closed MishkaMN closed 2 weeks ago

MishkaMN commented 3 weeks ago

PR Details

Description

For CDASim, carma exec doesn't work because network configuration is hardcoded to host, but cdasim uses different IPs. I could use docker exec but this won't last in between test and have to do the sourcing exporting again, which is not user-friendly. This will be useful only for Sim PCs as vehicles don't need it right away. And it can be updated whenever the script is updated next.

This PR lets the user specify network to connect to. Usage: carma exec -n network_name

Related GitHub Issue

NA

Related Jira Key

NA

Motivation and Context

This happens a lot when I try to test something in CDASim, I need to change the network myself in the /usr/bin/carma script.

How Has This Been Tested?

CDASIM image

Types of changes

Checklist:

sonarcloud[bot] commented 3 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud