Comments (4)
The time stamp of VehicleDataProvider
is updated whenever vehicle data from SUMO is processed, i.e. at SUMO steps which are by default 100 ms in Artery.
CaService
uses the update time stamp from VehicleDataProvider
to fill generationDeltaTime
, see CaService.cc:132. You can change mTimer->getTimeFor(mVehicleDataProvider->updated())
to mTimer->getCurrentTime()
to include the current simulation time instead.
from artery.
Does the time stamp of VehicleDataProvider
match the time stamp of CAM generation(mTimer->getCurrentTime()
)?
According to 6.1.5.2 in https://www.etsi.org/deliver/etsi_en/302600_302699/30263702/01.03.02_60/en_30263702v010302p.pdf,
in the case of vehicle ITS-S, CAM should have the time when VehicleData
was determined, not the time when CAM was generated.
And from your information about VehicleDataProvider
update interval, if I set fixedRate
in CaService
to true and updateInterval
in Middleware
to 0.1s,
I think there should be the time gap from 0ms to 50ms between them.
So is it correct to use mTimer->getCurrentTime()
instead of using mTimer->getTimeFor(mVehicleDataProvider->updated())
?
from artery.
No, VehicleDataProvider
reports the time stamp of the latest vehicle data update. Because of the mentioned CAM specification, CaService
uses the time stamp from VehicleDataProvider
to fill the CAM generationDeltaTime
.
Time points of CAM generation and vehicle data updates are not linked, even when a fixed generation rate is used: Vehicle data is updated for all vehicles at the same time point, but services are triggered with some random delay among vehicles so they do not synchronise artificially.
While using mTimer->getCurrentTime()
violates the CAM requirements w.r.t. generationDeltaTime
, I guess nobody will punish you when you are doing this in a simulation ;-)
from artery.
Okey! Thank you very much!
from artery.
Related Issues (20)
- Running Artery with different values of a parameter HOT 3
- Measure CAM's age: from sendCam() of transmiters to indicated() of receivers. HOT 3
- Storyboard Effects HOT 4
- Detecting Pedestrians HOT 1
- Help needed: Docker Documentation needed HOT 2
- error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
- plot between "receiving power of a receiver" and "distance from transmitter" HOT 1
- Get the exact number of sent message from services HOT 4
- Information exchanging between modules and Number of entries in Location table HOT 9
- Denm service overwriting port on IVIM service HOT 9
- Error with Regions of Interest HOT 1
- Print ID, speed and position HOT 2
- Cmake static variable cannot load library HOT 2
- duplicated DENM messages HOT 4
- updateDENM and terminateDENM HOT 2
- Traces in DENM
- INET_API resultfilters in Artery HOT 1
- Comparing longitudes and latitudes values of different positions
- Nodes do not take Z coordinates in .ned file
- Connecting to Sumo server by TraCi HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artery.