New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CAMs Reception #285
Comments
CAM reception signals are emitted by the |
Ok Thanks. And how can I define for example inside the CaService.cc that the police car is an emergency vehicle through the field EmergencyContainer_t ? |
I suggest adding a NED parameter to the |
In the CaService.cc there is no bool like isEmergencyVehicle neither the definition of specialVehcileContainer, so where is this field supposed to be filled if it is not retrieved in the service? also trying retrieving it using like the other methods: SpecialVehicleContainer_t& svc = cam.camParameters.specialVehicleContainer; // ADDED it gives me errors. And How am I supposed to fill it? |
This parameter and the container are not implemented. The suggestion only hinted at how the emergency container could be implemented and enabled via a parameter (or based on the vehicle type). |
I did manage to put some of the fields of SpecialVehicleContainer in the function createCooperativeAwarenessMessage as: |
I suspect you forgot to allocate the SpecialVehicleContainer. Take a look at the LowFrequencyContainer implementation in the CaService. A good rule of thumb is to use |
I have added the container as per the LowFrequency one : } As soon as it gets triggered the sim crashes. I don't actually know what I am doing wrong. Is there any other place where I have to declare this special container? |
Unfortunately, "sim crashes" is a rather fuzzy problem description. I suggest running Artery with a debugger attached. Every run_X target has an accompanying debug_X target if |
Hi,
I would like to replicate the same behaviour of the police scenario, but using CAMs. So I equipped the police car with the CaService but then in the service ClearLaneService running on the other cars, which have to receive the message and slow down I cannot make it to work.
I have added this function reveiveSignal
also I have subscribed to the receivedCam signal.
but it does not do anything.
Do I have to define in this service the same method as in indicate() in CaService?
How do I access the CAM content?
Many thanks,
Martina
The text was updated successfully, but these errors were encountered: