CAM Frequency #317
-
Hello, I have this event responsible for sending CAM messages every 100ms: public void processEvent(Event event) { By doing that I am sending 10 messages every 1 sec and my problem is that the data is only changed every 10th message. Which means that the position/speed/... values is the same in 10 messages and changes and is the same for another 10. I was wondering if it would be possible to change the frequency the CAM messages are generated/updated. In other words, I intend to update for example the position value every 100ms and not 1s as shown below. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, the vehicle data is updated with each simulation step of the traffic simulation. This can be configured in the {
"updateInterval": 100
} |
Beta Was this translation helpful? Give feedback.
Hi, the vehicle data is updated with each simulation step of the traffic simulation. This can be configured in the
sumo/sumo_config,json
file of your scenario. If you do not have this file already, then just create it there and fill it with the following content: