[Feature]: Add AdvCP utilities for generating vehicle mesh and mesh-division assets
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- embedded-iot
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 11
- Forks
- 11
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 12
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CAVISE/OpenCDA
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 54/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 47/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
Todos los issues de CAVISE/OpenCDA
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
-
frontend testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
vendrabuck/HERD#1588 ·
Los mantenedores suelen responder en 1 día
-
Lessons: record the second case of L14 (security updates cover only pip)Posiblemente ocupada @vishwanathj la tomó hoy. Abiertoarea/docs no-test-needed type/docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
vishwanathj/ocp_lab.ai#39 · 1 comentario ·
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
laaielichter/Gulliver#228 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
nyjc-computing/campus#1338 ·
Los mantenedores suelen responder en 1 día