riebl / artery

OMNeT++ V2X simulation framework for ETSI ITS-G5
GNU General Public License v2.0
202 stars 128 forks source link

Ask for help! How do I use 'CollectivePerceptionMockService' in Artery? #339

Open nyw0802 opened 1 month ago

nyw0802 commented 1 month ago

Hi @riebl ,

I'm new to Artery and I'm trying to test generating CPMs using the 'CollectivePerceptionMockService' provided by Artery, and I was wondering what are the pre-requisites if I want to use it? Like a specific sumo creation environment? I tried to directly replace CAService in Service.xml with CollectivePerceptionMockService and it prompted me 'no valid object of type ' n6artery21localenvironmentModelE''.

Thank you!

riebl commented 1 month ago

You must enable the environment model feature (envmod) by setting the CMake option WITH_ENVMOD to ON. The sample scenario includes a configuration using the CollectivePerceptionMockService. You can run this sample with the "run_example" target and select the "envmod" configuration in the start dialogue.