[Feature]: Add AdvCP utilities for generating vehicle mesh and mesh-division assets
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- embedded-iot
Direzione di ricerca
Start by reading the AdvCP attack code and its asset-loading paths for car_mesh_path, car_mesh_divide_path, and the removal asset paths; the issue does not name specific source files or tests. Then determine how existing assets are consumed and what mesh formats and coordinate frames they require. Done means utilities generate or validate compatible assets for spoofing and removal, with a CLI and optional caching.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem or motivation
AdvCP integration in CAVISE currently depends on pre-generated 3D vehicle assets used by the attack pipeline to perform physically plausible spoofing and removal attacks.
At the moment, AdvCP attack configs expect assets such as:
car_mesh_path: ../../../core/attack/advcp/3d_models/car_mesh_0200.ply
car_mesh_divide_path: ../../../core/attack/advcp/3d_models/spoof/car_mesh_divide.pkl
# Optional adv-shape pretrained assets (used only when advshape: true).
# remove_adv_shape_perturb_path: ../../../core/attack/advcp/3d_models/remove/mesh_perturb.npy
# remove_adv_shape_divide_path: ../../../core/attack/advcp/3d_models/remove/mesh_divide.pkl
These files are critical for reproducing AdvCP-style attacks, but the repository does not currently provide a clear utility workflow for generating them from a CARLA vehicle model or another supported vehicle mesh source.
This creates several limitations:
- Experiments are tied to a small set of pre-generated vehicle assets.
- It is difficult to reproduce spoofing experiments with different CARLA vehicle types.
- Removal experiments that require mesh-based or adv-shape assets cannot be easily extended.
- Researchers cannot easily validate whether the generated
.ply,.pkl, and optional.npyassets are compatible with the AdvCP pipeline. - The asset-generation process is not transparent enough for reproducible experiments.
A similar question was raised in the original AdvCollaborativePerception repository regarding how car_0200.ply and mesh_divide.pkl were generated: https://github.com/zqzqz/AdvCollaborativePerception/issues/8
The same reproducibility problem applies to the CAVISE AdvCP integration, and it also affects removal-related assets, not only spoofing.
Proposed solution
Add utility scripts under the AdvCP module for generating and validating the 3D assets required by spoofing and removal attacks.
Suggested location:
opencda/core/attack/advcp/utils/
The utilities should support generation or validation of the following asset types:
.ply vehicle mesh used by AdvCP ray-casting / physical attack simulation
.pkl mesh-division metadata used by spoofing and removal pipelines
.npy optional adversarial shape perturbation assets for removal when advshape=true
Suggested utility scripts:
generate_car_mesh.py
generate_mesh_divide.py
generate_remove_advshape_assets.py
validate_advcp_assets.py
Expected capabilities:
- Generate a
.plyvehicle mesh compatible withcar_mesh_path. - Generate spoofing mesh-division metadata compatible with
car_mesh_divide_path. - Generate removal mesh-division metadata compatible with
remove_adv_shape_divide_path. - Optionally support generation, loading, or export of
remove_adv_shape_perturb_pathwhenadvshape: true. - Support runtime asset generation from a CARLA vehicle blueprint, so the simulation can derive the required mesh and mesh-division data on demand instead of requiring pre-generated
.ply/.pklfiles to be committed to the repository. - Support an optional cache mode: generated
.ply,.pkl, and.npyassets may be stored outside the source tree and reused across runs, but they should be treated as derived cache artifacts rather than mandatory repository files. - Validate asset shape, coordinate frame, scale, file existence, and compatibility with the AdvCP attack code.
- Provide a CLI interface so the assets can be regenerated for different CARLA vehicle types or external mesh inputs.
- Document the expected input source: CARLA blueprint, CARLA mesh export, or external
.obj/.ply/.fbxasset. - Save outputs into the existing AdvCP asset layout when explicit file export is requested.
Example CLI for generating a vehicle mesh:
python -m opencda.core.attack.advcp.utils.generate_car_mesh \
--vehicle-blueprint vehicle.tesla.model3 \
--output opencda/core/attack/advcp/3d_models/car_mesh_0200.ply
Example CLI for generating spoofing mesh division:
python -m opencda.core.attack.advcp.utils.generate_mesh_divide \
--mesh opencda/core/attack/advcp/3d_models/car_mesh_0200.ply \
--mode spoof \
--output opencda/core/attack/advcp/3d_models/spoof/car_mesh_divide.pkl
Example CLI for generating removal mesh division:
python -m opencda.core.attack.advcp.utils.generate_mesh_divide \
--mesh opencda/core/attack/advcp/3d_models/car_mesh_0200.ply \
--mode remove \
--output opencda/core/attack/advcp/3d_models/remove/mesh_divide.pkl
Example CLI for validating generated assets:
python -m opencda.core.attack.advcp.utils.validate_advcp_assets \
--car-mesh opencda/core/attack/advcp/3d_models/car_mesh_0200.ply \
--spoof-divide opencda/core/attack/advcp/3d_models/spoof/car_mesh_divide.pkl \
--remove-divide opencda/core/attack/advcp/3d_models/remove/mesh_divide.pkl \
--remove-perturb opencda/core/attack/advcp/3d_models/remove/mesh_perturb.npy
The validation script should fail early with actionable error messages if an asset is missing, has an unexpected format, uses an incompatible coordinate frame, or cannot be consumed by the attack pipeline.
The preferred behavior should be runtime generation with optional caching. Large derived assets such as .ply, .pkl, and .npy files should not have to live in the repository unless they are intentionally included as small examples or test fixtures.
Area
Automotive cybersecurity
Alternatives considered
No response
Additional context
No response
- Lingua principale
- Python
- Stelle
- 11
- Fork
- 11
- Merge medio
- 1g 16h
- PR unite (30g)
- 12
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CAVISE/OpenCDA
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 47/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di CAVISE/OpenCDA
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
-
frontend testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
vendrabuck/HERD#1588 ·
I maintainer di solito rispondono entro 1 giorno
-
Lessons: record the second case of L14 (security updates cover only pip)Forse già presa @vishwanathj l’ha presa oggi. Apertaarea/docs no-test-needed type/docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vishwanathj/ocp_lab.ai#39 · 1 commento ·
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
laaielichter/Gulliver#228 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
nyjc-computing/campus#1338 ·
I maintainer di solito rispondono entro 1 giorno